From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 7 11:17:20 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1189106564A for ; Wed, 7 Dec 2011 11:17:20 +0000 (UTC) (envelope-from freebsd-hackers@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 92C878FC14 for ; Wed, 7 Dec 2011 11:17:20 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id C0F935C24 for ; Wed, 7 Dec 2011 21:14:18 +1000 (EST) Message-ID: <4EDF4703.1050705@herveybayaustralia.com.au> Date: Wed, 07 Dec 2011 20:59:15 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4EDEB600.9000102@herveybayaustralia.com.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 64bit build errors X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 11:17:21 -0000 On 12/07/11 20:36, Tom Evans wrote: > On Wed, Dec 7, 2011 at 12:40 AM, Da Rock > wrote: >> I'm trying to build some newer versions of ffserver. But I keep getting asm >> build errors when I get to libavcodec/vp*. >> >> Error: `(%esi,%eax)' is not a valid 64 bit base/index expression >> >> If I set it to build static it fails at h264. >> >> "Error: `-1(%edi)' is not a valid 64 bit base/index expression" >> >> Googling hasn't proved helpful in finding an answer. I've tried setting some >> configure options: arch=amd64/x86_64, disabling cmov/fast_cmov, ebx, etc. >> >> Any ideas how to fix this? >> >> Cheers > Yes, you need to use newer binutils from ports. It also helps with > ffmpeg/mplayer to use a newer gcc from ports as well (I use gcc46), > but the main thing is installing binutils and configuring with > --as=/usr/local/bin/as. > > Cool! Thanks for that. I got a manual to read by the looks of it anyway, but can anyone give me the inside gos on the why it does what it does? (Or something like that.. :) ) Cheers