building stable/8 on stable/10 host: is it supported?

Ian Lepore ian at FreeBSD.org
Fri Jan 31 19:53:31 UTC 2014


On Thu, 2014-01-30 at 17:51 +0400, Dmitry Morozovsky wrote:
> On Thu, 30 Jan 2014, Dmitry Morozovsky wrote:
> 
> > Hiroki-san,
> 
> [snip]
> 
> > >  Currently stable/8 does not build on a box running 10 or later
> > >  because several commits to fix build errors at the toolchain
> > >  bootstrapping stages due to the toolchain migration were not MFC'd
> > >  yet.  For stable/8, try the following patch:
> > > 
> > >  http://people.allbsd.org/~hrs/FreeBSD/stable-8-patch.diff
> > 
> > Thanks a lot, will try and report!
> 
> amd64 world/kernel built successfully, thanks again.
> 
> However, cross-build to TARGET=i386 chokes on aicasm module:
> 
> ./aicasm -nostdinc  -I. -I/FreeBSD/pristine/src.8/sys 
> -I/FreeBSD/pristine/src.8/sys/contrib/altq 
> -I/FreeBSD/pristine/src.8/sys/contrib/ipfilter 
> -I/FreeBSD/pristine/src.8/sys/contrib/pf -I/FreeBSD/pristine/src.8/sys/dev/ath 
> -I/FreeBSD/pristine/src.8/sys/dev/ath/ath_hal 
> -I/FreeBSD/pristine/src.8/sys/contrib/ngatm 
> -I/FreeBSD/pristine/src.8/sys/dev/twa 
> -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs/FreeBSD 
> -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs/FreeBSD/support 
> -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs -I/FreeBSD/pristine/src.8/sys/dev/cxgb 
> -I/FreeBSD/pristine/src.8/sys/dev/cxgbe -I/FreeBSD/pristine/src.8/sys/cam/scsi 
> -I/FreeBSD/pristine/src.8/sys/dev/aic7xxx -o aic79xx_seq.h -r aic79xx_reg.h -p 
> aic79xx_reg_print.c -i /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx_osm.h 
> /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx.seq
> ./aicasm: Stopped at file /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx.seq, 
> line 53 - Undefined symbol code referenced
> ./aicasm: Removing aic79xx_seq.h due to error
> ./aicasm: Removing aic79xx_reg.h due to error
> *** Signal 11
> 
> Stop in /usr/obj/i386/FreeBSD/pristine/src.8/sys/GENERIC.
> *** Error code 1
> 
> Stop in /FreeBSD/pristine/src.8.
> *** Error code 1
> 
> Stop.
> make: stopped in /FreeBSD/pristine/src.8

Some time in 2013 the build process for aicasm got broken for the
cross-build case (it builds with the wrong compiler and header files).
I fixed it late in 2013 with a series of botched attempts that fixed it
in some case and broke it for some other case.  Eventually it got fixed
for all cases except apparently the old-school kernel compile method of
running make from the sys/config dir.  Now it has been fixed on head by
just nuking aicasm and checking in some firmware binary blob instead.
I'm not sure whether it makes sense to mfc that binary-blob fix to
stable branches or not.

I've distilled the end result of my build mechanism changes down to a
patch against stable-8, I'll attach it to this mail.  It lets me build
amd64 and arm on this i386 machine, so I think it'll let you build i386
on an amd64 host.

-- Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aicasm_stab8.diff
Type: text/x-patch
Size: 11078 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140131/92b36e92/attachment.bin>


More information about the freebsd-stable mailing list