From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 00:41:15 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F25A106564A; Wed, 29 Sep 2010 00:41:15 +0000 (UTC) (envelope-from dlt@mebtel.net) Received: from mail960c35.nsolutionszone.com (mail960c35.nsolutionszone.com [209.235.152.150]) by mx1.freebsd.org (Postfix) with ESMTP id 1B9068FC08; Wed, 29 Sep 2010 00:41:14 +0000 (UTC) X-POP-User: dlt.mebtel.net Received: from localhost (99-194-23-158.dyn.centurytel.net [99.194.23.158]) by mail960c35.nsolutionszone.com (8.13.6/8.13.1) with ESMTP id o8T0SiYE026339; Wed, 29 Sep 2010 00:28:45 GMT Date: Tue, 28 Sep 2010 20:28:43 -0400 From: Derek Tattersall To: Renato Botelho Message-ID: <20100929002843.GA5001@oriental.arm.org> References: <4C99A53E.7060707@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CSC: 0 X-CHA: v=1.1 cv=iIcw97Q+eQ1D81EQALF4mu53sRtfq8vPcYUIyeuB6hU= c=1 sm=1 a=BUHArxkelXkA:10 a=GPr01A5e9VcA:10 a=kj9zAlcOel0A:10 a=5FSmvsqyZ8dLHOg+TByL6Q==:17 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=xwPayol1AAAA:8 a=CjxXgO3LAAAA:8 a=9QuQ-5rec9QtRV4NTe4A:9 a=G1ZOs2pcQWJnwTWVD-EA:7 a=AcyVgBPn52d8dNr3FGGaKD0DCmkA:4 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 a=0Ob1RWNGeVAA:10 a=rC2wZJ5BpNYA:10 a=5FSmvsqyZ8dLHOg+TByL6Q==:117 Cc: Dimitry Andric , current@freebsd.org Subject: Re: Clang now builds world and kernel, on i386 and amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dlt@mebtel.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 00:41:15 -0000 * Renato Botelho [100928 20:20]: > On Tue, Sep 28, 2010 at 6:07 PM, Renato Botelho wrote: > > On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric 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 imported clang/llvm snapshot), and > >> put the following in /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= > >> > >> Both world and kernel can also be installed, and should run properly, > >> but please make sure you have a way to revert if anything unexpected > >> happens. :) ?Alternatively, just install into a chroot to try it out > >> from there. > >> > >> Some additional information can be found on this wiki page: > >> > >> http://wiki.freebsd.org/BuildingFreeBSDWithClang > >> > >> Thanks to all the people that made this possible, especially Roman > >> Divacky, Ed Schouten, Rui Paulo, and of course the clang/llvm > >> developers. > > > > I built my desktop world + kernel with clang, rev. 213247 amd64, it > > booted perfectly, the only problem i got was something went wrong > > with a perl module File::Temp. > > > > To be sure it's related i'm rebuilding the src (same rev.) with gcc and > > will take a look if it will back to work. I'll send an email after testing. > > > > Just to show, the problem i got with perl was using this code: > > > > #!/usr/bin/perl > > > > use File::Temp; > > > > my ( $fh, $filename ) = File::Temp::tempfile(); > > print "$filename\n"; > > unlink $filename; > > > > with this results: > > > > Error in tempfile() using /tmp/XXXXXXXXXX: Tried to get a new temp > > name different to the previous value 50 times. > > Something wrong with template?? (/tmp/XXXXXXXXXX) at testes/tmp.pl line 5 > > After rebuild world+kernel with gcc and reboot everything > back to normal: > > garga@botelhor:~> perl testes/tmp.pl > /tmp/MfmvMiztew > garga@botelhor:~> perl testes/tmp.pl > /tmp/M4xIxsTxlc > > I'm using perl-5.12.2_2 > > -- > Renato Botelho > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" 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. -- Best regards, Derek Tattersall dlt@mebtel.net dlt666@yahoo.com dtatters@gmail.com