Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2013 12:06:55 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Arto Pekkanen <isoa@kapsi.fi>
Cc:        ports@FreeBSD.org
Subject:   Re: multimedia/ffmpeg build error with clang
Message-ID:  <20130929100655.GI13577@ithaqua.etoilebsd.net>
In-Reply-To: <5247F9C2.7090802@kapsi.fi>
References:  <5247F9C2.7090802@kapsi.fi>

next in thread | previous in thread | raw e-mail | index | archive | help

--7IgncvKP0CVPV/ZZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>=20
> cat /etc/make.conf:
> WITH_PKGNG=3Dyes
> CPUTYPE=3Dnative
> CC=3Dclang
> CXX=3Dclang++
> CPP=3Dclang-cpp
> CFLAGS=3D -O3 -pipe
>=20
> clang --version:
> FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
> Target: i386-unknown-freebsd9.0
> Thread model: posix
>=20
> 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 regis=
ter
> allocation
>         "movl %a11(%6), %5                      \n\t"
>         ^
> libavcodec/x86/h264_i386.h:51:9: error: ran out of registers during regis=
ter
> allocation
> libavcodec/x86/h264_i386.h:113:9: error: ran out of registers during regi=
ster
> 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.
>=20
> Also tried to build with CPUTYPE commented out in make.conf, but same res=
ults.
> 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

--7IgncvKP0CVPV/ZZ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlJH+78ACgkQ8kTtMUmk6EzjlgCgiuGlPt7nXBqdw5tSAlCcwHoW
6dgAn3GM5MBZzWnMB3DX9QkelwXSkoQe
=o5AN
-----END PGP SIGNATURE-----

--7IgncvKP0CVPV/ZZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130929100655.GI13577>