Date: Thu, 5 May 2011 16:10:04 +0200 From: Olivier Smedts <olivier@gid0.org> To: Roman Divacky <rdivacky@freebsd.org> Cc: current@freebsd.org Subject: Re: Clang error make buildworld Message-ID: <BANLkTin0n9q%2BMjaFqLRZ9F8NwEjQJYuL%2Bw@mail.gmail.com> In-Reply-To: <20110505135458.GA79622@freebsd.org> References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> <BANLkTimiU42U0m5nCo=hSdaUF50rwnOk4w@mail.gmail.com> <20110505135458.GA79622@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/5 Roman Divacky <rdivacky@freebsd.org>: >> Because with clang, -march=3Dnative often breaks buildworld, while >> -march=3Dcore2 is ok. > > Can you be more specific about this claim? On what CPU are seeing > this breakage? On a Core2 Quad Q9450 and a Core i7 860. I use "core2" on both because that's the most approaching values supported in bsd.cpu.mk and gcc in HEAD. I reverted from "-march=3Dnative" to "-march=3Dcore2" for two reasons, the first beeing that gcc didn't use the right "-mtune" when using "-march=3Dnative" (I think it was using internally "-mtune=3Dgeneric"). I'll try to be more specific if I can find the tests I was using at that time. The second reason is that with "-march=3Dnative", my buildworld often failed with clang, and since I use "-march=3Dcore2" I had no issues. I'll try to buildworld with "-march=3Dnative" and report back. > Anyway, can you compile and run on that machine this: > > =A0 =A0 =A0 =A0http://lev.vlakno.cz/~rdivacky/Host.cpp Compiled with gcc and clang, both output (on one of the two computers I use most) : roman =3D corei7 > It's the LLVM CPU autodetection code, it will print the name of > your CPU. I wonder whats the difference to "core2". > > Thank you. roman Cheers --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin0n9q%2BMjaFqLRZ9F8NwEjQJYuL%2Bw>