[MPlayer-dev-eng] [PATCH] fix compiling in non-linux system
Xidorn Quan
quanxunzhen at gmail.com
Tue Oct 9 13:27:03 CEST 2012
On Tue, Oct 9, 2012 at 4:37 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de>wrote:
> Xidorn Quan <quanxunzhen at gmail.com> wrote:
>
> >On Tue, Oct 9, 2012 at 1:44 PM, Bernd Ernesti <
> >mplayer-dev-eng at lists.veego.de> wrote:
> >
> >> On Tue, Oct 09, 2012 at 12:51:07PM +0800, Xidorn Quan wrote:
> >> > Hi,
> >> >
> >> > According to man page of gcc, value native for -march and -mtune is
> >> > only supported on Linux at present. Using this value causes
> >compiler
> >> > generates unrecongized instructions on OS X.
> >>
> >> You should better check why your clang is not detected instead of
> >adding
> >> this broken patch.
> >>
> >> Bernd
> >>
> >> P.S. Your man page is wrong.
> >>
> >
> >Clang doesn't support value "native" at all. I manually set argument
> >--cc=gcc-4.7 for configure, then make, it reported something like:
> >
> >> {standard input}:172:no such instruction: `vcvtsi2sd (%rdx),
> >%xmm1,%xmm1'
>
> To me this looks like it works perfectly, but your binutils are
> broken/outdated and cannot work properly with your gcc version.
>
Well, you are right that "native" works fine. It finds that my arch
is corei7-avx but assembler for my system doesn't support avx.
More information about the MPlayer-dev-eng
mailing list