From owner-freebsd-perl@FreeBSD.ORG Wed Sep 29 00:02:52 2010 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FD701065674; Wed, 29 Sep 2010 00:02:52 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 10BCE8FC1A; Wed, 29 Sep 2010 00:02:50 +0000 (UTC) Received: by wyb33 with SMTP id 33so83502wyb.13 for ; Tue, 28 Sep 2010 17:02:49 -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=dQu3mOSrOqMP+G+YcfZDLPEWQASVH5latsgR4nBvAiY=; b=Ym/z3pVV4o33LpAbHTFRj9jBsbiSeEN7w+3VtlxWCaMPogvZTqe0yz8njlhe5cUlwY qhPnAzICFn9klx3dJW1ba3CyKwWJa8ElmGfqLR6id3Yoct4sXzHQI0oPrFwidPZBcO2O mmHuxGdDKeptK6hswHTFFyuNlG82fPwM5ai3o= 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=q3DB5DeLhHadwvypg2q2UHqf9dB8RDtbX2Vg+nttYwlYX11xtr3807vaQJ1j5TH71l ECnih8im0jcAwBKhf7C8D175FyjkJuQgklOKhMczQBJbD0PKT1HVjpgarm0S88XK14RX Pa/pdhTh7GQCOtA2bwnd6fZAEnpHgO5UlJDVE= Received: by 10.216.23.199 with SMTP id v49mr1778474wev.43.1285718565469; Tue, 28 Sep 2010 17:02:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.142 with HTTP; Tue, 28 Sep 2010 17:02:25 -0700 (PDT) In-Reply-To: References: <4C99A53E.7060707@FreeBSD.org> From: Renato Botelho Date: Tue, 28 Sep 2010 21:02:25 -0300 Message-ID: To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: perl@freebsd.org, freebsd-current@freebsd.org Subject: Re: Clang now builds world and kernel, on i386 and amd64 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 00:02:52 -0000 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} =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. :) =A0Alternatively, 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 testin= g. > > 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 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 --=20 Renato Botelho