From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 7 13:52:43 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 C9DBB106566B for ; Wed, 7 Dec 2011 13:52:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB3A8FC18 for ; Wed, 7 Dec 2011 13:52:43 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:8945:f03a:980c:c72] (unknown [IPv6:2001:7b8:3a7:0:8945:f03a:980c:c72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 837325C37; Wed, 7 Dec 2011 14:52:42 +0100 (CET) Message-ID: <4EDF6FAC.8000002@FreeBSD.org> Date: Wed, 07 Dec 2011 14:52:44 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111130 Thunderbird/9.0 MIME-Version: 1.0 To: Da Rock References: <4EDEB600.9000102@herveybayaustralia.com.au> In-Reply-To: <4EDEB600.9000102@herveybayaustralia.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org 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 13:52:43 -0000 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?