Re: CLANG buildworld failure: lint: cannot exec /usr/obj/usr/src/tmp/usr/bin/cc: No such file or directory

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Sun, 04 Mar 2012 21:34:27 +0100
On 03/04/12 18:51, Pegasus Mc Cleaft wrote:
> On Sunday 04 March 2012 16:27:56 Manfred Antar wrote:
>> At 05:25 AM 3/4/2012, O. Hartmann wrote:
>>> Buildworld of FBSD 10.o-CUR/amd64 fails with the below shown error
>>> messages since this weekend:
>>>
>>>
>>> clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -pipe -O3
>>> -fno-strict-aliasing -march=native
>>> -I/usr/src/usr.bin/xlint/xlint/../lint1 -DPREFIX=\"\"
>>> -I/usr/src/usr.bin/xlint/xlint/../arch/amd64
>>> -I/usr/src/usr.bin/xlint/xlint/../common -std=gnu99 -fstack-protector
>>> -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter
>>> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
>>> -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
>>> -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
>>> -Wredundant-decls -Wold-style-definition -Wno-pointer-sign  -o xlint
>>> xlint.o mem.o
>>> clang: warning: argument unused during compilation: '-std=gnu99'
>>> gzip -cn /usr/src/usr.bin/xlint/xlint/lint.1 > lint.1.gz
>>> ===> usr.bin/xlint/llib (all)
>>> lint -cghapbx -Cposix /usr/src/usr.bin/xlint/llib/llib-lposix
>>> llib-lposix:
>>> lint: cannot exec /usr/obj/usr/src/tmp/usr/bin/cc: No such file or
>>> directory *** [llib-lposix.ln] Error code 1
>>>
>>> Stop in /usr/src/usr.bin/xlint/llib.
>>> *** [all] Error code 1
>>>
>>> Stop in /usr/src/usr.bin/xlint.
>>> *** [all] Error code 1
>>>
>>> Stop in /usr/src/usr.bin.
>>> *** [usr.bin.all__D] Error code 1
>>>
>>> Stop in /usr/src.
>>> *** [everything] Error code 1
>>>
>>> Stop in /usr/src.
>>> *** [buildworld] Error code 1
>>>
>>> Stop in /usr/src.
>>>
>>>
>>> Regards,
>>> Oliver
>>
>> I got the same error 1 day ago on i386 platform.
> 
> 	I got the same error, but got around it by putting:
> 
> 		WITH_CLANG_IS_CC=no
> 
> 	in  /etc/src.conf
> 
> ta,
> Peg
> 


Where are those new "WITH_CLANG_XXXX" tags documented?

In my case things developed even worse. After the last "make update" in
/usr/src (SVN based), I can't even build a kernel (make buildworld fails
very early):

===> games/fortune/strfile (obj,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/games/fortune/strfile created for
/usr/src/games/fortune/strfile
rm -f .depend
CC='clang' mkdep -f .depend -a
-I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99
/usr/src/games/fortune/strfile/strfile.c
echo strfile: /usr/lib/libc.a
/usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend
clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=gnu99
-I/usr/obj/usr/src/tmp/legacy/usr/include -c
/usr/src/games/fortune/strfile/strfile.c
clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=gnu99
-I/usr/obj/usr/src/tmp/legacy/usr/include  -static
-L/usr/obj/usr/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy
clang: warning: argument unused during compilation: '-std=gnu99'
strfile.o: In function `main':
/usr/src/games/fortune/strfile/strfile.c:(.text+0x2e0): undefined
reference to `_ThreadRuneLocale'
/usr/src/games/fortune/strfile/strfile.c:(.text+0x382): undefined
reference to `_ThreadRuneLocale'
strfile.o: In function `cmp_str':
/usr/src/games/fortune/strfile/strfile.c:(.text+0x860): undefined
reference to `_ThreadRuneLocale'
/usr/src/games/fortune/strfile/strfile.c:(.text+0x8bb): undefined
reference to `_ThreadRuneLocale'
/usr/src/games/fortune/strfile/strfile.c:(.text+0x9b4): undefined
reference to `_ThreadRuneLocale'
strfile.o:/usr/src/games/fortune/strfile/strfile.c:(.text+0xa0e): more
undefined references to `_ThreadRuneLocale' follow
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [strfile] Error code 1
1 error
*** [bootstrap-tools] Error code 2
1 error
*** [_bootstrap-tools] Error code 2
1 error
*** [buildworld] Error code 2
1 error


Received on Sun Mar 04 2012 - 19:34:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC