Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2011 13:02:39 -0300
From:      Renato Botelho <rbgarga@gmail.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Error building world after last clang update
Message-ID:  <AANLkTi=V7dt3_E9gj7BybnUmm=W1g50SZx-nawTJ90Ax@mail.gmail.com>
In-Reply-To: <AANLkTimmdmFpnhcEoaMm18yG_goxA5uJA_apk-yAL2GP@mail.gmail.com>
References:  <AANLkTimmdmFpnhcEoaMm18yG_goxA5uJA_apk-yAL2GP@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 21, 2011 at 12:34 PM, Renato Botelho <rbgarga@gmail.com> wrote:
> I was trying to upgrade my 9.0-CURRENT amd64 after clang
> was updated, but i got following error:
>
> =3D=3D=3D> sys/boot/i386/cdboot (all)
> =3D=3D=3D> sys/boot/i386/gptboot (all)
> =3D=3D=3D> sys/boot/i386/kgzldr (all)
> =3D=3D=3D> sys/boot/i386/libi386 (all)
> clang -O2 -pipe =A0-DLOADER_NFS_SUPPORT -DCOMPORT=3D0x3f8 -DCOMSPEED=3D96=
00
> -DSMBIOS_SERIAL_NUMBERS -DLOADER_GPT_SUPPORT -DTERM_EMU
> -Dalloca=3D__builtin_alloca
> -I/usr/src/sys/boot/i386/libi386/../../common
> -I/usr/src/sys/boot/i386/libi386/../btx/lib
> -I/usr/src/sys/boot/i386/libi386/../../../contrib/dev/acpica/include
> -I/usr/src/sys/boot/i386/libi386/../../.. -I.
> -I/usr/src/sys/boot/i386/libi386/../../../../lib/libstand/
> -ffreestanding -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -msoft-float -m32 -march=3Di386 -std=3Dgnu99
> =A0-c /usr/src/sys/boot/i386/libi386/amd64_tramp.S
> clang: warning: argument unused during compilation:
> '-mpreferred-stack-boundary=3D2'
> /tmp/cc-ohEeiE.s:35:9: error: .code32 not supported yet
> =A0.code32
> =A0 =A0 =A0 =A0^
> /tmp/cc-ohEeiE.s:69:9: error: .code64 not supported yet
> =A0.code64
> =A0 =A0 =A0 =A0^
> *** Error code 1
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> [1] =A0 =A094534 exit 2 =A0 =A0 nice -n 15 make -j1 buildworld buildkerne=
l
>
> My /etc/src.conf has:
>
> .if !defined(CC) || ${CC} =3D=3D "cc"
> CC=3Dclang
> .endif
> .if !defined(CXX) || ${CXX} =3D=3D "c++"
> CXX=3Dclang++
> .endif
> # Don't die on warnings
> NO_WERROR=3D
> WERROR=3D
>
> Any hints?

I read the answer for a problem like this and followed
the suggestion of add clang config lines on /etc/make.conf.

It worked fine, it's building again now.

--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=V7dt3_E9gj7BybnUmm=W1g50SZx-nawTJ90Ax>