Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Dimitry Andric
On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today. The clang case produces a filename with all A's rather than the random letters expected. I cannot reproduce this on a system compiled entirely with clang: $ mktemp

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Buganini
mktemp foo.XX works here but perl's File::Temp is not working when I tried to build editors/openoffice.org-3-devel, I got: Error in tempdir() using /tmp/XX: Tried to get a new temp name different to the previous value 50 times. Something wrong with template?? (/tmp/XX) at

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Garrett Cooper
On Tue, Sep 28, 2010 at 11:43 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today.  The clang case produces a filename with all A's rather than the random letters expected.

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Daniel Nebdal
On Wed, Sep 29, 2010 at 8:58 AM, Garrett Cooper gcoo...@freebsd.org wrote: On Tue, Sep 28, 2010 at 11:43 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today.  The clang case

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 3:43 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today.  The clang case produces a filename with all A's rather than the random letters expected. I

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 3:58 AM, Garrett Cooper gcoo...@freebsd.org wrote: On Tue, Sep 28, 2010 at 11:43 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today.  The clang case

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 3:56 AM, Buganini bugan...@gmail.com wrote: mktemp foo.XX works here but perl's File::Temp is not working when I tried to build editors/openoffice.org-3-devel, I got: Error in tempdir() using /tmp/XX: Tried to get a new temp name different to the previous

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Dimitry Andric
On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n; For me it works perfectly, though I am using perl 5.10: $ cat foo.pl #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) =

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Derek Tattersall
* Dimitry Andric d...@freebsd.org [100929 06:16]: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today. The clang case produces a filename with all A's rather than the random letters expected. I cannot reproduce

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n; For me it works perfectly, though I am using perl 5.10: $ cat foo.pl

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Buganini
I'm using perl 5.10, on amd64 only enable clang in src.conf no CPU nor CFLAGS settings in src.conf/make.conf so it seems that the problem is perl-version independent? perhaps amd64? On Wed, Sep 29, 2010 at 7:46 PM, Derek Tattersall d...@mebtel.net wrote: * Dimitry Andric d...@freebsd.org

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 8:50 AM, Buganini bugan...@gmail.com wrote: I'm using perl 5.10, on amd64 only enable clang in src.conf no CPU nor CFLAGS settings in src.conf/make.conf so it seems that the problem is perl-version independent? perhaps amd64? I didn't test on i386 but it seems to be

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Derek Tattersall
* Garrett Cooper gcoo...@freebsd.org [100929 06:16]: On Tue, Sep 28, 2010 at 11:43 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 02:28, Derek Tattersall wrote: A test shell script using mktemp (1) works fine on current built with clang today. ?The clang case produces a filename

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n; For me it works perfectly, though I am using perl 5.10: $ cat foo.pl

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 9:40 AM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n;

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 10:12 AM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 29, 2010 at 9:40 AM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Roman Divacky
On Wed, Sep 29, 2010 at 09:40:18AM -0300, Renato Botelho wrote: On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n;

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 11:06 AM, Roman Divacky rdiva...@freebsd.org wrote: renato, can you check if libc compiled with clang -O0 still exhibits the bug? I got the following error when i try to build libc with -O0 clang -O2 -pipe -O0 -I/usr/src/lib/libc/include

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Derek Tattersall
* Dimitry Andric d...@freebsd.org [100929 08:55]: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n; For me it works perfectly, though I am using perl 5.10: $ cat foo.pl #!/usr/bin/perl

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 11:06 AM, Roman Divacky rdiva...@freebsd.org wrote: renato, can you check if libc compiled with clang -O0 still exhibits the bug? Hi Roman, I needed to build ldexp.{o,po,So} manually with -O2, and built every other object using -O0, the same problem happened. --

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Roman Divacky
On Wed, Sep 29, 2010 at 11:56:59AM -0400, Derek Tattersall wrote: * Dimitry Andric d...@freebsd.org [100929 08:55]: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh, $filename ) = File::Temp::tempfile(); print $filename\n; For me it

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Dimitry Andric
On 2010-09-29 17:48, Renato Botelho wrote: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-undermydesk-freebsd9.0 -S -disable-free -main-file-name ldexp.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 2:31 PM, Roman Divacky rdiva...@freebsd.org wrote: On Wed, Sep 29, 2010 at 11:56:59AM -0400, Derek Tattersall wrote: * Dimitry Andric d...@freebsd.org [100929 08:55]: On 2010-09-29 13:23, Renato Botelho wrote: #!/usr/bin/perl use File::Temp; my ( $fh,

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Roman Divacky
On Wed, Sep 29, 2010 at 02:41:17PM -0300, Renato Botelho wrote: On Wed, Sep 29, 2010 at 2:31 PM, Roman Divacky rdiva...@freebsd.org wrote: On Wed, Sep 29, 2010 at 11:56:59AM -0400, Derek Tattersall wrote: * Dimitry Andric d...@freebsd.org [100929 08:55]: On 2010-09-29 13:23, Renato Botelho

