multimedia/ffmpeg build error with clang
Baptiste Daroussin
bapt at FreeBSD.org
Sun Sep 29 10:07:03 UTC 2013
On Sun, Sep 29, 2013 at 12:58:26PM +0300, Arto Pekkanen wrote:
> FreeBSD 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC
> 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>
> cat /etc/make.conf:
> WITH_PKGNG=yes
> CPUTYPE=native
> CC=clang
> CXX=clang++
> CPP=clang-cpp
> CFLAGS= -O3 -pipe
>
> clang --version:
> FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
> Target: i386-unknown-freebsd9.0
> Thread model: posix
>
> portmaster -D multimedia/ffmpeg:
> ....
> 2 warnings generated.
> CC libavcodec/h264_cabac.o
> In file included from libavcodec/h264_cabac.c:40:
> libavcodec/x86/h264_i386.h:51:9: error: ran out of registers during register
> allocation
> "movl %a11(%6), %5 \n\t"
> ^
> libavcodec/x86/h264_i386.h:51:9: error: ran out of registers during register
> allocation
> libavcodec/x86/h264_i386.h:113:9: error: ran out of registers during register
> allocation
> "movl %a12(%7), %5 \n\t"
> ^
> In file included from libavcodec/h264_cabac.c:33:
> In file included from libavcodec/h264.h:33:
> In file included from libavcodec/cabac.h:60:
> libavcodec/x86/cabac.h:94:9: error: ran out of registers during register allocation
> "movl %a6(%5), %2 \n\t"
> ^
> libavcodec/x86/cabac.h:94:9: error: ran out of registers during register allocation
> libavcodec/x86/cabac.h:94:9: error: ran out of registers during register allocation
> 6 errors generated.
>
> Also tried to build with CPUTYPE commented out in make.conf, but same results.
> Is this fixable?
Clang 3.1 is really not a good idea to deal with ports, if you really want to
use clang anyway I do highly recommand to use clang33 from ports.
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130929/6adea7bd/attachment.sig>
More information about the freebsd-ports
mailing list