Date: Fri, 09 Sep 2011 10:52:53 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Volodymyr Kostyrko <c.kworr@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Compiling BETA2 with clang fails Message-ID: <4E69D3E5.3090201@FreeBSD.org> In-Reply-To: <4E698BCC.5010400@gmail.com> References: <j3u29f$bv8$1@dough.gmane.org> <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org> <CABzXLYPUPvubXa4a%2BRkAftCOCyr===v6SOw=o=qtZ%2BHDTiJywg@mail.gmail.com> <4E66162F.8090406@gmail.com> <CABzXLYOxgYbFtSJ%2BVHwLHRYmUsC2jVGhuJOmG-KGPiqjACH9AQ@mail.gmail.com> <4E661B1C.2030608@gmail.com> <CABzXLYPZSN8kzsyauA_TpjkPyo_xA_OXWfCjkLsc=s6vkt-%2BbQ@mail.gmail.com> <4E662C7A.3020404@gmail.com> <CABzXLYNRy=L=SBLoG3uvfTAdp=fL2i1=qo2rxN2UL5sdzS949w@mail.gmail.com> <4E698BCC.5010400@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E69D3E5.3090201>