1 |
Am Montag, 12. Dezember 2011, 13:28:39 schrieb Joseph: |
2 |
> On 12/12/11 20:32, Michael Hampicke wrote: |
3 |
> >> Configuring source in |
4 |
> >> /var/tmp/portage/media-video/ffmpeg-0.7.8/work/ffmpeg-0.7.8 ... |
5 |
> >> x86_64-pc-linux-gnu-gcc is unable to create an executable file. |
6 |
> >> If x86_64-pc-linux-gnu-gcc is a cross-compiler, use the |
7 |
> >> --enable-cross-compile option. |
8 |
> >> Only do this if you know what cross compiling means. |
9 |
> >> C compiler test failed. |
10 |
> > |
11 |
> >Do you have enabled the "cpudetection" and/or "custom-cflags" use flags? |
12 |
> >Or do you use some crazy CFLAGS? |
13 |
> >ffmpeg 0.7.8 compiles just fine on my amd64 box. |
14 |
> |
15 |
> No nothing crazy: |
16 |
> CFLAGS="-Os -pipe -mtune=i686" |
17 |
|
18 |
i686? That's not amd64. You need something 64bit. Just use march=native |
19 |
instead of mtune=i686. |
20 |
|
21 |
|
22 |
> I'm not even sure if these flags are correct for my CPU: |
23 |
> AMD FX(tm)-8150 Eight-Core Processor |
24 |
|
25 |
:) They are not. |
26 |
|
27 |
> The flags suggestion I found on gentoo wiki are crazy: |
28 |
> http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#AMD_FX-8xxx.2F6xxx.2F4xxx_.28 |
29 |
> Bulldozer.29 |
30 |
> |
31 |
> CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 |
32 |
> -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx" |
33 |
> Whoever suggested these flags must have been on some drugs :-/ |
34 |
|
35 |
Could well be, that this is what march=native gives for bdver1. |
36 |
|
37 |
Best, |
38 |
Michael |