From owner-freebsd-stable@freebsd.org Thu Dec 29 15:06:30 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 A8B29C96804 for ; Thu, 29 Dec 2016 15:06:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F5B614DD for ; Thu, 29 Dec 2016 15:06:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::b1d9:a86:d7c3:cef7] (unknown [IPv6:2001:7b8:3a7:0:b1d9:a86:d7c3:cef7]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B639718DDF; Thu, 29 Dec 2016 16:06:20 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Compile error while building world From: Dimitry Andric In-Reply-To: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> Date: Thu, 29 Dec 2016 16:06:11 +0100 Cc: freebsd-stable@freebsd.org Message-Id: References: <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> To: Jack Raats X-Mailer: Apple Mail (2.3124) 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 15:06:30 -0000 --Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 28 Dec 2016, at 23:47, Jack Raats wrote: >=20 > At this moment I=E2=80=99ll get the following error while compiling = buildworld >=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_DEFAULT_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 -Qunused-arguments = -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 -fno-exceptions = -fno-rtti -stdlib=3Dlibc++ -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 >=20 > /usr/lib/libpthread.a(thr_syscalls.o): In function `__thr_fdatasync': >=20 > /usr/src/lib/libthr/thread/thr_syscalls.c:(.text+0xe51): undefined = reference to `__sys_fdatasync' >=20 > c++: error: linker command failed with exit code 1 (use -v to see = invocation) >=20 > *** [clang-tblgen.full] Error code 1 >=20 >=20 >=20 > 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 --Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlhlJmwACgkQsF6jCi4glqM/9ACgxgfPbSTBT3qViDGRo4u9Q7Nl Uc8AnjOO4yz+Rttt0L1IXnFupq0g6GKP =5gzo -----END PGP SIGNATURE----- --Apple-Mail=_A4D23648-627E-45FE-B578-19858EE788E8--