[MacPorts] #20808: mplayer-devel fails to build on 10.6

MacPorts noreply at macports.org
Fri Oct 23 14:33:52 PDT 2009


#20808: mplayer-devel fails to build on 10.6
-----------------------------+----------------------------------------------
 Reporter:  andrea@…         |       Owner:  acho@…           
     Type:  defect           |      Status:  assigned         
 Priority:  Normal           |   Milestone:                   
Component:  ports            |     Version:  1.8.99           
 Keywords:  snowleopard      |        Port:  mplayer-devel    
-----------------------------+----------------------------------------------

Comment(by mroman@…):

 Replying to [comment:21 ecronin@…]:
 > Replying to [comment:20 mroman@…]:
 > -O2 is needed to compile or needed because you want -O2 optimizations?
 [[BR]]
 Without -O2 I get errors with function fft_asmb_3dnow:

 {{{
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o liba52/bit_allocate.o
 liba52/bit_allocate.c
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o liba52/bitstream.o
 liba52/bitstream.c
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o liba52/downmix.o
 liba52/downmix.c
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o liba52/imdct.o liba52/imdct.c
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o liba52/parse.o liba52/parse.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'
 liba52/imdct_3dnow.h:257: error: 'asm' operand has impossible constraints
 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -fomit-frame-pointer -fomit-
 frame-pointer -march=prescott -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 -fomit-
 frame-pointer  -I/usr/X11/include   -c -o av_opts.o av_opts.c
 make: *** [liba52/imdct.o] Error 1
 make: *** Waiting for unfinished jobs....
 In file included from ./libavutil/avutil.h:61,
                  from libavcodec/avcodec.h:30,
                  from libavcodec/opt.h:31,
                  from av_opts.c:24:
 ./libavutil/pixfmt.h:129:5: warning: "HAVE_BIGENDIAN" is not defined
 av_opts.c: In function 'parse_avopts':
 av_opts.c:39: warning: 'av_set_string' is deprecated (declared at
 libavcodec/opt.h:107)


 }}}
 google (not exactly with the same file)::
 [[BR]]
 http://lists.mplayerhq.hu/pipermail/mplayer-users/2004-April/044133.html
 [[BR]]
 http://lists.mplayerhq.hu/pipermail/mplayer-users/2004-April/044134.html
 [[BR]]
 The following error emerges without using the omit frame pointer flag (and
 again google says to use it):
 {{{
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o 4xm.o 4xm.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o fraps.o fraps.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o huffman.o huffman.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o gifdec.o gifdec.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o lzw.o lzw.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o gif.o gif.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o h261dec.o h261dec.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o h261.o h261.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o h261enc.o h261enc.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o h263_parser.o h263_parser.c
 /usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-
 optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
 -O2 -O2 -march=prescott -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  -O2
 -I/usr/X11/include   -c -o h264.o h264.c
 h264.c: In function 'pred_direct_motion':
 h264.c:1048: warning: assignment from incompatible pointer type
 h264.c:1049: warning: assignment from incompatible pointer type
 h264.c: In function 'filter_mb_dir':
 h264.c:6351: warning: initialization from incompatible pointer type
 h264.c:6352: warning: initialization from incompatible pointer type
 cabac.h: In function 'get_cabac_noinline':
 cabac.h:527: error: can't find a register in class 'GENERAL_REGS' while
 reloading 'asm'
 cabac.h:527: error: 'asm' operand has impossible constraints
 make[1]: *** [h264.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make: *** [libavcodec/libavcodec.a] Error 2
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/20808#comment:23>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list