From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 22:18:03 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 97D53E54; Fri, 22 Feb 2013 22:18:03 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id 60C80EF6; Fri, 22 Feb 2013 22:18:03 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r1MMHoMC010829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Feb 2013 14:17:50 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r1MMHotV010828; Fri, 22 Feb 2013 14:17:50 -0800 (PST) (envelope-from jmg) Date: Fri, 22 Feb 2013 14:17:50 -0800 From: John-Mark Gurney To: Dimitry Andric Subject: Re: r245741 (clang as cc) can not build binaries for GEODE processor Message-ID: <20130222221750.GB55866@funkthat.com> Mail-Followup-To: Dimitry Andric , lev@freebsd.org, freebsd-current References: <108875110.20130222104603@serebryakov.spb.ru> <51277EFE.4000703@andric.com> <15917508.20130222194954@serebryakov.spb.ru> <5127997A.2000901@andric.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5127997A.2000901@andric.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Fri, 22 Feb 2013 14:17:50 -0800 (PST) Cc: lev@freebsd.org, freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 22 Feb 2013 22:18:03 -0000 Dimitry Andric wrote this message on Fri, Feb 22, 2013 at 17:14 +0100: > On 2013-02-22 16:49, Lev Serebryakov wrote: > >You wrote 22 ?????????????? 2013 ??., 18:21:50: > > > >DA> The default for FreeBSD on 32-bit x86 is i486, so maybe the problems > >are > >DA> caused by the -march=geode setting. If you disable that, do the > >DA> problems disappear? > > Problem is, that code compiled with "-march=geode" works. Code > >built without any "-march" at all (without CPUTYPE in configs) doesn't. > > It looks like clang or use "build system" CPU as default "-march" or > >issue some >= i686 commands without it. Or both :) > > Clang defaults to i486 (that is, on i386-unknown-freebsdXX arch), unless > you specify -march= or -mcpu= on the command line. > > Maybe samba, or any of its dependencies, attempts to be "smart", and > enables some custom CPU optimizations? Clang is broken when compiling for pre-PPro machines... it compiles include the cmov instruction. I sent email to -current about this earlier this month in: Subject: -current broken on pre-PPro machines (w/ work around) http://www.freebsd.org/cgi/mid.cgi?20130201170737.GP1410@funkthat.com The work around is to use gcc which will not emit the cmov instructions... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."