Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2011 13:44:57 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Manfred Antar <null@pozo.com>
Cc:        current@freebsd.org
Subject:   Re: Clang error make buildworld
Message-ID:  <CAESiWk=wdZDNxn%2BHcLeOVTF55jMTEP3zVOb1ivAPgNYi2JTB3w@mail.gmail.com>
In-Reply-To: <201105040107.p4417NTR048534@pozo.com>
References:  <201105040107.p4417NTR048534@pozo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 3, 2011 at 10:07 PM, Manfred Antar <null@pozo.com> wrote:
> I get this error when trying to buildworld on current i386.
> It's been this way for awhile Any Ideas ?
>
> =3D=3D=3D> boot/i386/boot0 (all)
> clang -O2 -pipe =A0-DVOLUME_SERIAL -DPXE -DFLAGS=3D0x8f =A0-DTICKS=3D0xb6=
 =A0-DCOMSPEED=3D"7 << 5 + 3" -ffreestanding -mpreferred-stack-boundary=3D2=
 =A0-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=3Dgn=
u99 =A0 =A0-c /usr/src/sys/boot/i386/boot0/boot0.S
> clang: warning: argument unused during compilation: '-mpreferred-stack-bo=
undary=3D2'
> /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet
> =A0.code16 # This runs in real mode
> =A0 =A0 =A0 =A0 =A0^
> /tmp/cc-4SXZt8.s:313:3: error: unknown use of instruction mnemonic withou=
t a size suffix
> =A0jmp *%bx # Invoke bootstrap
> =A0^
> /tmp/cc-4SXZt8.s:346:3: error: invalid operand for instruction
> =A0retw # To caller
> =A0^
> /tmp/cc-4SXZt8.s:372:3: error: invalid operand for instruction
> =A0retw # To caller
> =A0^
> *** Error code 1
>
> Stop in /usr/src/sys/boot/i386/boot0.
> *** Error code 1
>
> Stop in /usr/src/sys/boot/i386.
> *** Error code 1
>
> Stop in /usr/src/sys/boot.
> *** Error code 1
>
> Stop in /usr/src/sys.

Hello Manfred,

I'm having this same issue on a i386 HEAD buildworld with clang. Did
you find a fix for this?

For now i built boot0 with gcc and it was built fine.

Regards
--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAESiWk=wdZDNxn%2BHcLeOVTF55jMTEP3zVOb1ivAPgNYi2JTB3w>