From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 00:33:07 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 AFA461065674; Wed, 29 Sep 2010 00:33:07 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1BA7F8FC17; Wed, 29 Sep 2010 00:33:06 +0000 (UTC) Received: by wwb17 with SMTP id 17so353554wwb.31 for ; Tue, 28 Sep 2010 17:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=V1rNRY4Xq3WOGnKZxz/iWVYmGVq6Q5BpyrwPsTCKw0k=; b=R+aI71U0OMo/oV6gDNwJiYxJwx5SoA8MN2O+TvhAxIy+G6JFIQX3KbUOGqhoOGmvK6 zorTlmscE/BznFCi59ogOYngq++KLtG1a9uUhO2YsWmwlleQ0yDBipauojduXyjGF03C qTEZ1kJQugqFUFP2SY3BNlkwyOePXXubdK8Kc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=RJRLez0C/OoKo55t8qmPENAc9jUW/rrPF87hdXq5fCXgDncgJz0+0VhPknx8yPbDL+ 0bg1N3FSoQBzh87OZPPSV5NWWjEVa2cbINpYqTXwFzRgoL2IYaJABLMF7uf/V5CR6v02 /uW02oYUY01wAknw/VuRtDLRI2WKfMkgGAzXM= Received: by 10.216.165.16 with SMTP id d16mr721428wel.0.1285720385652; Tue, 28 Sep 2010 17:33:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.142 with HTTP; Tue, 28 Sep 2010 17:32:45 -0700 (PDT) In-Reply-To: <20100929002843.GA5001@oriental.arm.org> References: <4C99A53E.7060707@FreeBSD.org> <20100929002843.GA5001@oriental.arm.org> From: Renato Botelho Date: Tue, 28 Sep 2010 21:32:45 -0300 Message-ID: To: dlt@mebtel.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 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:33:07 -0000 On Tue, Sep 28, 2010 at 9:28 PM, Derek Tattersall wrote: > * Renato Botelho [100928 20:20]: >> On Tue, Sep 28, 2010 at 6:07 PM, Renato Botelho wrot= e: >> > On Wed, Sep 22, 2010 at 3:42 AM, Dimitry Andric wrot= e: >> >> Hi, >> >> >> >> As of r212979, you should now be able to build world and kernel on i3= 86 >> >> 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), a= nd >> >> put the following in /etc/src.conf: >> >> >> >> .if !defined(CC) || ${CC} =3D=3D "cc" >> >> CC=3Dclang >> >> .endif >> >> .if !defined(CXX) || ${CXX} =3D=3D "c++" >> >> CXX=3Dclang++ >> >> .endif >> >> # Don't die on warnings >> >> NO_WERROR=3D >> >> WERROR=3D >> >> >> >> 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 an= d >> > will take a look if it will back to work. I'll send an email after tes= ting. >> > >> > Just to show, the problem i got with perl was using this code: >> > >> > #!/usr/bin/perl >> > >> > use File::Temp; >> > >> > my ( $fh, $filename ) =3D 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 lin= e 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.or= g" > A test shell script using mktemp (1) works fine on current built with > clang today. =A0The clang case produces a filename with all "A"'s rather > than the random letters expected. I didn't test mktemp, but my perl test code generate files with all 'A' just after i reboot the machine with clang, after few minutes it stop working and give the error I reported. Please let me know if there is any kind of information I can send to help fixing this. --=20 Renato Botelho