From owner-freebsd-current@FreeBSD.ORG Fri Sep 9 08:52:51 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F3351065675 for ; Fri, 9 Sep 2011 08:52:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0B29E8FC0C for ; Fri, 9 Sep 2011 08:52:50 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:584a:79b3:63be:8172] (unknown [IPv6:2001:7b8:3a7:0:584a:79b3:63be:8172]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1D00A5C59; Fri, 9 Sep 2011 10:52:50 +0200 (CEST) Message-ID: <4E69D3E5.3090201@FreeBSD.org> Date: Fri, 09 Sep 2011 10:52:53 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110905 Thunderbird/7.0 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org> <4E66162F.8090406@gmail.com> <4E661B1C.2030608@gmail.com> <4E662C7A.3020404@gmail.com> <4E698BCC.5010400@gmail.com> In-Reply-To: <4E698BCC.5010400@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Compiling BETA2 with clang fails 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: Fri, 09 Sep 2011 08:52:51 -0000 On 2011-09-09 05:45, Volodymyr Kostyrko wrote: ... >> Like cleaning /usr/obj/ and then buildworld with clang but with >> "-march=athlon-xp" instead of "-march=native". >> As the problem does not seem to be in your current world but rather in >> the bootstrap clang compiled with -march=native, you should not have >> to {build,install}world with gcc first. > > I cleaned /usr/obj and made a build with -march=athlon-xp. Same errors. I did a few test builds with 'high' CPU values for -march, and I ran into various problems. I'd discourage the use of -march=native for now, at least with clang. It will take some time to investigate. ... > # nm -D /usr/obj/usr/src/tmp/usr/lib/libc.so ... > That's the problem - libraries miss most symbols. This is why I still think you have the stdin/out/err problem, in some way. Can you please check /usr/obj/usr/src/lib/libc/Version.map? It should have about 2775 lines, otherwise your libc build is busted.