From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 14:07:01 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 E36B5106564A; Wed, 29 Sep 2010 14:07:01 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 95E378FC0C; Wed, 29 Sep 2010 14:07:01 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 323579CB084; Wed, 29 Sep 2010 16:06:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C0QtN0ZksjTv; Wed, 29 Sep 2010 16:06:58 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 769009CB12F; Wed, 29 Sep 2010 16:06:58 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id o8TE6v0U050944; Wed, 29 Sep 2010 16:06:57 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 29 Sep 2010 16:06:57 +0200 From: Roman Divacky To: Renato Botelho Message-ID: <20100929140657.GA50873@freebsd.org> References: <4C99A53E.7060707@FreeBSD.org> <20100929002843.GA5001@oriental.arm.org> <4CA2E00D.3080102@FreeBSD.org> <4CA3244D.7030907@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: dlt@mebtel.net, 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 14:07:02 -0000 On Wed, Sep 29, 2010 at 09:40:18AM -0300, Renato Botelho wrote: > On Wed, Sep 29, 2010 at 8:34 AM, Dimitry Andric 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 > > #!/usr/bin/perl > > > > use File::Temp; > > > > my ( $fh, $filename ) = File::Temp::tempfile(); > > print "$filename\n"; > > $ perl -v > > > > This is perl, v5.10.1 (*) built for i386-freebsd-64int > > > > Copyright 1987-2009, Larry Wall > > > > Perl may be copied only under the terms of either the Artistic License or > > the > > GNU General Public License, which may be found in the Perl 5 source kit. > > > > Complete documentation for Perl, including FAQ lists, should be found on > > this system using "man perl" or "perldoc perl". ?If you have access to the > > Internet, point your browser at http://www.perl.org/, the Perl Home Page. > > > > $ perl foo.pl > > /tmp/tv25CPnWhF > > $ perl foo.pl > > /tmp/L2UJQ5_JJs > > $ perl foo.pl > > /tmp/6ynQYvWIc1 > > $ perl foo.pl > > /tmp/Tdpf7PKBMg > > $ perl foo.pl > > /tmp/76ir2i1ici > > $ perl foo.pl > > /tmp/LhfD0eZgd8 > > > > I'll try building perl 5.12 and try it again. > > > > Btw, I assume you did *not* rebuild perl with clang, so your perl is > > still compiled with gcc? > > > > Well, I find out where the problem is, now I have my entire > system built with gcc. After install libc.so.7 built with clang > the problem starts, installing same lib built with gcc the > problem stops. > > How can I debug it to give you more information? renato, can you check if libc compiled with clang -O0 still exhibits the bug? thank you, roman