From owner-freebsd-current@FreeBSD.ORG Thu May 5 14:10:05 2011 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 3CA2F106566C for ; Thu, 5 May 2011 14:10:05 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 10D4F8FC0C for ; Thu, 5 May 2011 14:10:04 +0000 (UTC) Received: by pwj8 with SMTP id 8so1312472pwj.13 for ; Thu, 05 May 2011 07:10:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.35.228 with SMTP id l4mr3411745pbj.5.1304604604535; Thu, 05 May 2011 07:10:04 -0700 (PDT) Received: by 10.68.40.4 with HTTP; Thu, 5 May 2011 07:10:04 -0700 (PDT) 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> <20110505135458.GA79622@freebsd.org> Date: Thu, 5 May 2011 16:10:04 +0200 Message-ID: From: Olivier Smedts To: Roman Divacky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Clang error make buildworld 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: Thu, 05 May 2011 14:10:05 -0000 2011/5/5 Roman Divacky : >> 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."