From owner-freebsd-current@FreeBSD.ORG Fri Mar 20 20:45:18 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24C5B466 for ; Fri, 20 Mar 2015 20:45:18 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFF33982 for ; Fri, 20 Mar 2015 20:45:17 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::618c:d619:3565:7337] (unknown [IPv6:2001:7b8:3a7:0:618c:d619:3565:7337]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2FCD65C4D; Fri, 20 Mar 2015 21:45:13 +0100 (CET) Subject: Re: clang/tblgen: undefined reference to `futimens' c++: error: linker command failed with exit Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_61F8DEF3-5085-41C2-8C63-A600973C8DDD"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b6 From: Dimitry Andric In-Reply-To: <20150320083354.5efc5fa6@prometheus> Date: Fri, 20 Mar 2015 21:44:51 +0100 Message-Id: <27E39060-1453-4F79-AE7A-F3F7D92FE325@FreeBSD.org> References: <20150320083354.5efc5fa6@prometheus> To: "O. Hartmann" X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 20 Mar 2015 20:45:18 -0000 --Apple-Mail=_61F8DEF3-5085-41C2-8C63-A600973C8DDD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Mar 2015, at 08:33, O. Hartmann = wrote: >=20 > Running >=20 > 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r277382: Mon Jan 19 16:10:34 CET = 2015 > amd64 >=20 > with source tree at revision > >>> Updating /usr/src using Subversion > -------------------------------------------------------------- > Updating '.': > At revision 280275. >=20 > and "make buildorld buildkernel" >=20 > fails at the below shown point. >=20 > The /usr/obj tree is clean - I delete it prior to each build run. >=20 > Something is out of sync, sn earlier update process (make = installworld) crashed > and I think the kernel, binary tools and rest of sources are some kind = of out > of sync. >=20 > Is there a way - from the data shown - to resolve the problem? >=20 > Building a kernel works great, building toolchains fail also at the = very same > point. >=20 > Thanks in advance, >=20 > oh >=20 >=20 > [...] > --- _bootstrap-tools-usr.bin/clang/tblgen --- > --- TableGen.o --- > c++ -O2 -pipe -O3 -pipe -O3 > -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/include > = -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/tools/clang/include > -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/utils/TableGen = -I. > = -I/usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/../../lib/clang/incl= ude > -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS = -D__STDC_CONSTANT_MACROS > -fno-strict-aliasing > -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd11.0\" > -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd11.0\" = -DDEFAULT_SYSROOT=3D\"\" > -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include = -std=3Dc++11 > -std=3Dc++11 -fno-exceptions -fno-rtti -stdlib=3Dlibc++ = -Wno-c++11-extensions > -c = /usr/src/usr.bin/clang/tblgen/../../../contrib/llvm/utils/TableGen/TableGe= n.cpp > -o TableGen.o --- _bootstrap-tools-usr.bin/clang/clang-tblgen > --- = /usr/obj/usr/src/tmp/usr/src/usr.bin/clang/clang-tblgen/../../../lib/clang= /libllvmsupport/libllvmsupport.a(Path.o): > In function `llvm::sys::fs::setLastModificationAndAccessTime(int, > llvm::sys::TimeValue)': = /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Path.c= pp:(.text+0x4649): > undefined reference to `futimens' c++: error: linker command failed = with exit > code 1 (use -v to see invocation) *** [clang-tblgen] Error code 1 Somehow, you seem to have messed up your libc, which provides futimens() since r277610 (about 7 weeks ago). Maybe you restored a very old version? In any case, you might be able to get around it by cheating with __FreeBSD_version. What does the following say on your system: grep "#define __FreeBSD_version" /usr/include/sys/param.h If the version is 1100056 or higher, you should have futimens(). You could try cheating by editing the file and resetting the version to e.g. 1100055. -Dimitry --Apple-Mail=_61F8DEF3-5085-41C2-8C63-A600973C8DDD 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----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlUMhtcACgkQsF6jCi4glqNejgCg1kv4ktkQS2R1J6AsTHAhvs1W suwAoIlJQoqjgAEPGPwqmLysaZMB7NeW =hzbc -----END PGP SIGNATURE----- --Apple-Mail=_61F8DEF3-5085-41C2-8C63-A600973C8DDD--