Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2014 18:57:15 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        Brooks Davis <brooks@freebsd.org>, Dimitry Andric <dim@freebsd.org>, "Simon J. Gerraty" <sjg@juniper.net>, Glen Barber <gjb@freebsd.org>, freebsd-current Current <freebsd-current@freebsd.org>, Marcel Moolenaar <marcel@freebsd.org>
Subject:   Re: Problems building FreeBSD 9.2 on FreeBSD 10
Message-ID:  <2063888D-CCAE-431B-A409-F17AA4422006@bsdimp.com>
In-Reply-To: <CAG=rPVcrJpP_1VcKZnsxAugBywJBXg63p2piX7nPndTunPEWDQ@mail.gmail.com>
References:  <CAG=rPVct-HzOksM2KQvPuOdf4zgZo__=Oannh0x%2B_JVHEzQyyw@mail.gmail.com> <CAG=rPVfkGa7=n-TSqcnP574ry0Au2THbqvAZJfKD5OK9a1FBNw@mail.gmail.com> <20140617200551.07542580A1@chaos.localdomain> <CAG=rPVeBgWS=vMGxSmX8O4QWW77XC2mqDgaiNrFsGrzg47UQYQ@mail.gmail.com> <20140617211436.GI1248@hub.FreeBSD.org> <CAG=rPVezMsPCP%2BB1ePw_Mh=Cv6qx07ordsWQ3cF4a_ytLWeCEQ@mail.gmail.com> <CAG=rPVd4evnkJoz1rVeMjP7YNKOW0BWF0MvSrFQ3u2xCiVEtmw@mail.gmail.com> <690CE378-D7D9-49A6-BC20-13FD540E63A2@FreeBSD.org> <CAG=rPVfanU=FVWPd768_G5NjXRHnUH5o05%2BKwFeLaTQqU3Ux8w@mail.gmail.com> <FC1B2983-4B49-4480-855E-6BD09B148F31@bsdimp.com> <CAG=rPVd5XGz8hfuBtcOuuZp8ND1ssWoTkVNn0Hg6Li_2-NrgcA@mail.gmail.com> <1ED3AC7E-0F74-46A7-BAAA-E30600DC23BB@bsdimp.com> <CAG=rPVeP32=y3VZgn0MXFPrr8tevL=jOsCow=rvpxRevmvoLqA@mail.gmail.com> <8CD24B0A-DF45-4437-BEBE-8C67B241DE93@bsdimp.com> <CAG=rPVcrJpP_1VcKZnsxAugBywJBXg63p2piX7nPndTunPEWDQ@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On Jun 23, 2014, at 6:15 PM, Craig Rodrigues <rodrigc@FreeBSD.org> wrote:

> Hi,
> 
> OK, I think I see the issue.  I looked here:
> 
> http://svnweb.freebsd.org/base/stable/9/share/mk/bsd.prog.mk?view=log
> 
> and saw that dim@ MFC'd his EARLY_BUILD stuff in r257812.
> 
> That is why you can build stable/9 on a stable/10 host.
> 
> I am building FreeBSD 9.2 which doesn't have that change.
> 
> 
> bsd.prog.mk in stable/9
> ==============
> 
> .if defined(PROG_CXX) && !defined(EARLY_BUILD)
> 
> .if !empty(CXXFLAGS:M-stdlib=libc++)
> 
> echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
> 
> .else
> 
> echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
> 
> .endif
> .endif
> 
> 
> bsd.prog.mk in 9.2
> ============
> .if defined(PROG_CXX)
> .if !empty(CXXFLAGS:M-stdlib=libc++)
>         echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
> .else
>         echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
> .endif
> .endif
> 
> 
> bsd.prog.mk in CURRENT
> ================
> .if defined(PROG_CXX)
> .if ${COMPILER_TYPE} == "clang" && empty(CXXFLAGS:M-stdlib=libstdc++)
>         echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
> .else
>         echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
> .endif
> .endif
> 
> 
> 
> So, I guess that stable/9 can build properly on a stable/10 box.
> For FreeBSD 9.2, there is no easy way out.

You’ll have to back port the patch then. We don’t guarantee forward compatibility like this since 9.2 is frozen in time now.

stable/9 builds fine on both stable/10 and current hosts.

Warner

