From owner-freebsd-questions@FreeBSD.ORG Wed Feb 29 13:55:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB31D106564A for ; Wed, 29 Feb 2012 13:55:54 +0000 (UTC) (envelope-from freebsd-questions@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 693A78FC13 for ; Wed, 29 Feb 2012 13:55:54 +0000 (UTC) Received: from mail.unitedinsong.com.au (bell.herveybayaustralia.com.au [192.168.0.40]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 1179B5C28 for ; Thu, 1 Mar 2012 00:09:21 +1000 (EST) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 4859E5C22 for ; Thu, 1 Mar 2012 00:09:21 +1000 (EST) Message-ID: <4F4E2D3D.3020905@herveybayaustralia.com.au> Date: Wed, 29 Feb 2012 23:50:53 +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-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Help compiling ffmpeg from source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 13:55:54 -0000 On 02/29/12 23:48, Andy Wodfer wrote: > I'm on FreeBSD 8.2 STABLE (AMD64). > > I need to install the latest ffmpeg 0.10, but it fails when compiling. I > must admit I very rarely do it this way. Normally all software is installed > from ports, but I couldn't find this version of ffmpeg there. > > Heres what I do: > > ./configure > gmake > > and the problem looks like this: > > [snip] > /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a > valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a > valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit > base/index expression > /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a > valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,2)' is not > a valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a > valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a > valid 64 bit base/index expression > /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit > base/index expression > /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a > valid 64 bit base/index expression > gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. HTH