From owner-freebsd-stable@freebsd.org Thu Dec 29 18:57:42 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12BF1C9697D for ; Thu, 29 Dec 2016 18:57:42 +0000 (UTC) (envelope-from jack@jarasoft.net) Received: from nl.nb24.nl (nl.nb24.nl [37.97.225.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "nb24.nl", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA7251820; Thu, 29 Dec 2016 18:57:41 +0000 (UTC) (envelope-from jack@jarasoft.net) Received: from nl.nb24.nl (nl.nb24.nl [37.97.225.103]) by nl.nb24.nl (Postfix) with ESMTP id 97E4D1210400; Thu, 29 Dec 2016 19:57:39 +0100 (CET) Received: from www.nb24.nl (nl.nb24.nl [37.97.225.103]) by nl.nb24.nl (Postfix) with ESMTP id 4573B12103FA; Thu, 29 Dec 2016 19:57:39 +0100 (CET) Received: from 82.95.230.43 (SquirrelMail authenticated user jack) by www.nb24.nl with HTTP; Thu, 29 Dec 2016 19:57:39 +0100 Message-ID: In-Reply-To: References: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> Date: Thu, 29 Dec 2016 19:57:39 +0100 Subject: Re: Compile error while building world From: "Jack Raats" To: "Dimitry Andric" Cc: freebsd-stable@freebsd.org Reply-To: jack@jarasoft.net User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP on nl.nb24.nl X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 18:57:42 -0000 > On 28 Dec 2016, at 23:47, Jack Raats 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