Opened 15 years ago
Closed 15 years ago
#20921 closed defect (duplicate)
build mplayer-devel fails
Reported by: | macports.users@… | Owned by: | acho@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.99 |
Keywords: | Cc: | bgrupe27 | |
Port: | mplayer-devel |
Description (last modified by jmroot (Joshua Root))
bash-4.0# port install mplayer-devel +noappleremote ---> Computing dependencies for mplayer-devel ---> Building mplayer-devel 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-devel/work/trunk" && /usr/bin/make -j2 all " returned error 2 Command output: /usr/bin/gcc-4.0 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch i386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include -c -o liba52/imdct.o liba52/imdct.c /usr/bin/gcc-4.0 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch i386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include -c -o av_opts.o av_opts.c av_opts.c: In function 'parse_avopts': av_opts.c:39: warning: 'av_set_string' is deprecated (declared at libavcodec/opt.h:107) /usr/bin/gcc-4.0 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch i386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include -I/usr/X11/include -c -o libaf/af_lavcresample.o libaf/af_lavcresample.c In file included from liba52/imdct.c:725: liba52/imdct_3dnow.h: In function 'fft_asmb_3dnow': liba52/imdct_3dnow.h:257: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make: *** [liba52/imdct.o] Error 1 make: *** Waiting for unfinished jobs.... Error: Status 1 encountered during processing.
Change History (9)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ecronin@… |
Port: | mplayer added |
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Port: | mplayer-devel added; mplayer removed |
---|---|
Summary: | build mplayer fails → build mplayer-devel fails |
comment:3 Changed 15 years ago by dbevans (David B. Evans)
Owner: | changed from ecronin@… to acho@… |
---|
Maintainer is acho
comment:4 Changed 15 years ago by beau.e.cox@…
It seems that this build problem was hatched by a mplayer change to the configure script, not by anything macports did (including the update to 1.8).
I refer interested parties to: http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2009-April/061356.html
I changed the following line in the mplayer-devel Portfile:
--extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" \
to:
--extra-cflags="-O4 -fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include" \
and the build worked. I am running 10.5.8 on a Core 2 Quad Intel. I have tested mplayer/mencoder and find no problems. I know this is sort of mickey-mouse, but hopefully the mplayer guys will fix their configuration script soon and we will all be running happily again.
Aloha => Beau;
Sorry to all for the lack of formatting and no diff, but I was so happy I got mplayer back I just had to share!!!
comment:7 Changed 15 years ago by acho@…
I know mplayer's build process does not like the -arch flag. Can you try to build on 10.5 with the following change to the portfile?
After configure.ldflags {} add the following two lines. configure.cc_archflags {} configure.cxx_archflags {}
comment:8 Changed 15 years ago by lists@…
I was having the same problem as the OP. I tried acho's suggested changes to the Portfile and the build succeeded. Thanks!
comment:9 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Please read the ticket guidelines that are linked to in large red text when you create a ticket.