> --
> Craig
> 
> 
> 
> 
> 
> On Mon, Jun 23, 2014 at 4:23 PM, Warner Losh <imp@bsdimp.com> wrote:
> 
> On Jun 23, 2014, at 5:19 PM, Craig Rodrigues <rodrigc@FreeBSD.org> wrote:
> 
> >
> >
> >
> > On Mon, Jun 23, 2014 at 4:13 PM, Warner Losh <imp@bsdimp.com> wrote:
> >
> > Which bombing out are you seeing (two or three have been sighted in this thread)? And is this a nanobsd build, or a straight buildworld?
> >
> > When building FreeNAS, with a hacked the nanobsd
> > script to does "make make buildworld", and the make.conf which I posted, I
> > am seeing this:
> >
> > --------------------------------------------------------------
> > >>> stage 1.2: bootstrap tools
> > --------------------------------------------------------------
> > cd /zroot/build/r/freenas2/FreeBSD/src; MAKEOBJDIRPREFIX=/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp  INSTALL="sh /zroot/build/r/freenas2/FreeBSD/src/tools/install.sh"  PATH=/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/usr/sbin:/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/usr/bin:/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/usr/games:/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp  VERSION="9.3-ALPHA"  MAKEFLAGS="-m /zroot/build/r/freenas2/FreeBSD/src/tools/build/mk  -j 9 .MAKE.LEVEL.ENV=MAKELEVEL NO_CLEAN=1 SRCCONF=/dev/null __MAKE_CONF=/zroot/build/r/freenas2/os-base/amd64/make.conf.build -m /zroot/build/r/freenas2/FreeBSD/src/share/mk TARGET=amd64 TARGET_ARCH=amd64"  COMPILER_TYPE=clang /zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/make.amd64/make  -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=1100022  SSP_CFLAGS=  -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN  -DNO_PIC -DWITHOUT_PROFILE -DNO_SHARED  -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD bootstrap-tools
> > ===> gnu/usr.bin/gperf (obj,depend,all,install)
> > ===> gnu/usr.bin/gperf/doc (obj)
> > ===> gnu/usr.bin/gperf/doc (depend)
> > make: don't know how to make /usr/lib/libstdc++.a. Stop
> > *** [bootstrap-tools] Error code 2
> > 1 error
> > *** [_bootstrap-tools] Error code 2
> > 1 error
> > *** [buildworld] Error code 2
> >
> > make[1]: stopped in /zroot/build/r/freenas2/FreeBSD/src
> > 1 error
> >
> > make[1]: stopped in /zroot/build/r/freenas2/FreeBSD/src
> > ===================================================================
> > ERROR: build FAILED; see above or log file here: /zroot/build/r/freenas2/os-base/amd64/_.bw
> > *** Error code 2
> >
> > Stop.
> > make: stopped in /zroot/build/r/freenas2
> >
> >
> >
> >
> >
> > And I specifically was doing my testing on -current, not 10.x. I haven’t back ported much of anything I’ve done to the build system, and if anybody else has, then it is on them to make it work in the 10.x environment. While it has usually worked, 9 on 10 isn’t in the supported matrix we’ve traditionally had in this project.
> >
> > I reproduced the same problem using a CURRENT build host ( 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r267305 ).
> >
> 
> I wonder how this could possibly happen on stable-10, since EARLY_BUILD is still there to preclude the line being added.
> 
> I’ll have to re-run my test WITHOUT_CLANG. I just used the defaults.
> 
> Any chance you can narrow the number of options required to trigger this?
> 
> Warner
> 
> 


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTqMzrAAoJEGwc0Sh9sBEATOgP/2I+Lw5WvbMjNEQza41dOt6C
Ed6VHaBYg/eSQ1O7vfLB8x/43cinpcBVDcoe+oP8x9NnYXT4+aMKQ75fipbOQA5B
RxdpGwv/oQWhyxE9jAmhnydt5P3p3N3VYJvEyhc2vPkVPrFaah/paycHQY5V2v6P
hvOcHmOlJr1JZerKMvF0nneTc84tAVYfiJqNl2Z7imCExSw9rwDnhhBl77k8cfhM
u7jlemdZdUA/vSTc/IzzR5G1TKehM6WmyMArP3zN4Qls7J8BNtfL0MTbz5uoCkFM
c9z6viYozAkc/PupcbtB0hlmgzasMDf9WMOt2YZEBpVoCwdAXFy1vcMnHbdMAsJW
Lx8/zwKutUXo0oHC02GDGfC4OeV2TqdDSzM9htNQsjfVK3rM/daWl6wv6Qaf3FBK
FuRyOk/KajbkzSsrbWIvwttrsUAeEVQaQoNdqFHymGWnOBRUst/bTYC+MFS4Q45G
FfIXo+f04BT+94WEQ1u/wdiUoK8Yg7YhCJSDsFtm/HaAHlr7q6hJHRMHtRAjFYok
hIA/zoZCK2ivglDxhn4+t1PH8EOf11e3BjfgIDQODEUh9u5vnMkOgzNrsRzafgg+
soTw+5oW1v+f7K5D/bxqI+UgLBtVi7A3rnW89FgahWG2/5iJHef60RWAJoi7eDSq
OtxNbbc50RsMbYcOY2uL
=0cRp
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2063888D-CCAE-431B-A409-F17AA4422006>