multimedia/ffmpeg build error with clang

Arto Pekkanen isoa at kapsi.fi
Sun Sep 29 09:58:30 UTC 2013


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?

-- 
Arto Pekkanen, säätäjä
ksym at IRCnet


More information about the freebsd-ports mailing list