From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 7 22:32:09 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9061B106566B for ; Wed, 7 Dec 2011 22:32:09 +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 1A2E98FC14 for ; Wed, 7 Dec 2011 22:32:08 +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 49C855C24; Thu, 8 Dec 2011 08:44:30 +1000 (EST) Message-ID: <4EDFE8C6.7080206@herveybayaustralia.com.au> Date: Thu, 08 Dec 2011 08:29:26 +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: Garrett Cooper References: <4EDEB600.9000102@herveybayaustralia.com.au> <4EDF6FAC.8000002@FreeBSD.org> <16CC8DAA-66B0-47D8-9022-5DFFDA9A0198@gmail.com> In-Reply-To: <16CC8DAA-66B0-47D8-9022-5DFFDA9A0198@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tom Evans , "hackers@freebsd.org" , Dimitry Andric 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 22:32:09 -0000 On 12/08/11 00:45, Garrett Cooper wrote: > On Dec 7, 2011, at 6:22 AM, Tom Evans wrote: > >> On Wed, Dec 7, 2011 at 1:52 PM, Dimitry Andric wrote: >>> On 2011-12-07 01:40, 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? >>> >>> At first glance, I'd say you are compiling it with a 32-bit compiler or >>> assembler. >>> >>> In any case, I downloaded the latest version (0.8.7) from ffmpeg.org, >>> and it compiles just fine with base gcc. What are the exact commands >>> you are running? >> I imagine you are running CURRENT or 9.0, which has a newer binutils >> than 8-STABLE, which is what causes/exposes this issue. > The question is: what is the OP running? I don't think that's been identified yet.. > For reference 8.1 and 8.2. I'll post once I've had a chance to confirm the solution, but I'm pretty sure it will solve it based on the info I've been given. Cheers