[MacPorts] #19835: x264 @20090408 build error
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: x264 | Port: x264 -----------------------------+---------------------------------------------- x264 fails to build using Xcode 3.1.2. This seems similar to the problems experienced with Xcode 3.0 (Ticket #18470), where the solution was to upgrade to Xcode 3.1 {{{ ---> Building x264 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_x264/work/x264-snapshot-20090408-2245" && make default " returned error 2 Command output: encoder/analyse.c:1000: warning: 'i_nnz[1]' may be used uninitialized in this function /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/me.o encoder/me.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/ratecontrol.o encoder/ratecontrol.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/set.o encoder/set.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/macroblock.o encoder/macroblock.c encoder/macroblock.c: In function 'x264_macroblock_probe_skip': encoder/macroblock.c:804: warning: 'mvp[0]' may be used uninitialized in this function encoder/macroblock.c:804: warning: 'mvp[1]' may be used uninitialized in this function /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/cabac.o encoder/cabac.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/cavlc.o encoder/cavlc.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/encoder.o encoder/encoder.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o common/x86/mc-c.o common/x86/mc-c.c /usr/bin/gcc-4.0 -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -Wall -I. -falign-loops=16 -DHAVE_MMX -DARCH_X86 -DSYS_MACOSX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o common/x86/predict-c.o common/x86/predict-c.c yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/cabac-a.o common/x86/cabac-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/dct-a.o common/x86/dct-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/deblock-a.o common/x86/deblock-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/mc-a.o common/x86/mc-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/mc-a2.o common/x86/mc-a2.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/pixel-a.o common/x86/pixel-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/predict-a.o common/x86/predict-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/quant-a.o common/x86/quant-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/sad-a.o common/x86/sad-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/cpu-a.o common/x86/cpu-a.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/dct-32.o common/x86/dct-32.asm yasm -O2 -f macho -DPREFIX -DPIC -Icommon/x86/ -o common/x86/pixel-32.o common/x86/pixel-32.asm /usr/bin/gcc-4.0 -shared -o libx264.67.dylib common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/mdate.o common/set.o common/quant.o common/vlc.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o common/x86/mc-c.o common/x86/predict-c.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/sad-a.o common/x86/cpu-a.o common/x86/dct-32.o common/x86/pixel-32.o -dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -install_name /opt/local/lib/libx264.67.dylib -L/opt/local/lib -lm -lmx -lpthread -s ld64: warning: option -s is obsolete and being ignored ld: absolute addressing (perhaps -mdynamic-no-pic) used in _x264_cabac_encode_decision_asm from common/x86/cabac-a.o not allowed in slidable image collect2: ld returned 1 exit status make: *** [libx264.67.dylib] Error 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/19835> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: x264 | Port: x264 -----------------------------+---------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => devans@… -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: x264 | Port: x264 -----------------------------+---------------------------------------------- Comment(by devans@…): Indeed, please specify complete details of your platform and build environment (os, hardware, xcode). Are you building 64 bit? -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: x264 | Port: x264 -----------------------------+---------------------------------------------- Comment(by wtw20@…): osx 10.5.7 Macbook pro, intel core duo xcode 3.1.2 32 bit (I believe. I haven't taken steps to force it to 64 bit, but couldn't work out how to verify this.) -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: x264 -----------------------------+---------------------------------------------- Changes (by devans@…): * keywords: x264 => * status: new => assigned Comment: Please do the following {{{ sudo port clean x264 sudo port -d build x264 }}} and attach a full copy of the debug log generated so we can see if anything unusual happened during configure and what led up to the error. I mentioned 64 bit because it is ld64 that is issuing the error message. In addition, try building with the +noasm variant. This should probably work (but without assembler optimizations). -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build error -----------------------------+---------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: x264 -----------------------------+---------------------------------------------- Comment(by wtw20@…): Building with the +noasm variant worked. -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build fails when building with asm optimizations enabled ------------------------------+--------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: asm optimizations Port: x264 | ------------------------------+--------------------------------------------- Changes (by devans@…): * keywords: => asm optimizations * status: assigned => closed * resolution: => fixed Comment: Based on this result I have committed changes in r52746 to disable the asm optimizations by default. They can be re-enabled using the +asm variant. This addresses the immediate breakage but I would still appreciate it if you could attach a copy of the debug output requested above when building with asm optimizations enabled to help understand what the root cause of the problem is. -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19835: x264 @20090408 build fails when building with asm optimizations enabled ------------------------------+--------------------------------------------- Reporter: wtw20@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: asm optimizations Port: x264 | ------------------------------+--------------------------------------------- Comment(by devans@…): Oops, I see you did. Thanks. -- Ticket URL: <http://trac.macports.org/ticket/19835#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts