Re: Can't buildworld since Clang update

2011-03-01 Thread Olivier Smedts
2011/2/28 Dimitry Andric d...@freebsd.org: On 2011-02-28 15:35, Olivier Smedts wrote: 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

Re: Can't buildworld since Clang update

2011-02-28 Thread Olivier Smedts
2011/2/21 Olivier Smedts oliv...@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 r...@zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE  amd64 %clang -v FreeBSD clang

Re: Can't buildworld since Clang update

2011-02-28 Thread Dimitry Andric
On 2011-02-28 15:35, Olivier Smedts wrote: 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

Re: Can't buildworld since Clang update

2011-02-24 Thread Dimitry Andric
On 2011-02-24 08:26, datastream datastream.freecity wrote: I removed /etc/src.conf.binutils is 2.15. ... Ok, I managed to reproduce your error, on an old snapshot with clang 2.8 and binutils 2.15. It turns out it is caused by an upstream change, which was intended to work around problems in

Re: Can't buildworld since Clang update

2011-02-24 Thread datastream datastream.freecity
It works.make buildworld works ok now.Thinks Dimitry Andric. On Fri, Feb 25, 2011 at 5:54 AM, Dimitry Andric d...@freebsd.org wrote: On 2011-02-24 08:26, datastream datastream.freecity wrote: I removed /etc/src.conf.binutils is 2.15. ... Ok, I managed to reproduce your error, on an old

Re: Can't buildworld since Clang update

2011-02-23 Thread datastream datastream.freecity
I deleted all files in /usr/src and /usr/obj. it changes nothing, i still get same error. In /etc/make.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= STRIP= CFLAGS+=-fno-omit-frame-pointer On

Re: Can't buildworld since Clang update

2011-02-23 Thread Renato Botelho
On Wed, Feb 23, 2011 at 10:22 AM, datastream datastream.freecity datastream.freec...@gmail.com wrote: I deleted all files in /usr/src and /usr/obj. it changes nothing, i still get same error. In /etc/make.conf: .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} ==

Re: Can't buildworld since Clang update

2011-02-23 Thread Dimitry Andric
On 2011-02-23 14:22, datastream datastream.freecity wrote: I deleted all files in /usr/src and /usr/obj. it changes nothing, i still get same error. In /etc/make.conf: .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} == c++ CXX=clang++ .endif # Don't die on warnings

Re: Can't buildworld since Clang update

2011-02-23 Thread datastream datastream.freecity
I removed /etc/src.conf.binutils is 2.15. #svn info /usr/src Path: /usr/src URL: http://svn.freebsd.org/base/head Repository Root: http://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 218985 Node Kind: directory Schedule: normal Last Changed Author: brucec

Re: Can't buildworld since Clang update

2011-02-22 Thread datastream datastream.freecity
I add '-no-integrated-as' in /etc/make.conf,but I still failed. #clang -v FreeBSD clang version 2.8 (tags/RELEASE_28 115870) 20101007 Target: x86_64-undermydesk-freebsd9.0 Thread model: posix #make buildworld .. === cddl/usr.bin/zinject (all) clang -O2 -pipe -fno-omit-frame-pointer

Re: Can't buildworld since Clang update

2011-02-22 Thread Dimitry Andric
On 2011-02-22 15:37, datastream datastream.freecity wrote: I add '-no-integrated-as' in /etc/make.conf,but I still failed. Don't do that. The few instances where the integrated assembler needs to be disabled are already covered. ... /usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference

Re: Can't buildworld since Clang update

2011-02-22 Thread Manfred Antar
At 07:07 AM 2/21/2011, Dimitry Andric wrote: On 2011-02-21 11:33, Olivier Smedts wrote: I can't buildworld with Clang since the last update. ... %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

Re: Can't buildworld since Clang update

2011-02-22 Thread Dimitry Andric
On 2011-02-22 16:16, Manfred Antar wrote: I too am having trouble with buildworld I switched back to standard /usr/bin/cc, but make buildworld stops here: c++ -O2 -pipe -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include

Re: Can't buildworld since Clang update

2011-02-22 Thread Manfred Antar
At 07:07 AM 2/21/2011, Dimitry Andric wrote: On 2011-02-21 11:33, Olivier Smedts wrote: I can't buildworld with Clang since the last update. ... %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

Re: Can't buildworld since Clang update

2011-02-22 Thread datastream datastream.freecity
In /etc/make.conf, I only add 'CFLAGS+=-fno-omit-frame-pointer'.And removed all files in /usr/obj. /usr/src sync with http://svn.freebsd.org/base/head. #make buildkernel MAKE=make sh /usr/src/sys/conf/newvers.sh G9laptop /usr/local/bin/svnversion clang -c -O2 -frename-registers -pipe

Re: Can't buildworld since Clang update

2011-02-22 Thread Dimitry Andric
On 2011-02-22 18:38, datastream datastream.freecity wrote: In /etc/make.conf, I only add 'CFLAGS+=-fno-omit-frame-pointer'.And removed all files in /usr/obj. /usr/src sync with http://svn.freebsd.org/base/head. #make buildkernel Before you do make buildkernel, always run make buildworld, or at

Re: Can't buildworld since Clang update

2011-02-22 Thread Eir Nym
On 22 February 2011 21:11, Dimitry Andric d...@freebsd.org wrote: On 2011-02-22 18:38, datastream datastream.freecity wrote: In /etc/make.conf, I only add 'CFLAGS+=-fno-omit-frame-pointer'.And removed all files in /usr/obj. /usr/src sync with http://svn.freebsd.org/base/head. #make

Re: Can't buildworld since Clang update

2011-02-21 Thread Dimitry Andric
On 2011-02-21 11:33, Olivier Smedts wrote: I can't buildworld with Clang since the last update. ... %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= Try putting these lines in