Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2011 14:32:58 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: Clang error make buildworld
Message-ID:  <CAESiWkm8%2BmyDwanNKd4KCgVjHLNaLRBh82nFPGrDAO80e6w49Q@mail.gmail.com>
In-Reply-To: <4EFB4324.1060002@FreeBSD.org>
References:  <201105040107.p4417NTR048534@pozo.com> <CAESiWk=wdZDNxn%2BHcLeOVTF55jMTEP3zVOb1ivAPgNYi2JTB3w@mail.gmail.com> <4EFB4324.1060002@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric <dim@freebsd.org> wrote:
> On 2011-12-28 16:44, Renato Botelho wrote:
>>
>> On Tue, May 3, 2011 at 10:07 PM, Manfred Antar<null@pozo.com> =A0wrote:
>>>
>>> I get this error when trying to buildworld on current i386.
>>> It's been this way for awhile Any Ideas ?
>>>
>>> =3D=3D=3D> =A0boot/i386/boot0 (all)
>>> clang -O2 -pipe =A0-DVOLUME_SERIAL -DPXE -DFLAGS=3D0x8f =A0-DTICKS=3D0x=
b6
>>> =A0-DCOMSPEED=3D"7<< =A05 + 3" -ffreestanding -mpreferred-stack-boundar=
y=3D2
>>> =A0-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=
=3Dgnu99
>>> =A0-c /usr/src/sys/boot/i386/boot0/boot0.S
>>> clang: warning: argument unused during compilation:
>>> '-mpreferred-stack-boundary=3D2'
>>> /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet
>>> =A0.code16 # This runs in real mode
>>> =A0 =A0 =A0 =A0 =A0^
>
>
> This is expected, since the above command line is supposed to have
> '-no-integrated-as' added. =A0For 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. =A0Can you please post that file?

Sure, follow my src.conf:

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

and my make.conf

KERNCONF=3DMURPHYS

WITH_OPTIONS=3Dyes
WITH_VIM_OPTIONS=3Dyes
WITHOUT_X11=3Dyes

# added by use.perl 2011-12-12 13:19:26
PERL_VERSION=3D5.12.4

More information about the system installed on this machine:

garga@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@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
garga@murphys:~> clang -v
FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
Target: i386-unknown-freebsd9.0
Thread model: posix


--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAESiWkm8%2BmyDwanNKd4KCgVjHLNaLRBh82nFPGrDAO80e6w49Q>