From owner-freebsd-current@FreeBSD.ORG Sat Nov 5 13:28:23 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 474B4106566B; Sat, 5 Nov 2011 13:28:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id D60E28FC14; Sat, 5 Nov 2011 13:28:22 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id pA5DSG53009029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Nov 2011 15:28:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id pA5DSGTc050817; Sat, 5 Nov 2011 15:28:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id pA5DSGmh050816; Sat, 5 Nov 2011 15:28:16 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 5 Nov 2011 15:28:16 +0200 From: Kostik Belousov To: Dimitry Andric Message-ID: <20111105132816.GR50300@deviant.kiev.zoral.com.ua> References: <20111104190912.GA21948@bewilderbeast.blackhelicopters.org> <4EB53803.2000205@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZTeqt8Ca5PdqcYoi" Content-Disposition: inline In-Reply-To: <4EB53803.2000205@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: current@freebsd.org Subject: Re: 9.0/i386 build failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 05 Nov 2011 13:28:23 -0000 --ZTeqt8Ca5PdqcYoi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 05, 2011 at 02:20:03PM +0100, Dimitry Andric wrote: > On 2011-11-04 20:09, Michael W. Lucas wrote: > > I suspect I'm building on a system that's too old, but it's worth > > asking. > >=20 > > FreeBSD eyeball.lodden.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Aug = 29 00:31:14 EDT 2009 mwlucas@stretchlimo.blackhelicopters.org:/usr/obj/= usr/src/sys/GENERIC i386 > >=20 > > csup today. no /etc/src.conf, /etc/make.conf only contains a perl > > definition. > >=20 > > ... > > c++ -O2 -pipe -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/inc= lude -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/tools/clang/incl= ude -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/utils/TableGen -I= . -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/../../lib/clang/inc= lude -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTA= NT_MACROS -DLLVM_HOSTTRIPLE=3D\"i386-unknown-freebsd9.0\" -I/usr/obj/usr/sr= c/tmp/legacy/usr/include -static -L/usr/obj/usr/src/tmp/legacy/usr/lib -o = tblgen ARMDecoderEmitter.o AsmMatcherEmitter.o AsmWriterEmitter.o AsmWriter= Inst.o CallingConvEmitter.o CodeEmitterGen.o CodeGenDAGPatterns.o CodeGenIn= struction.o CodeGenRegisters.o CodeGenTarget.o DAGISelEmitter.o DAGISelMatc= her.o DAGISelMatcherEmitter.o DAGISelMatcherGen.o DAGISelMatcherOpt.o Disas= semblerEmitter.o EDEmitter.o FastISelEmitter.o FixedLenDecoderEmitter.o Ins= trEnumEmitter.o InstrInfoEmitter.o IntrinsicEmitter.o PseudoLoweringEmitter= .o RegisterInfoEmi > tter.o SetTheory.o StringMatcher.o SubtargetEmitter.o TGValueTypes.o Tabl= eGen.o X86DisassemblerTables.o X86RecognizableInstr.o /usr/obj/usr/src/tmp/= usr/src/usr.bin/clang/tblgen/../../../lib/clang/libllvmtablegen/libllvmtabl= egen.a /usr/obj/usr/src/tmp/usr/src/usr.bin/clang/tblgen/../../../lib/clang= /libllvmsupport/libllvmsupport.a -legacy > > /usr/obj/usr/src/tmp/usr/src/usr.bin/clang/tblgen/../../../lib/clang/li= bllvmsupport/libllvmsupport.a(Atomic.o)(.text+0x25): In function `llvm::sys= ::AtomicIncrement(unsigned int volatile*)': > > : undefined reference to `__sync_add_and_fetch_4' >=20 > Hm, the only way I can imagine this happening, is then you compile your > system with -march=3Di386. In that case the atomic primitives, such as > __sync_add_and_fetch, are called as external functions, which would lead > to a link error like the above. >=20 > I tried building 9-STABLE from a 9-CURRENT box that was not updated > since April 2011, and from a fairly recent 8-STABLE, but both did not > exhibit this issue. >=20 > Are you using any special other settings, e.g. in your environment, or > on the make command line? In case, it would be handy if you post the > full buildlog somewhere, so we can see which flags have been used to > compile the llvmsupport library. The system gcc was changed to assume march=3D486 some time ago. I suppose that the current-9 system is before the change, see r198344. --ZTeqt8Ca5PdqcYoi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk61Oe8ACgkQC3+MBN1Mb4i0zwCg61j9PoGvUyfXrKXT8ehz8Twr es4An1bxrAbqcUYR3rkY2plcIC/87LxF =KnXA -----END PGP SIGNATURE----- --ZTeqt8Ca5PdqcYoi--