Fwd: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
Could you guys give us some help on this? -- Forwarded message -- From: Roman Divacky rdiva...@freebsd.org Date: Wed, Sep 29, 2010 at 2:44 PM Subject: Re: Clang now builds world and kernel, on i386 and amd64 To: Renato Botelho rbga...@gmail.com Cc: Derek Tattersall

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 2:44 PM, Roman Divacky rdiva...@freebsd.org wrote: heh, now I noticed that Derek already wrote that ;) is anyone able to find where in perl sources the rand function is defined? I failed that :( It's using drand48() instead of rand()

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Dimitry Andric
On 2010-09-29 20:22, Renato Botelho wrote: It's using drand48() instead of rand() ... GCC libc: ga...@botelhor:~/testes ./test random value 0.396465 clang libc: ga...@botelhor:~/testes ./test random value -inf Renato, Derek, could you please apply the attached patch for ldexp, rebuild

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 4:35 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 20:22, Renato Botelho wrote: It's using drand48() instead of rand() ... GCC libc: ga...@botelhor:~/testes  ./test random value 0.396465 clang libc: ga...@botelhor:~/testes  ./test random value -inf

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Dimitry Andric
On 2010-09-29 21:47, Renato Botelho wrote: Renato, Derek, could you please apply the attached patch for ldexp, rebuild your libc (with clang), and run your random test program again? Worked perfectly here \o/ And what about perl? :) ___

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Renato Botelho
On Wed, Sep 29, 2010 at 4:49 PM, Dimitry Andric d...@freebsd.org wrote: On 2010-09-29 21:47, Renato Botelho wrote: Renato, Derek, could you please apply the attached patch for ldexp, rebuild your libc (with clang), and run your random test program again? Worked perfectly here \o/ And what

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-29 Thread Derek Tattersall
* Dimitry Andric d...@freebsd.org [100929 17:05]: On 2010-09-29 21:47, Renato Botelho wrote: Renato, Derek, could you please apply the attached patch for ldexp, rebuild your libc (with clang), and run your random test program again? Worked perfectly here \o/ And what about perl? :)

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Olivier Smedts
2010/9/27 Olivier Smedts oliv...@gid0.org: 2010/9/27 Olivier Smedts oliv...@gid0.org: 2010/9/27 Dimitry Andric d...@freebsd.org: On 2010-09-27 09:32, Olivier Smedts wrote: 2010/9/23 Bartosz Stecad...@kkip.pl: ... Assertion failed: (false  Ran out of registers during register

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Olivier Smedts
2010/9/27 Olivier Smedts oliv...@gid0.org: 2010/9/23 Bartosz Stec ad...@kkip.pl:  On 2010-09-23 08:51, Roman Divacky wrote: if you want to post any build-time numbers for clang please           -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG uncomment the -DNDEBUG on this line in

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Renato Botelho
On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric d...@freebsd.org wrote: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated your installed world to at least r212904 (which has

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Renato Botelho
On Tue, Sep 28, 2010 at 6:07 PM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric d...@freebsd.org wrote: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Renato Botelho
On Tue, Sep 28, 2010 at 9:28 PM, Derek Tattersall d...@mebtel.net wrote: * Renato Botelho rbga...@gmail.com [100928 20:20]: On Tue, Sep 28, 2010 at 6:07 PM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric d...@freebsd.org wrote: Hi, As of r212979,

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-28 Thread Derek Tattersall
* Renato Botelho rbga...@gmail.com [100928 20:20]: On Tue, Sep 28, 2010 at 6:07 PM, Renato Botelho rbga...@gmail.com wrote: On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric d...@freebsd.org wrote: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-27 Thread Olivier Smedts
2010/9/27 Olivier Smedts oliv...@gid0.org: 2010/9/23 Bartosz Stec ad...@kkip.pl:  On 2010-09-23 08:51, Roman Divacky wrote: if you want to post any build-time numbers for clang please           -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG uncomment the -DNDEBUG on this line in

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-27 Thread Olivier Smedts
2010/9/23 Bartosz Stec ad...@kkip.pl:  On 2010-09-23 08:51, Roman Divacky wrote: if you want to post any build-time numbers for clang please           -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG uncomment the -DNDEBUG on this line in lib/clang/clang.build.mk and rebuild it

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-27 Thread Dimitry Andric
On 2010-09-27 09:32, Olivier Smedts wrote: 2010/9/23 Bartosz Stecad...@kkip.pl: ... Assertion failed: (false Ran out of registers during register allocation!), function assignRegOrStackSlotAtInterval, file

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-27 Thread Olivier Smedts
2010/9/27 Dimitry Andric d...@freebsd.org: On 2010-09-27 09:32, Olivier Smedts wrote: 2010/9/23 Bartosz Stecad...@kkip.pl: ... Assertion failed: (false  Ran out of registers during register allocation!), function assignRegOrStackSlotAtInterval, file

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-27 Thread Olivier Smedts
2010/9/27 Olivier Smedts oliv...@gid0.org: 2010/9/27 Dimitry Andric d...@freebsd.org: On 2010-09-27 09:32, Olivier Smedts wrote: 2010/9/23 Bartosz Stecad...@kkip.pl: ... Assertion failed: (false  Ran out of registers during register allocation!), function assignRegOrStackSlotAtInterval,

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-26 Thread Roman Divacky
On Sat, Sep 25, 2010 at 08:55:51PM +, b. f. wrote: Dmitry Andric wrote: On 2010-09-25 21:16, Paul B Mahol wrote: When to expect to get rid of GNU as and other binutils tools? Work is progressing steadily on the clang/llvm integrated assembler, which removes the need for an external

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-26 Thread Bartosz Stec
W dniu 2010-09-24 16:34, Dimitry Andric pisze: On 2010-09-24 14:13, Bartosz Stec wrote: Could you please try to rename this make.conf to e.g. make.conf.disable, and retry the world build? Still the same without make.conf. My personal guess is, that clang builded by clang with

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-26 Thread Bartosz Stec
W dniu 2010-09-26 14:42, Erik Trulsson pisze: On Sun, Sep 26, 2010 at 02:21:51PM +0200, Bartosz Stec wrote: W dniu 2010-09-24 16:34, Dimitry Andric pisze: On 2010-09-24 14:13, Bartosz Stec wrote: Could you please try to rename this make.conf to e.g. make.conf.disable, and retry the world

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-26 Thread Erik Trulsson
On Sun, Sep 26, 2010 at 02:21:51PM +0200, Bartosz Stec wrote: W dniu 2010-09-24 16:34, Dimitry Andric pisze: On 2010-09-24 14:13, Bartosz Stec wrote: Could you please try to rename this make.conf to e.g. make.conf.disable, and retry the world build? Still the same without make.conf.

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-26 Thread Bartosz Stec
W dniu 2010-09-26 14:54, Bartosz Stec pisze: W dniu 2010-09-26 14:42, Erik Trulsson pisze: On Sun, Sep 26, 2010 at 02:21:51PM +0200, Bartosz Stec wrote: W dniu 2010-09-24 16:34, Dimitry Andric pisze: On 2010-09-24 14:13, Bartosz Stec wrote: Could you please try to rename this make.conf

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-25 Thread Paul B Mahol
On 9/22/10, Dimitry Andric d...@freebsd.org wrote: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated your installed world to at least r212904 (which has the most recently

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-25 Thread Dimitry Andric
On 2010-09-25 21:16, Paul B Mahol wrote: On 9/22/10, Dimitry Andricd...@freebsd.org wrote: As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! ... When to expect to get rid of GNU as and other binutils tools? Work is

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-25 Thread Roman Divacky
On Sat, Sep 25, 2010 at 10:23:44PM +0200, Dimitry Andric wrote: On 2010-09-25 21:16, Paul B Mahol wrote: On 9/22/10, Dimitry Andricd...@freebsd.org wrote: As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! ... When

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-25 Thread b. f.
Dmitry Andric wrote: On 2010-09-25 21:16, Paul B Mahol wrote: When to expect to get rid of GNU as and other binutils tools? Work is progressing steadily on the clang/llvm integrated assembler, which removes the need for an external assembler such as gas, and which should also reduce compile

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-24 Thread Bartosz Stec
W dniu 2010-09-23 16:45, Dimitry Andric pisze: On 2010-09-23 13:24, Bartosz Stec wrote: I cannot reproduce this here, running the exact command printed above. What is the output of /usr/bin/clang++ -v ? # /usr/bin/clang++ -v FreeBSD clang version 2.8 (branches/release_28 114020) 20100917

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-24 Thread Dimitry Andric
On 2010-09-24 13:24, Bartosz Stec wrote: make.conf (note that NOCCACHE was defined in environment during all builds so ccache wasn't used): CPUTYPE=athlon-xp # default build settings for ports collection .if ${.CURDIR:M*/ports/*} !defined(NOCCACHE) CFLAGS=-O2 -pipe

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-24 Thread Bartosz Stec
W dniu 2010-09-24 13:47, Dimitry Andric pisze: On 2010-09-24 13:24, Bartosz Stec wrote: make.conf (note that NOCCACHE was defined in environment during all builds so ccache wasn't used): CPUTYPE=athlon-xp # default build settings for ports collection .if ${.CURDIR:M*/ports/*}

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-24 Thread Dimitry Andric
On 2010-09-24 14:13, Bartosz Stec wrote: Could you please try to rename this make.conf to e.g. make.conf.disable, and retry the world build? Still the same without make.conf. My personal guess is, that clang builded by clang with CPUTYPE=athlon-xp is somehow broken. I don't think CFLAGS=-O2

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Roman Divacky
On Wed, Sep 22, 2010 at 11:15:47PM +0200, Bartosz Stec wrote: On 2010-09-22 22:42, Rene Ladan wrote: Just tried it. World has been builded without any problems, but stge kernel module failed to compile: === stge (all) clang -O2 -pipe -march=athlon-xp -fno-strict-aliasing -D_KERNEL

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Bartosz Stec
On 2010-09-23 08:51, Roman Divacky wrote: I will post comparison of building times and results using gcc/clang/ccache/noccache on my box soon :) if you want to post any build-time numbers for clang please -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG uncomment the

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Bartosz Stec
On 2010-09-23 08:51, Roman Divacky wrote: if you want to post any build-time numbers for clang please -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG uncomment the -DNDEBUG on this line in lib/clang/clang.build.mk and rebuild it otherwise you are using Release+Asserts

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Dimitry Andric
On 2010-09-23 12:20, Bartosz Stec wrote: --- /etc/csh.cshrc 2009-09-21 11:01:51.0 +0200 +++ ./etc/csh.cshrc 2010-09-23 12:12:47.553768640 +0200 @@ -1,6 +1,3 @@ -# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $ +# $FreeBSD$ (...)

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Dimitry Andric
On 2010-09-23 12:55, Bartosz Stec wrote: 0. Program arguments: /usr/bin/clang++ -cc1 -triple i386-undermydesk-freebsd9.0 -S -disable-free -main-file-name APFloat.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu i486 -resource-dir /usr/lib/clang/2.8 -D

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Bartosz Stec
On 2010-09-23 13:21, Dimitry Andric wrote: I cannot reproduce this here, running the exact command printed above. What is the output of /usr/bin/clang++ -v ? # /usr/bin/clang++ -v FreeBSD clang version 2.8 (branches/release_28 114020) 20100917 Target: i386-undermydesk-freebsd9.0 Thread

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-23 Thread Dimitry Andric
On 2010-09-23 13:24, Bartosz Stec wrote: I cannot reproduce this here, running the exact command printed above. What is the output of /usr/bin/clang++ -v ? # /usr/bin/clang++ -v FreeBSD clang version 2.8 (branches/release_28 114020) 20100917 Target: i386-undermydesk-freebsd9.0 Thread model:

Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread Dimitry Andric
Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated your installed world to at least r212904 (which has the most recently imported clang/llvm snapshot), and put the following in

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread René Ladan
2010/9/22 Dimitry Andric d...@freebsd.org: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated your installed world to at least r212904 (which has the most recently imported

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread Bartosz Stec
On 2010-09-22 12:42, René Ladan wrote: 2010/9/22 Dimitry Andricd...@freebsd.org: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated your installed world to at least r212904

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread Pyun YongHyeon
On Wed, Sep 22, 2010 at 06:47:50PM +0200, Bartosz Stec wrote: On 2010-09-22 12:42, Ren? Ladan wrote: 2010/9/22 Dimitry Andricd...@freebsd.org: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread Rene Ladan
On 22-09-2010 18:45, Bartosz Stec wrote: On 2010-09-22 12:42, René Ladan wrote: 2010/9/22 Dimitry Andricd...@freebsd.org: Hi, As of r212979, you should now be able to build world and kernel on i386 and amd64 with clang, without any additional patches! To do so, make sure you have updated

Re: Clang now builds world and kernel, on i386 and amd64

2010-09-22 Thread Bartosz Stec
On 2010-09-22 22:42, Rene Ladan wrote: Just tried it. World has been builded without any problems, but stge kernel module failed to compile: === stge (all) clang -O2 -pipe -march=athlon-xp -fno-strict-aliasing -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include