> On 28 Dec 2016, at 23:47, Jack Raats <j...@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 > >
Dimitry, Thanks for your reaction. After this error I empty's /usr/src and /usr/ports I can compile the kernel and install the kernel. But a "make buildworld" gives the above error. Copying libc.a and libc32.a from another machine didn't solve the problem. Can you give me another clue? Is it possible to reinstall world from a nightly snapshot without destroying the running system (I'm using the ZFS file system with a pool of 4 HDD) Thanks Jack _______________________________________________ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"