Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2013 14:17:50 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Dimitry Andric <dimitry@andric.com>
Cc:        lev@freebsd.org, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: r245741 (clang as cc) can not build binaries for GEODE processor
Message-ID:  <20130222221750.GB55866@funkthat.com>
In-Reply-To: <5127997A.2000901@andric.com>
References:  <108875110.20130222104603@serebryakov.spb.ru> <51277EFE.4000703@andric.com> <15917508.20130222194954@serebryakov.spb.ru> <5127997A.2000901@andric.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130222221750.GB55866>