From owner-svn-ports-all@FreeBSD.ORG Fri Nov 1 17:24:53 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EC7BF78A; Fri, 1 Nov 2013 17:24:52 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 721FC2BB8; Fri, 1 Nov 2013 17:24:52 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id n7so2640275qcx.13 for ; Fri, 01 Nov 2013 10:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=dnds7nemRa1GVrmyPCr/x+m3GAOzN/WN9DNh39zpOHU=; b=VfU4DAGHxBd2TB/8erQuABuTBCXlmN9QOiMMxHSITPjvdoyBldisKoltMQQcIMpDFF 7YypSmEcurq+kYYhFDovVG0sQCoR9H0ruL5NV6aTyadboCc171HWUPFlwibrQ8rUyG3U 19tiEaL8lGrZqESSAGxESbVQgVa/weT1IMfydOc7MP6EBFGRWfHLqo61v6FPEb2eA2pX 8etXAu8ipxzarZLoGy5hPnp2WeGzeoVqbWx34UQDsMyXseR037U8yL7gLbMfzP0HrYHy G5xdNmhIP9mKkTQVUNvX84U+Ou4G6U+gJyyzjDGfPU9OoZwddU9UWjXrzdl88x7RVdvK qDXg== X-Received: by 10.49.131.2 with SMTP id oi2mr5448761qeb.82.1383326691569; Fri, 01 Nov 2013 10:24:51 -0700 (PDT) Received: from mocha.verizon.net (c-71-61-40-68.hsd1.oh.comcast.net. [71.61.40.68]) by mx.google.com with ESMTPSA id r5sm19462654qeh.1.2013.11.01.10.24.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Nov 2013 10:24:50 -0700 (PDT) Sender: "Jason E. Hale" From: "Jason E. Hale" To: William Grzybowski Subject: Re: svn commit: r332103 - head/multimedia/ffmpeg Date: Fri, 01 Nov 2013 13:24:49 -0400 Message-ID: <1412906.ydtbp06j8k@mocha.verizon.net> User-Agent: KMail/4.10.5 (FreeBSD/9.2-RC4; KDE/4.10.5; i386; ; ) In-Reply-To: References: <201310301257.r9UCvLHO073107@svn.freebsd.org> <20131031100554.Horde.fMH4EsCHDLmIr67m_uCvFA7@ssl.eumx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart6017251.nZTfFz8b72" Content-Transfer-Encoding: 7Bit Cc: "svn-ports-head@freebsd.org" , "svn-ports-all@freebsd.org" , "Herbert J. Skuhra" , William Grzybowski , ports-committers X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 17:24:53 -0000 This is a multi-part message in MIME format. --nextPart6017251.nZTfFz8b72 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thursday, October 31, 2013 09:09:52 William Grzybowski wrote: > On Thu, Oct 31, 2013 at 8:05 AM, Herbert J. Skuhra wrote: > > on. 30. okt. 2013 kl. 13.57 +0100 skrev William Grzybowski: > >> Author: wg > >> Date: Wed Oct 30 12:57:20 2013 > >> New Revision: 332103 > >> URL: http://svnweb.freebsd.org/changeset/ports/332103 > >> > >> Log: > >> multimedia/ffmpeg: update to 2.1 > > > > Does not build on my machine (FreeBSD 10.0-BETA2 i386 - r257208): > > > > CC libavcodec/hevc_cabac.o > > In file included from libavcodec/hevc_cabac.c:27: > > In file included from libavcodec/cabac_functions.h:36: > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > > > BRANCHLESS_GET_CABAC("%0", "%q0", "(%4)", "%1", "%w1", > > ^ > > > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > libavcodec/x86/cabac.h:175:9: error: ran out of registers during register > > allocation > > libavcodec/x86/cabac.h:128:9: note: expanded from macro > > 'BRANCHLESS_GET_CABAC' > > > > "movzbl "statep" , "ret" > > > > \n\t"\ > > > > ^ > > > > 7 errors generated. > > gmake[2]: *** [libavcodec/hevc_cabac.o] Error 1 > > gmake[2]: Leaving directory `/usr/ports/multimedia/ffmpeg/work/ffmpeg-2.1' > > ===> Compilation failed unexpectedly. > > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure > > to > > the maintainer. > > *** Error code 1 > > > > Stop. > > make[1]: stopped in /usr/ports/multimedia/ffmpeg > > *** Error code 1 > > Anyone know how to fix this compiler error? It built fine in 6 > backends in redports. I've attached a patch that fixes the build for me on 9.2-i386 with clang as the compiler. I successfully built it with base gcc too. -- Jason E. Hale - jhale@ FreeBSD Ports Committer KDE/FreeBSD Team --nextPart6017251.nZTfFz8b72 Content-Disposition: attachment; filename="ffmpeg.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="ISO-8859-1"; name="ffmpeg.diff" Index: files/patch-libavutil-x86-asm.h =================================================================== --- files/patch-libavutil-x86-asm.h (revision 0) +++ files/patch-libavutil-x86-asm.h (working copy) @@ -0,0 +1,11 @@ +--- ./libavutil/x86/asm.h.orig 2013-11-01 13:02:26.000000000 -0400 ++++ ./libavutil/x86/asm.h 2013-11-01 13:03:00.000000000 -0400 +@@ -70,7 +70,7 @@ + typedef int x86_reg; + #endif + +-#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE)) ++#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE && !defined(__clang__))) + #define HAVE_6REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE || HAVE_EBP_AVAILABLE)) + + #if ARCH_X86_64 && defined(PIC) Property changes on: files/patch-libavutil-x86-asm.h ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property --nextPart6017251.nZTfFz8b72--