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>

index | next in thread | previous in thread | raw e-mail

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:
>
> ===> sys/boot/i386/cdboot (all)
> ===> sys/boot/i386/gptboot (all)
> ===> sys/boot/i386/kgzldr (all)
> ===> sys/boot/i386/libi386 (all)
> clang -O2 -pipe  -DLOADER_NFS_SUPPORT -DCOMPORT=0x3f8 -DCOMSPEED=9600
> -DSMBIOS_SERIAL_NUMBERS -DLOADER_GPT_SUPPORT -DTERM_EMU
> -Dalloca=__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=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -msoft-float -m32 -march=i386 -std=gnu99
>  -c /usr/src/sys/boot/i386/libi386/amd64_tramp.S
> clang: warning: argument unused during compilation:
> '-mpreferred-stack-boundary=2'
> /tmp/cc-ohEeiE.s:35:9: error: .code32 not supported yet
>  .code32
>        ^
> /tmp/cc-ohEeiE.s:69:9: error: .code64 not supported yet
>  .code64
>        ^
> *** 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]    94534 exit 2     nice -n 15 make -j1 buildworld buildkernel
>
> My /etc/src.conf has:
>
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> # Don't die on warnings
> NO_WERROR=
> WERROR=
>
> 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.

-- 
Renato Botelho


help

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