On Mon, Sep 3, 2012 at 3:42 PM, Frank Seltzer <fran...@bellsouth.net> wrote:
> I am experiencing similar problems with mplayer and vlc.
>
>
> On Mon, 3 Sep 2012, HU Dong wrote:
>
>> Hi!
>>    The latest multimedia/mplayer port seems to be broken on freebsd
>> 9.0 i386 release. It fails to compile with clang release_30 142614.
>> Hope someone could fix it.
>>
>> 1. ENV:
>> % uname -a
>> FreeBSD hostname 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3
>> 07:15:25 UTC 2012
>> r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>> % clang --version
>> FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
>> Target: i386-unknown-freebsd9.0
>> Thread model: posix
>
>
> Ace /home/frank_s % uname -a
> FreeBSD Ace.nina.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sun Sep  2
> 15:28:46 EDT 2012     r...@ace.nina.org:/usr/obj/usr/src/sys/GENERIC  i386
>
> Ace /home/frank_s % clang --version
> FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
>
> Target: i386-unknown-freebsd9.0
> Thread model: posix
>
> Mplayer's compile begins with:
>
> ===>  Configuring for mplayer-1.1.r20120721
> Unknown parameter: --win32codecsdir=/usr/local/lib/win32
> Unknown parameter: --x-libraries=/usr/local/lib
> Unknown parameter: --x-includes=/usr/local/include
> Unknown parameter: --build=i386-portbld-freebsd9.1
>
> and ends with:
>
>
> 2 errors generated.
> gmake: *** [mp3lib/decode_i586.o] Error 1
> gmake: *** Waiting for unfinished jobs....
> 3 warnings generated.
> *** [do-build] Error code 1
>
> Stop in /usr/ports/multimedia/mplayer.
> *** [build] Error code 1
>
> Stop in /usr/ports/multimedia/mplayer.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade20120903-14811-1ifs4ot env UPGRADE_TOOL=portupgrade
> UPGRADE_PORT=mplayer-1.0.r20120322_2 UPGRADE_PORT_VER=1.0.r20120322_2 make
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         ! multimedia/mplayer (mplayer-1.0.r20120322_2)  (new compiler error)
>
> with hundreds and hundreds of this type of error in between:
>
>
> mp3lib/decode_i586.c:65:23: error: unknown token in expression
> "        pushl %%eax\n\t"
>                       ^
> <inline asm>:22:18: note: instantiated into assembly here
>                 movl 4+(%esp),%edx
>                         ^
> mp3lib/decode_i586.c:68:23: error: unknown token in expression
> "        pushl %%eax\n\t"
>                       ^
> <inline asm>:25:18: note: instantiated into assembly here
>                 movl 8+(%esp),%eax
>
> Have I fat-fingered something?
>
> --
> Frank
>
>

Has the building of those ports worked before with clang(1)? There are
still quite a few ports that rely on gcc's pecularities that clang can
not yet do. Use exceptions in /etc/make.conf for ports that fail to
build with clang, for example this is what I have to use for
sysutils/lsof:


.if ${.CURDIR:M*/sysutils/lsof}
CC=gcc
CXX=g++
CPP=gcc -E
.endif
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to