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 <gentoo-user+bounces-132385-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RaCUA-0003Ue-Li
	for garchives@archives.gentoo.org; Mon, 12 Dec 2011 20:28:32 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A5FAE21C205;
	Mon, 12 Dec 2011 20:28:09 +0000 (UTC)
Received: from mail.shawcable.com (shawmail.shawcable.com [64.59.128.220])
	by pigeon.gentoo.org (Postfix) with ESMTP id 08B6C21C221
	for <gentoo-user@lists.gentoo.org>; Mon, 12 Dec 2011 20:26:42 +0000 (UTC)
Received: from bpd2mi3no-svcs.prod.shawcable.com ([10.0.184.122])
  by bpd2mo1no-ssvc.prod.shawcable.com with ESMTP; 12 Dec 2011 13:26:42 -0700
X-Cloudmark-SP-Filtered: true
X-Cloudmark-SP-Result: v=1.1 cv=v9IqiuXHtmwFiI2YJqo6dQmw2SJvdDx3gP8sCAnt4Ec= c=1 sm=1
 a=wom5GMh1gUkA:10 a=Ay1xilEVJtAA:10 a=nDghuxUhq_wA:10 a=BLceEmwcHowA:10
 a=8nJEP1OIZ-IA:10 a=dgx804EzjhD8CRYpIFkhZA==:17 a=c19Cxo7CAAAA:8
 a=XlOoPYbWdoR5zuWrZ78A:9 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
X-IronPort-AV: E=Sophos;i="4.71,340,1320649200"; 
   d="scan'208";a="481806914"
Received: from unknown (HELO bpd2mi3no-cmts.prod.shawcable.com) ([192.168.183.122])
  by bpd2mi3no-cmts.prod.shawcable.com with ESMTP; 12 Dec 2011 13:26:42 -0700
X-reinject: true
Received: from unknown (HELO syscon4.localdomain) ([68.148.245.78])
  by bpd2mi3no-dmz.prod.shawcable.com with ESMTP; 12 Dec 2011 13:26:42 -0700
Received: by syscon4.localdomain (Postfix, from userid 1000)
	id 97BD21CD191; Mon, 12 Dec 2011 13:28:39 -0700 (MST)
Date: Mon, 12 Dec 2011 13:28:39 -0700
From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ffmpeg - fails to compile on amd64
Message-ID: <20111212202839.GV3810@syscon4.inet>
References: <20111212192815.GT3810@syscon4.inet>
 <4EE656DF.1060300@hadt.biz>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
In-Reply-To: <4EE656DF.1060300@hadt.biz>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Archives-Salt: ecbac40d-264e-4270-82d3-b802ad9c5f70
X-Archives-Hash: 7fda92b3ed1fc29c9a355680f0bf5131

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"

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

The flags suggestion I found on gentoo wiki are crazy:
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#AMD_FX-8xxx.2F6xxx.2F4xxx_.28Bulldozer.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 :-/

-- 
Joseph