Gentoo Archives: gentoo-user

From: Michael Hampicke <gentoo-user@××××.biz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ffmpeg - fails to compile on amd64
Date: Mon, 12 Dec 2011 21:10:33
Message-Id: 4EE66D7D.8030700@hadt.biz
In Reply to: Re: [gentoo-user] ffmpeg - fails to compile on amd64 by Michael Schreckenbauer
1 >> No nothing crazy:
2 >> CFLAGS="-Os -pipe -mtune=i686"
3 >
4 > i686? That's not amd64. You need something 64bit. Just use march=native
5 > instead of mtune=i686.
6
7 Wait, what! I could swear I was reading march=native just a few minutes ago.
8
9 mtune=i686 on amd64 just doesn't seem right, but it should compile.
10
11 # echo | gcc -dM -E - -march=native
12 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/cc1 -E -quiet -v -
13 -D_FORTIFY_SOURCE=2 -mtune=i686 -march=x86-64
14
15 gcc sets the correct march even if you set the wrong mtune.
16
17 But as Michael says, just use march=native and you should be fine.

Replies

Subject Author
Re: [gentoo-user] ffmpeg - fails to compile on amd64 Michael Hampicke <gentoo-user@××××.biz>