Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jan 2017 18:41:22 +0100
From:      Jack Raats <jack@jarasoft.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        <freebsd-stable@freebsd.org>
Subject:   Re: Compile error while building world
Message-ID:  <C83FED09-B973-4044-995A-FF38F453F5C1@jarasoft.net>
In-Reply-To: <DDB5A133-58AD-4930-96AA-DF434AF759D9@FreeBSD.org>
References:  <96268895-B686-4796-8118-83C3410BF03B@jarasoft.net> <DDB5A133-58AD-4930-96AA-DF434AF759D9@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@FreeBSD.org> geschreven:

    On 28 Dec 2016, at 23:47, Jack Raats <jack@jarasoft.net> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C83FED09-B973-4044-995A-FF38F453F5C1>