building stable/8 on stable/10 host: is it supported?
Hiroki Sato
hrs at FreeBSD.org
Fri Jan 31 21:24:21 UTC 2014
Ian Lepore <ian at FreeBSD.org> wrote
in <1391198005.13026.14.camel at revolution.hippie.lan>:
ia> On Thu, 2014-01-30 at 17:51 +0400, Dmitry Morozovsky wrote:
ia> > On Thu, 30 Jan 2014, Dmitry Morozovsky wrote:
ia> >
ia> > > Hiroki-san,
ia> >
ia> > [snip]
ia> >
ia> > > > Currently stable/8 does not build on a box running 10 or later
ia> > > > because several commits to fix build errors at the toolchain
ia> > > > bootstrapping stages due to the toolchain migration were not MFC'd
ia> > > > yet. For stable/8, try the following patch:
ia> > > >
ia> > > > http://people.allbsd.org/~hrs/FreeBSD/stable-8-patch.diff
ia> > >
ia> > > Thanks a lot, will try and report!
ia> >
ia> > amd64 world/kernel built successfully, thanks again.
ia> >
ia> > However, cross-build to TARGET=i386 chokes on aicasm module:
ia> >
ia> > ./aicasm -nostdinc -I. -I/FreeBSD/pristine/src.8/sys
ia> > -I/FreeBSD/pristine/src.8/sys/contrib/altq
ia> > -I/FreeBSD/pristine/src.8/sys/contrib/ipfilter
ia> > -I/FreeBSD/pristine/src.8/sys/contrib/pf -I/FreeBSD/pristine/src.8/sys/dev/ath
ia> > -I/FreeBSD/pristine/src.8/sys/dev/ath/ath_hal
ia> > -I/FreeBSD/pristine/src.8/sys/contrib/ngatm
ia> > -I/FreeBSD/pristine/src.8/sys/dev/twa
ia> > -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs/FreeBSD
ia> > -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs/FreeBSD/support
ia> > -I/FreeBSD/pristine/src.8/sys/gnu/fs/xfs -I/FreeBSD/pristine/src.8/sys/dev/cxgb
ia> > -I/FreeBSD/pristine/src.8/sys/dev/cxgbe -I/FreeBSD/pristine/src.8/sys/cam/scsi
ia> > -I/FreeBSD/pristine/src.8/sys/dev/aic7xxx -o aic79xx_seq.h -r aic79xx_reg.h -p
ia> > aic79xx_reg_print.c -i /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx_osm.h
ia> > /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx.seq
ia> > ./aicasm: Stopped at file /FreeBSD/pristine/src.8/sys/dev/aic7xxx/aic79xx.seq,
ia> > line 53 - Undefined symbol code referenced
ia> > ./aicasm: Removing aic79xx_seq.h due to error
ia> > ./aicasm: Removing aic79xx_reg.h due to error
ia> > *** Signal 11
ia> >
ia> > Stop in /usr/obj/i386/FreeBSD/pristine/src.8/sys/GENERIC.
ia> > *** Error code 1
ia> >
ia> > Stop in /FreeBSD/pristine/src.8.
ia> > *** Error code 1
ia> >
ia> > Stop.
ia> > make: stopped in /FreeBSD/pristine/src.8
ia>
ia> Some time in 2013 the build process for aicasm got broken for the
ia> cross-build case (it builds with the wrong compiler and header files).
ia> I fixed it late in 2013 with a series of botched attempts that fixed it
ia> in some case and broke it for some other case. Eventually it got fixed
ia> for all cases except apparently the old-school kernel compile method of
ia> running make from the sys/config dir. Now it has been fixed on head by
ia> just nuking aicasm and checking in some firmware binary blob instead.
ia> I'm not sure whether it makes sense to mfc that binary-blob fix to
ia> stable branches or not.
ia>
ia> I've distilled the end result of my build mechanism changes down to a
ia> patch against stable-8, I'll attach it to this mail. It lets me build
ia> amd64 and arm on this i386 machine, so I think it'll let you build i386
ia> on an amd64 host.
Great, I was about to send a patchset including changes in r260401[*]
but I think your change should be sufficient.
[*] http://people.allbsd.org/~hrs/FreeBSD/stable-8-patch-20140201-1.diff
-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140201/a535206d/attachment-0001.sig>
More information about the freebsd-stable
mailing list