Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2016 16:06:11 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Jack Raats <jack@jarasoft.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Compile error while building world
Message-ID:  <DDB5A133-58AD-4930-96AA-DF434AF759D9@FreeBSD.org>
In-Reply-To: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net>
References:  <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net>

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

--Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 28 Dec 2016, at 23:47, Jack Raats <jack@jarasoft.net> wrote:
>=20
> At this moment I=E2=80=99ll get the following error while compiling =
buildworld
>=20
>=20
>=20
> --- clang-tblgen.full ---
>=20
> c++ -O2 -pipe -I/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvm =
-I/usr/src/lib/clang/include -I/usr/src/contrib/llvm/include =
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS =
-D__STDC_CONSTANT_MACROS -DNDEBUG =
-DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd11.0\" =
-DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd11.0\" =
-DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/tmp\" -g -Qunused-arguments =
-I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 -fno-exceptions =
-fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions  -static =
-L/usr/obj/usr/src/tmp/legacy/usr/lib -o clang-tblgen.full  =
ClangASTNodesEmitter.o ClangAttrEmitter.o =
ClangCommentCommandInfoEmitter.o =
ClangCommentHTMLNamedCharacterReferenceEmitter.o =
ClangCommentHTMLTagsEmitter.o ClangDiagnosticsEmitter.o =
ClangSACheckersEmitter.o NeonEmitter.o TableGen.o =
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmminimal/libllvmminimal.a  =
-lncursesw  -lpthread -legacy
>=20
> /usr/lib/libpthread.a(thr_syscalls.o): In function `__thr_fdatasync':
>=20
> /usr/src/lib/libthr/thread/thr_syscalls.c:(.text+0xe51): undefined =
reference to `__sys_fdatasync'
>=20
> c++: error: linker command failed with exit code 1 (use -v to see =
invocation)
>=20
> *** [clang-tblgen.full] Error code 1
>=20
>=20
>=20
> Systeem: FreeBSD 11.0-STABLE  At revision 310725.

The fdatasync symbol was added to head in r304209, and that was MFC'd to
stable/11 in r304980, almost 4 months ago.  For some reason, you don't
seem to have it in libc.a.

Can you link any application statically?  And if you use -lpthread?

-Dimitry


--Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8
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.30

iEYEARECAAYFAlhlJmwACgkQsF6jCi4glqM/9ACgxgfPbSTBT3qViDGRo4u9Q7Nl
Uc8AnjOO4yz+Rttt0L1IXnFupq0g6GKP
=5gzo
-----END PGP SIGNATURE-----

--Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DDB5A133-58AD-4930-96AA-DF434AF759D9>