Hi 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. Can anyone give me a clue? Thanks Jack
On 28 Dec 2016, at 23:47, Jack Raats <jack at 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20161229/3de09e66/attachment.sig>
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 at FreeBSD.org> geschreven: On 28 Dec 2016, at 23:47, Jack Raats <jack at 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