Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18653 closed defect (fixed)

x264 fails to compile

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: compilation Cc: dbevans (David B. Evans)
Port: x264

Description

gcc -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -I/opt/local/include -L/opt/local/lib -Wall -I. -falign-loops=16 -DARCH_X86 -DSYS_MACOSX -DWORDS_BIGENDIAN -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o common/cpu.o common/cpu.c
common/cpu.c:58: error: 'X264_CPU_SSE42' undeclared here (not in a function)
common/cpu.c:61: error: 'X264_CPU_SSE_MISALIGN' undeclared here (not in a function)
common/cpu.c:62: error: 'X264_CPU_LZCNT' undeclared here (not in a function)
make: *** [common/cpu.o] Error 1
Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_x264/work/ppc && make default" returned error 2
Command output: gcc -O4 -ffast-math -O2 -fno-common -read_only_relocs suppress -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -I/opt/local/include -L/opt/local/lib -Wall -I. -falign-loops=16 -DARCH_X86 -DSYS_MACOSX -DWORDS_BIGENDIAN -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o common/cpu.o common/cpu.c
common/cpu.c:58: error: 'X264_CPU_SSE42' undeclared here (not in a function)
common/cpu.c:61: error: 'X264_CPU_SSE_MISALIGN' undeclared here (not in a function)
common/cpu.c:62: error: 'X264_CPU_LZCNT' undeclared here (not in a function)
make: *** [common/cpu.o] Error 1

Warning: the following items did not execute (for x264): org.macports.destroot org.macports.build
Error: Unable to upgrade port: 1

Change History (7)

comment:1 Changed 16 years ago by dbevans (David B. Evans)

Is this a universal build problem? I see -arch ppc but looks like it is trying to compile x86 optimizations.

comment:2 Changed 16 years ago by dbevans (David B. Evans)

Cc: devans@… added

Cc Me!

comment:3 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I have 20080724_1+universal currently installed.

So it looks like something between that ant the current version broke universal

Just a hunch, you may need to change CHOST in the configure step

comment:4 Changed 16 years ago by dbevans (David B. Evans)

Well, since you added the universal build stuff in r42793, maybe you would like to tackle this?

comment:5 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

because it was r46739 that actually broke it ;)

ok... I'll dive into it more...

comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r47357 built for me

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.