Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2011 15:35:35 +0100
From:      Olivier Smedts <olivier@gid0.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Can't buildworld since Clang update
Message-ID:  <AANLkTi=-AALHfsa4Ru9-jf31q4mwFNaj5%2BfHFKzV9Rp7@mail.gmail.com>
In-Reply-To: <AANLkTimw-btyXh2kbz3r_T9gQVSNuTXVY=JyYsMtG8_z@mail.gmail.com>
References:  <AANLkTimw-btyXh2kbz3r_T9gQVSNuTXVY=JyYsMtG8_z@mail.gmail.com>

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

2011/2/21 Olivier Smedts <olivier@gid0.org>:
> Hello,
>
> I can't buildworld with Clang since the last update.
>
> %uname -a
> FreeBSD zozo.afpicl.lan 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r218908M:
> Mon Feb 21 09:56:35 CET 2011
> root@zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE  amd64
> %clang -v
> FreeBSD clang version 2.9 (trunk 126079) 20110220
> Target: x86_64-undermydesk-freebsd9.0
> Thread model: posix
> %cat /etc/src.conf
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> # Don't die on warnings
> NO_WERROR=
> WERROR=
> %head /etc/make.conf
> CPUTYPE?=core2
> KERNCONF=CORE
> CFLAGS=-O2 -pipe -march=native
> NO_CPU_CFLAGS=yes
> COPTFLAGS=-O2 -pipe -march=native
> NO_CPU_COPTFLAGS=yes
> BOOTWAIT=0
> WITHOUT_PROFILE=yes
>
> # make buildworld
> [...]
> ===> lib/libz (obj,depend,all,install)
> [...]
> clang -O2 -pipe -march=native -DHAS_snprintf -DHAS_vsnprintf
> -I/usr/src/lib/libz -DASMV -DNO_UNDERLINE -DSYMBOL_VERSIONING
> -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign
> -Wa,--noexecstack -c /usr/src/lib/libz/contrib/gcc_gvmat64/gvmat64.S
> /tmp/cc-VUyvc6.s:6:1: warning: ignoring directive for now
> .intel_syntax noprefix
> ^
> /tmp/cc-VUyvc6.s:12:9: error: unknown use of instruction mnemonic
> without a size suffix
>        mov [(rsp + 40 - 96)],rbx
>        ^

I now have problems building gnu/lib/libobjc. When using Clang, gcc is
still used to build gnu/lib/libobjc (see "XXX: clang cannot compile
libobjc yet"), but gcc core dumps at this stage on two different
computers, using the same CFLAGS "-O2 -pipe -march=native" :
pid 38850 (gcc), uid 0: exited on signal 11 (core dumped)

%clang -v
FreeBSD clang version 2.9 (trunk 126547) 20110226
Target: x86_64-undermydesk-freebsd9.0
Thread model: posix

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=-AALHfsa4Ru9-jf31q4mwFNaj5%2BfHFKzV9Rp7>