From owner-freebsd-current@FreeBSD.ORG Tue Jun 24 00:57:17 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE0AACE for ; Tue, 24 Jun 2014 00:57:17 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9653A29B0 for ; Tue, 24 Jun 2014 00:57:17 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id rp18so6482616iec.27 for ; Mon, 23 Jun 2014 17:57:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=95ZH/kp3IJaDb7m+DgJ7n7WcaMcXiH0ysjqCa1TgOF0=; b=bYjg8jhQZgHMs/d486do4+UR4PtoBTZ2ltyn53R+FEjZURigjsoAGmSifdJm7rWHeD olPLuACKkA+xd4AO77OJCn2VyozW5pf4lCbE0/sAj3zmoSi18Wk3sfI/yaCbQRCNjjdu wgvxWukO+fmmKtPjhYbjx3yeKKeAyMYI3xWdMQNAvRp7G0EToqbEY1720pSwb8SqV58z oHRPBxvQGBbVq/jUnKW0HaVhpQ3CawhfcqDpWhKgUD949m12iWhjtF9yGVf2m98aZ/xw Zu1HGXd0yc2fVznw15GuJXxtSyGue1TSt+pbD9n+vWYsLwIZgdavhhhJuyE9TpiLAsuC 04TA== X-Gm-Message-State: ALoCoQnNklWyQcqxDmqLKOfZqXMhryyMPbKATR6hR6Iv9+/8neJxivYBjsOP28Ruqwyxi0GaZ2eO X-Received: by 10.50.4.5 with SMTP id g5mr31029988igg.14.1403571436694; Mon, 23 Jun 2014 17:57:16 -0700 (PDT) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id 8sm1302913igr.2.2014.06.23.17.57.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 17:57:16 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_E60CD188-3EE1-4E52-838A-3C1E2C716A74"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Problems building FreeBSD 9.2 on FreeBSD 10 From: Warner Losh In-Reply-To: Date: Mon, 23 Jun 2014 18:57:15 -0600 Message-Id: <2063888D-CCAE-431B-A409-F17AA4422006@bsdimp.com> References: <20140617200551.07542580A1@chaos.localdomain> <20140617211436.GI1248@hub.FreeBSD.org> <690CE378-D7D9-49A6-BC20-13FD540E63A2@FreeBSD.org> <1ED3AC7E-0F74-46A7-BAAA-E30600DC23BB@bsdimp.com> <8CD24B0A-DF45-4437-BEBE-8C67B241DE93@bsdimp.com> To: Craig Rodrigues X-Mailer: Apple Mail (2.1878.2) Cc: Brooks Davis , Dimitry Andric , "Simon J. Gerraty" , Glen Barber , freebsd-current Current , Marcel Moolenaar X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 00:57:17 -0000 --Apple-Mail=_E60CD188-3EE1-4E52-838A-3C1E2C716A74 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jun 23, 2014, at 6:15 PM, Craig Rodrigues = wrote: > Hi, >=20 > OK, I think I see the issue. I looked here: >=20 > http://svnweb.freebsd.org/base/stable/9/share/mk/bsd.prog.mk?view=3Dlog >=20 > and saw that dim@ MFC'd his EARLY_BUILD stuff in r257812. >=20 > That is why you can build stable/9 on a stable/10 host. >=20 > I am building FreeBSD 9.2 which doesn't have that change. >=20 >=20 > bsd.prog.mk in stable/9 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > .if defined(PROG_CXX) && !defined(EARLY_BUILD) >=20 > .if !empty(CXXFLAGS:M-stdlib=3Dlibc++) >=20 > echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} >=20 > .else >=20 > echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE} >=20 > .endif > .endif >=20 >=20 > bsd.prog.mk in 9.2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > .if defined(PROG_CXX) > .if !empty(CXXFLAGS:M-stdlib=3Dlibc++) > echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} > .else > echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE} > .endif > .endif >=20 >=20 > bsd.prog.mk in CURRENT > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > .if defined(PROG_CXX) > .if ${COMPILER_TYPE} =3D=3D "clang" && = empty(CXXFLAGS:M-stdlib=3Dlibstdc++) > echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} > .else > echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE} > .endif > .endif >=20 >=20 >=20 > 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=92ll have to back port the patch then. We don=92t 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 >=20 >=20 >=20 >=20 >=20 > On Mon, Jun 23, 2014 at 4:23 PM, Warner Losh wrote: >=20 > On Jun 23, 2014, at 5:19 PM, Craig Rodrigues = wrote: >=20 > > > > > > > > On Mon, Jun 23, 2014 at 4:13 PM, Warner Losh 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=3D/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/fre= enas2/FreeBSD/src/tmp INSTALL=3D"sh = /zroot/build/r/freenas2/FreeBSD/src/tools/install.sh" = PATH=3D/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBS= D/src/tmp/legacy/usr/sbin:/zroot/build/r/freenas2/os-base/amd64/zroot/buil= d/r/freenas2/FreeBSD/src/tmp/legacy/usr/bin:/zroot/build/r/freenas2/os-bas= e/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/usr/games:/zroot/bui= ld/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/= bin:/sbin:/bin:/usr/sbin:/usr/bin = WORLDTMP=3D/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/Fr= eeBSD/src/tmp VERSION=3D"9.3-ALPHA" MAKEFLAGS=3D"-m = /zroot/build/r/freenas2/FreeBSD/src/tools/build/mk -j 9 = .MAKE.LEVEL.ENV=3DMAKELEVEL NO_CLEAN=3D1 SRCCONF=3D/dev/null = __MAKE_CONF=3D/zroot/build/r/freenas2/os-base/amd64/make.conf.build -m = /zroot/build/r/freenas2/FreeBSD/src/share/mk TARGET=3Damd64 = TARGET_ARCH=3Damd64" COMPILER_TYPE=3Dclang = /zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/m= ake.amd64/make -f Makefile.inc1 DESTDIR=3D BOOTSTRAPPING=3D1100022 = SSP_CFLAGS=3D -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 > > =3D=3D=3D> gnu/usr.bin/gperf (obj,depend,all,install) > > =3D=3D=3D> gnu/usr.bin/gperf/doc (obj) > > =3D=3D=3D> 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 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 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=92t back ported much of anything I=92ve 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=92t in the = supported matrix we=92ve traditionally had in this project. > > > > I reproduced the same problem using a CURRENT build host ( = 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r267305 ). > > >=20 > I wonder how this could possibly happen on stable-10, since = EARLY_BUILD is still there to preclude the line being added. >=20 > I=92ll have to re-run my test WITHOUT_CLANG. I just used the defaults. >=20 > Any chance you can narrow the number of options required to trigger = this? >=20 > Warner >=20 >=20 --Apple-Mail=_E60CD188-3EE1-4E52-838A-3C1E2C716A74 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_E60CD188-3EE1-4E52-838A-3C1E2C716A74--