From owner-freebsd-stable@freebsd.org Mon Jan 2 17:41:31 2017 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 97D09C9C36E for ; Mon, 2 Jan 2017 17:41:31 +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 54FC31B16; Mon, 2 Jan 2017 17:41:31 +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 6B80012103FE; Mon, 2 Jan 2017 18:41:23 +0100 (CET) Received: from [10.10.10.20] (raats.xs4all.nl [82.95.230.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by nl.nb24.nl (Postfix) with ESMTPSA id 13F2F1210382; Mon, 2 Jan 2017 18:41:23 +0100 (CET) User-Agent: Microsoft-MacOutlook/f.1c.1.161117 Date: Mon, 02 Jan 2017 18:41:22 +0100 Subject: Re: Compile error while building world From: Jack Raats To: Dimitry Andric CC: Message-ID: Thread-Topic: Compile error while building world References: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable 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: Mon, 02 Jan 2017 17:41:31 -0000 Problem SOLVED. I copied libpthread.a from a jail on that server to the rig= ht 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 geschreven: On 28 Dec 2016, at 23:47, Jack Raats wrote: >=20 > At this moment I=E2=80=99ll get the following error while compiling buildwo= rld >=20 >=20 >=20 > --- clang-tblgen.full --- >=20 > 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_D= EFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=3D\"x86= _64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/tmp\" -g -Qun= used-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 -fno-exc= eptions -fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions -static -L/usr/obj/u= sr/src/tmp/legacy/usr/lib -o clang-tblgen.full ClangASTNodesEmitter.o Clang= AttrEmitter.o ClangCommentCommandInfoEmitter.o ClangCommentHTMLNamedCharacte= rReferenceEmitter.o ClangCommentHTMLTagsEmitter.o ClangDiagnosticsEmitter.o = ClangSACheckersEmitter.o NeonEmitter.o TableGen.o /usr/obj/usr/src/tmp/usr/s= rc/lib/clang/libllvmminimal/libllvmminimal.a -lncursesw -lpthread -legacy >=20 > /usr/lib/libpthread.a(thr_syscalls.o): In function `__thr_fdatasync': >=20 > /usr/src/lib/libthr/thread/thr_syscalls.c:(.text+0xe51): undefined re= ference to `__sys_fdatasync' >=20 > c++: error: linker command failed with exit code 1 (use -v to see inv= ocation) >=20 > *** [clang-tblgen.full] Error code 1 >=20 >=20 >=20 > Systeem: FreeBSD 11.0-STABLE At revision 310725. =20 The fdatasync symbol was added to head in r304209, and that was MFC'd t= o stable/11 in r304980, almost 4 months ago. For some reason, you don't seem to have it in libc.a. =20 Can you link any application statically? And if you use -lpthread? =20 -Dimitry =20 =20