Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2015 21:44:51 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: clang/tblgen: undefined reference to `futimens' c++: error: linker command failed with exit
Message-ID:  <27E39060-1453-4F79-AE7A-F3F7D92FE325@FreeBSD.org>
In-Reply-To: <20150320083354.5efc5fa6@prometheus>
References:  <20150320083354.5efc5fa6@prometheus>

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

--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 <ohartman@zedat.fu-berlin.de> =
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27E39060-1453-4F79-AE7A-F3F7D92FE325>