From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 7 14:22:31 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 49B2C1065679 for ; Wed, 7 Dec 2011 14:22:31 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id E7E4E8FC18 for ; Wed, 7 Dec 2011 14:22:30 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so782414vbb.13 for ; Wed, 07 Dec 2011 06:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6tqkeNpxaSyiM1RnFh4CQFwah0Hj6xZ7ZEmZnndOv5A=; b=B0IOSii8uBGf+x35ElPFOVuQv3B/R8PUr368HmAp6J7Ch8OB7KD0y5nE8LSHdtyOrQ QGCi/JSN4FmUb2nfhd817C03LRKQk/GSTUn44EKjcCdHCkJ1Bp4HA+Fe9B7/2aNzU+zE /3pXmcxr3XNDgN7915mbJQ6poRRXZpo9IdQHE= MIME-Version: 1.0 Received: by 10.52.33.239 with SMTP id u15mr10797160vdi.49.1323267750085; Wed, 07 Dec 2011 06:22:30 -0800 (PST) Received: by 10.52.172.240 with HTTP; Wed, 7 Dec 2011 06:22:30 -0800 (PST) In-Reply-To: <4EDF6FAC.8000002@FreeBSD.org> References: <4EDEB600.9000102@herveybayaustralia.com.au> <4EDF6FAC.8000002@FreeBSD.org> Date: Wed, 7 Dec 2011 14:22:30 +0000 Message-ID: From: Tom Evans To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Da Rock , 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 14:22:31 -0000 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)' =C2=A0is 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=3Damd64/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. =C2=A0What are the exact command= s > 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. Cheers Tom