Re: Clang error make buildworld

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Wed, 28 Dec 2011 14:32:58 -0200
On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric <dim_at_freebsd.org> wrote:
> On 2011-12-28 16:44, Renato Botelho wrote:
>>
>> On Tue, May 3, 2011 at 10:07 PM, Manfred Antar<null_at_pozo.com>  wrote:
>>>
>>> I get this error when trying to buildworld on current i386.
>>> It's been this way for awhile Any Ideas ?
>>>
>>> ===>  boot/i386/boot0 (all)
>>> clang -O2 -pipe  -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f  -DTICKS=0xb6
>>>  -DCOMSPEED="7<<  5 + 3" -ffreestanding -mpreferred-stack-boundary=2
>>>  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=gnu99
>>>  -c /usr/src/sys/boot/i386/boot0/boot0.S
>>> clang: warning: argument unused during compilation:
>>> '-mpreferred-stack-boundary=2'
>>> /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet
>>>  .code16 # This runs in real mode
>>>          ^
>
>
> This is expected, since the above command line is supposed to have
> '-no-integrated-as' added.  For some reason, the test for clang in
> sys/boot/i386/boot0/Makefile is not working as it should.
>
> Most likely, it is due to the way you set CC, CXX and/or CPP in
> make.conf.  Can you please post that file?

Sure, follow my src.conf:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
# Don't die on warnings
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
NO_FSCHG=

and my make.conf

KERNCONF=MURPHYS

WITH_OPTIONS=yes
WITH_VIM_OPTIONS=yes
WITHOUT_X11=yes

# added by use.perl 2011-12-12 13:19:26
PERL_VERSION=5.12.4

More information about the system installed on this machine:

garga_at_murphys:~> uname -a
FreeBSD murphys.ramenzoni.com.br 9.0-RC3 FreeBSD 9.0-RC3 #0: Sun Dec
4 08:01:02 UTC 2011
root_at_obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
garga_at_murphys:~> clang -v
FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
Target: i386-unknown-freebsd9.0
Thread model: posix


-- 
Renato Botelho
Received on Wed Dec 28 2011 - 15:33:20 UTC

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