From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RaCsk-0002NK-4j for garchives@archives.gentoo.org; Mon, 12 Dec 2011 20:53:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7C3F21C22F; Mon, 12 Dec 2011 20:53:40 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by pigeon.gentoo.org (Postfix) with SMTP id 7394B21C254 for ; Mon, 12 Dec 2011 20:52:12 +0000 (UTC) Received: (qmail invoked by alias); 12 Dec 2011 20:52:11 -0000 Received: from p5B081654.dip.t-dialin.net (EHLO pc.localnet) [91.8.22.84] by mail.gmx.net (mp055) with SMTP; 12 Dec 2011 21:52:11 +0100 X-Authenticated: #13997268 X-Provags-ID: V01U2FsdGVkX19yngZG1g9ypjVqiusLcd33w6UjXCuTOIGQ3EImWk j+la0YG34RkGRt From: Michael Schreckenbauer To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] ffmpeg - fails to compile on amd64 Date: Mon, 12 Dec 2011 21:52:04 +0100 Message-ID: <4926919.gxlYKMO5pC@pc> User-Agent: KMail/4.7.3 (Linux/2.6.38-gentoo; KDE/4.7.3; x86_64; ; ) In-Reply-To: <20111212202839.GV3810@syscon4.inet> References: <20111212192815.GT3810@syscon4.inet> <4EE656DF.1060300@hadt.biz> <20111212202839.GV3810@syscon4.inet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Y-GMX-Trusted: 0 X-Archives-Salt: 1fd7132d-2abe-4cc6-b15c-4c85ecb94bb8 X-Archives-Hash: 5551d3bc42a981faca1c96cb7112ff8f 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 :) They are not. > The flags suggestion I found on gentoo wiki are crazy: > http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#AMD_FX-8xxx.2F6xxx.2F4xxx_.28 > Bulldozer.29 > > CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 > -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx" > Whoever suggested these flags must have been on some drugs :-/ Could well be, that this is what march=native gives for bdver1. Best, Michael