Date: Mon, 02 Jan 2017 18:41:22 +0100 From: Jack Raats <jack@jarasoft.net> To: Dimitry Andric <dim@FreeBSD.org> Cc: <freebsd-stable@freebsd.org> Subject: Re: Compile error while building world Message-ID: <C83FED09-B973-4044-995A-FF38F453F5C1@jarasoft.net> In-Reply-To: <DDB5A133-58AD-4930-96AA-DF434AF759D9@FreeBSD.org> References: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> <DDB5A133-58AD-4930-96AA-DF434AF759D9@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
Problem SOLVED. I copied libpthread.a from a jail on that server to the right directory and could compile the source.
It seemed that the library was somehow damaged.
Grtz.,
Jack
Op 29-12-16 16:06 heeft Dimitry Andric <dim@FreeBSD.org> geschreven:
On 28 Dec 2016, at 23:47, Jack Raats <jack@jarasoft.net> wrote:
>
> At this moment I’ll get the following error while compiling buildworld
>
>
>
> --- clang-tblgen.full ---
>
> 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=\"x86_64-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -g -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -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
>
> /usr/lib/libpthread.a(thr_syscalls.o): In function `__thr_fdatasync':
>
> /usr/src/lib/libthr/thread/thr_syscalls.c:(.text+0xe51): undefined reference to `__sys_fdatasync'
>
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>
> *** [clang-tblgen.full] Error code 1
>
>
>
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C83FED09-B973-4044-995A-FF38F453F5C1>
