FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

LinkBack Thread Tools
Old 12-12-2011, 08:15 PM
Michael Hampicke
Default ffmpeg - fails to compile on amd64

> # echo | gcc -dM -E - -march=native
> /usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/cc1 -E -quiet -v -
> -D_FORTIFY_SOURCE=2 -mtune=i686 -march=x86-64

Sorry, something went wrong while pasting this lines, here are the
correct ones:

# cc -mtune=i686 -E -v - </dev/null 2>&1 | grep cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/cc1 -E -quiet -v -
-D_FORTIFY_SOURCE=2 -mtune=i686 -march=x86-64
Old 12-12-2011, 11:28 PM
Default ffmpeg - fails to compile on amd64

On 12/12/11 21:52, Michael Schreckenbauer wrote:

Am Montag, 12. Dezember 2011, 13:28:39 schrieb Joseph:

On 12/12/11 20:32, Michael Hampicke wrote:
>> Configuring source in
>> /var/tmp/portage/media-video/ffmpeg-0.7.8/work/ffmpeg-0.7.8 ...
>> x86_64-pc-linux-gnu-gcc is unable to create an executable file.
>> If x86_64-pc-linux-gnu-gcc is a cross-compiler, use the
>> --enable-cross-compile option.
>> Only do this if you know what cross compiling means.
>> C compiler test failed.
>Do you have enabled the "cpudetection" and/or "custom-cflags" use flags?
>Or do you use some crazy CFLAGS?
>ffmpeg 0.7.8 compiles just fine on my amd64 box.

No nothing crazy:
CFLAGS="-Os -pipe -mtune=i686"

i686? That's not amd64. You need something 64bit. Just use march=native
instead of mtune=i686.

I'm not even sure if these flags are correct for my CPU:
AMD FX(tm)-8150 Eight-Core Processor

Thanks, you are correct.
The Cflags that were suggested by Gentoo wiki did not work at all so I wasn't sure what to enter and took them from Gen too Rescue CD that I bootstrap the

But after changing the flags to:
CFLAGS="-march=native -Os -pipe"

ffmpeg compiled just fine.


Thread Tools

All times are GMT. The time now is 11:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org