Lion compile failure

Craig Treleaven ctreleaven at
Thu Jun 14 13:14:39 PDT 2012


The port I've been working on (endlessly, it seems) compiles fine on 
10.6 but fails on 10.7.  After a few runs trying both clang and llvm, 
I thought I'd be able to get around the problem by installing port 
apple-gcc42 and using that to build my project:

sudo port -dn install configure.compiler=apple-gcc-4.2 
>gcc -c -pipe -I/opt/local/include -D_ISOC99_SOURCE 
>-pipe -O2 -arch x86_64 -std=c99 -fomit-frame-pointer -fPIC -g -Wall 
>-Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith 
>-Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings 
>-Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-tree-vectorize 
>-w -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -DMMX 
>-I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I/usr/include 
>-I/opt/local -I/opt/local/include/libxml2 -Ireplex 
>-I../../../external/FFmpeg -I../../../libs/libmythbase -o ts.o ts.c
>{standard input}:465:can't encode register '%ah' in an instruction 
>requiring REX prefix.
>make[2]: *** [ts.o] Error 1
>make[2]: Leaving directory 
>make[1]: *** [sub-mythtranscode-replex-make_default] Error 2
>make[1]: *** Waiting for unfinished jobs....

I've compared a working build on 10.6 with the failed build on 10.7 
and the ONLY difference in the arguments is 
"-mmacosx-version-min=10.7" on Lion.

I also don't understand why the error message says "{standard 
input}:465:" rather than referencing the souce file "ts.c"?

Any clues or thoughts?


More information about the macports-dev mailing list