Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2016 19:57:39 +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:  <dd9f348a864987803c1a5a09953095d9.squirrel@www.nb24.nl>
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
> On 28 Dec 2016, at 23:47, Jack Raats <jack@jarasoft.net> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dd9f348a864987803c1a5a09953095d9.squirrel>