mplayer doesn't build for me under Leopard on MacBook Pro
I have recently upgraded to Leopard, XCode 3.0, and Darwin Ports 1.5.0 on my MacBook Pro. I am trying to install mplayer, but the build goes for a while and then finally fails with this error (some long lines manually broken in order to get this posted via Gmane): . Error: Target org.macports.build returned: shell command . "cd "/opt/local/var/macports/build/ . _opt_local_var_macports_sources_rsync.macports. . org_release_ports_multimedia_MPlayer/work/MPlayer-1.0rc1" && make all " . returned error 2 . Command output: make -C libavformat LIBPREF=lib LIBSUF=.a . make[1]: Nothing to be done for `all'. . make -C libavcodec LIBPREF=lib LIBSUF=.a . cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m . -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer . -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN . -shared-libgcc -arch i386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 . -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include -I. . -I./libavutil -I./libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 . -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil . -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m . -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer . -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN . -shared-libgcc -arch i386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 . -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include . -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c . i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2': . i386/dsputil_mmx.c:634: error: can't find a register in class . 'GENERAL_REGS' while reloading 'asm' . i386/dsputil_mmx.c:634: error: can't find a register in class . 'GENERAL_REGS' while reloading 'asm' . make[1]: *** [i386/dsputil_mmx.o] Error 1 . make: *** [libavcodec/libavcodec.a] Error 2 . . Error: Status 1 encountered during processing. Based on my googling and looking elsewhere, I think this is related to the choice of C compiler that is used. Here are the results of "cc --version": . i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) . Copyright (C) 2005 Free Software Foundation, Inc. . This is free software; see the source for copying conditions. There is NO . warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Does anyone have any ideas as to what I can do to get mplayer to build under my configuration? Thanks in advance. -- Lloyd Zusman hippoman@potamuses.net God bless you.
A bug has been filed for this: http://trac.macports.org/projects/macports/ticket/13021 I have added your email address to the Cc list so you'll be notified when changes are made to the bug. On Nov 3, 2007, at 19:35, Lloyd Zusman wrote:
I have recently upgraded to Leopard, XCode 3.0, and Darwin Ports 1.5.0 on my MacBook Pro.
I am trying to install mplayer, but the build goes for a while and then finally fails with this error (some long lines manually broken in order to get this posted via Gmane):
. Error: Target org.macports.build returned: shell command . "cd "/opt/local/var/macports/build/ . _opt_local_var_macports_sources_rsync.macports. . org_release_ports_multimedia_MPlayer/work/MPlayer-1.0rc1" && make all " . returned error 2 . Command output: make -C libavformat LIBPREF=lib LIBSUF=.a . make[1]: Nothing to be done for `all'. . make -C libavcodec LIBPREF=lib LIBSUF=.a . cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m . -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer . -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN . -shared-libgcc -arch i386 -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 . -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/ include -I. . -I./libavutil -I./libavcodec -DHAVE_AV_CONFIG_H - D_FILE_OFFSET_BITS=64 . -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil . -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m . -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer . -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN . -shared-libgcc -arch i386 -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 . -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include . -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c . i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2': . i386/dsputil_mmx.c:634: error: can't find a register in class . 'GENERAL_REGS' while reloading 'asm' . i386/dsputil_mmx.c:634: error: can't find a register in class . 'GENERAL_REGS' while reloading 'asm' . make[1]: *** [i386/dsputil_mmx.o] Error 1 . make: *** [libavcodec/libavcodec.a] Error 2 . . Error: Status 1 encountered during processing.
Based on my googling and looking elsewhere, I think this is related to the choice of C compiler that is used. Here are the results of "cc --version":
. i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) . Copyright (C) 2005 Free Software Foundation, Inc. . This is free software; see the source for copying conditions. There is NO . warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Does anyone have any ideas as to what I can do to get mplayer to build under my configuration?
Ryan Schmidt <ryandesign <at> macports.org> writes:
A bug has been filed for this:
http://trac.macports.org/projects/macports/ticket/13021
I have added your email address to the Cc list so you'll be notified when changes are made to the bug.
On Nov 3, 2007, at 19:35, Lloyd Zusman wrote:
[ ... ]
I am trying to install mplayer, but the build goes for a while and then finally fails with this error [ ... ]
Thank you very much! I'm new to macports and I didn't know about this tracker. Next time, I'll check there first. -- Lloyd Zusman hippoman@potamuses.net God bless you.
Ryan Schmidt <ryandesign <at> macports.org> writes:
A bug has been filed for this:
Based on one of the comments in this bug report, I did the following and got a workable mplayer: % sudo -s # port install mplayer After the build fails, do this ... # cd /opt/local/var/macports/sources/rsync.macports.org # cd release/ports/multimedia/mplayer (I broke this into two 'cd' commands here because the single line is too long for the Gmane software that I'm using to post this message) # vi Portfile At the end of the "configure.args-append" attribute, add these options, and then save the file and exit 'vi'. --disable-mmx --disable-sse --disable-xinerama (if you put these on a new line, make sure that the previous line ends with a space followed by a backslash) Then, just do this again: # port install mplayer # exit (make sure you do this 'exit' ... it gets you out of the root shell that 'sudo -s' put you in, above) According to the bug report comments, this produces a version that doesn't use make use of assembler source code and which therefore isn't as fast as it could be. The package maintainer said that he'd get back and fix this properly some time after Dec. 7, but at least this build will provide something usable until then. -- Lloyd Zusman hippoman@potamuses.net God bless you.
participants (2)
-
Lloyd Zusman
-
Ryan Schmidt