Bill Cholewka
2009-Apr-30 19:39 UTC
[theora-dev] trouble building universal binaries on libtheora-1.1alpha1 without performance loss
Hi, I'm trying to build a universal binary from libtheora-1.1alpha1. My configure line is as follows: env CFLAGS="-g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" ./configure --disable-dependency-tracking But when I make, I get: /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/opt/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c -o mmxidct.lo `test -f 'dec/x86/mmxidct.c' || echo './'`dec/x86/mmxidct.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/opt/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c dec/x86/mmxidct.c -fno-common -DPIC -o .libs/mmxidct.o /var/tmp//ccuJ9bLo.s:64:Invalid mnemonic 'movq' /var/tmp//ccuJ9bLo.s:65:Invalid mnemonic 'movq' ... lipo: can't open input file: /var/tmp//cc8vS8iN.out (No such file or directory) make[2]: *** [mmxidct.lo] Error 1 If I add --disable-asm as a config option, it gets me past this problem, but presumably at the cost of lost performance. Is there a way to configure for universal binaries without using --disable-asm? Thanks for your help. Regards, Bill
Nils Pipenbrinck
2009-Apr-30 19:52 UTC
[theora-dev] trouble building universal binaries on libtheora-1.1alpha1 without performance loss
Bill Cholewka wrote:> > If I add --disable-asm as a config option, it gets me past this problem, but presumably at the cost of lost performance. > > Is there a way to configure for universal binaries without using --disable-asm? > > Thanks for your help. >True- There is afaik no asm or intrinsic code for ppc. You get the reference c-code, and this code is written for clarity, not performance (a very valid choice for a reference implementation). Kudos for getting the code to cross-compile at the first place. I had lots of problems to do this. Cheers, Nils