From owner-freebsd-stable@freebsd.org Thu Dec 29 18:55:46 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 9891BC967DB for ; Thu, 29 Dec 2016 18:55:46 +0000 (UTC) (envelope-from jack@nb24.nl) 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 5C7F814AD; Thu, 29 Dec 2016 18:55:45 +0000 (UTC) (envelope-from jack@nb24.nl) Received: from nl.nb24.nl (nl.nb24.nl [37.97.225.103]) by nl.nb24.nl (Postfix) with ESMTP id 442A21210406; Thu, 29 Dec 2016 19:55:43 +0100 (CET) Received: from www.nb24.nl (nl.nb24.nl [37.97.225.103]) by nl.nb24.nl (Postfix) with ESMTP id E4E3D12103FA; Thu, 29 Dec 2016 19:55:42 +0100 (CET) Received: from 82.95.230.43 (SquirrelMail authenticated user jack) by www.nb24.nl with HTTP; Thu, 29 Dec 2016 19:55:43 +0100 Message-ID: <1b78fff280a3b37fb6b6693cd521a765.squirrel@www.nb24.nl> In-Reply-To: References: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> Date: Thu, 29 Dec 2016 19:55:43 +0100 Subject: Re: Compile error while building world From: jack@nb24.nl To: "Dimitry Andric" Cc: "Jack Raats" , freebsd-stable@freebsd.org 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:55:46 -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