Error building world after last clang update

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Mon, 21 Feb 2011 12:34:56 -0300
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?

-- 
Renato Botelho
Received on Mon Feb 21 2011 - 15:05:22 UTC

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