From owner-freebsd-current@FreeBSD.ORG Tue Jun 24 00:15:06 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 A5827BEE; Tue, 24 Jun 2014 00:15:06 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (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 56FF22651; Tue, 24 Jun 2014 00:15:05 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id s7so5546351lbd.16 for ; Mon, 23 Jun 2014 17:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mW9llchBLYqv7vjHsmYQkA15Bdz7+D7azsHasnHU7vE=; b=VDVR8klDhqLyXREJXk+RZ9acGB4OOkg9+ZGf0LTi3BOk9zSLRcShsC1L33IIdg1QeJ ww4luuQlgrmCXcawDnJORoO1Dot+uJQjEzvXYRoP9OPIwO5CWD6yiC7dOfMw8CKBF8BL P4xMRYGYkPZn+b1xYGZRwo0Vs6TTjazmS1G4f4PO2nDXRVE0x9s/M79fhaNhzhffErb3 MhgLg+GCZSYA8ANNkEbn/rrGvBHqZSRq7GQXs0q8U1qTfa9biBSRdVeEP2BdY1rhjnYT +sHjACiPdZlPV8vh5mb4F8FZtueLZhkwbpZCXG9XuCEHozqZ6W4OV/A6b5yBcZNxVAUV MepQ== MIME-Version: 1.0 X-Received: by 10.152.115.134 with SMTP id jo6mr13405971lab.6.1403568903164; Mon, 23 Jun 2014 17:15:03 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.67.71 with HTTP; Mon, 23 Jun 2014 17:15:03 -0700 (PDT) In-Reply-To: <8CD24B0A-DF45-4437-BEBE-8C67B241DE93@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> Date: Mon, 23 Jun 2014 17:15:03 -0700 X-Google-Sender-Auth: rSACNeGbDRIcondSD4f54LF8d4s Message-ID: Subject: Re: Problems building FreeBSD 9.2 on FreeBSD 10 From: Craig Rodrigues To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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:15:06 -0000 Hi, OK, I think I see the issue. I looked here: http://svnweb.freebsd.org/base/stable/9/share/mk/bsd.prog.mk?view=3Dlog 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D .if defined(PROG_CXX) && !defined(EARLY_BUILD) .if !empty(CXXFLAGS:M-stdlib=3Dlibc++) echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} .else echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE} .endif .endif 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 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 So, I guess that stable/9 can build properly on a stable/10 box. For FreeBSD 9.2, there is no easy way out. -- Craig On Mon, Jun 23, 2014 at 4:23 PM, Warner Losh wrote: > > On Jun 23, 2014, at 5:19 PM, Craig Rodrigues wrote: > > > > > > > > > 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 thi= s > 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/fr= eenas2/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/Free= BSD/src/tmp/legacy/usr/sbin:/zroot/build/r/freenas2/os-base/amd64/zroot/bui= ld/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/buil= d/r/freenas2/os-base/amd64/zroot/build/r/freenas2/FreeBSD/src/tmp/legacy/bi= n:/sbin:/bin:/usr/sbin:/usr/bin > WORLDTMP=3D/zroot/build/r/freenas2/os-base/amd64/zroot/build/r/freenas2/= FreeBSD/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/= make.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'= t > back ported much of anything I've done to the build system, and if anybod= y > else has, then it is on them to make it work in the 10.x environment. Whi= le > 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 i= s > 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 > >