Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Feb 2014 06:23:38 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ian@FreeBSD.org
Cc:        erichsfreebsdlist@alogt.com, freebsd-stable@FreeBSD.org, marck@rinet.ru
Subject:   Re: building stable/8 on stable/10 host: is it supported?
Message-ID:  <20140201.062338.1549211642350100193.hrs@allbsd.org>
In-Reply-To: <1391198005.13026.14.camel@revolution.hippie.lan>
References:  <alpine.BSF.2.00.1401301426010.64486@woozle.rinet.ru> <alpine.BSF.2.00.1401301723120.64486@woozle.rinet.ru> <1391198005.13026.14.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sat_Feb__1_06_23_38_2014_177)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ian Lepore <ian@FreeBSD.org> wrote
  in <1391198005.13026.14.camel@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

----Security_Multipart(Sat_Feb__1_06_23_38_2014_177)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlLsFFoACgkQTyzT2CeTzy2QMACeMjguOvjcbYSOVIokmhSj9WOc
c4IAoLW2l8rPmifY6/VrkPLrxjKV0NCf
=vigN
-----END PGP SIGNATURE-----

----Security_Multipart(Sat_Feb__1_06_23_38_2014_177)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140201.062338.1549211642350100193.hrs>