Same here. Always worked fine, noticed this problem about three pjsip releases ago. $ CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure $ make Produces many lines like this and exits with error. /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been seen! /usr/bin/../libexec/gcc/darwin/x86_64/as: Flag option -o has already been seen! gcc -c -Wall -DPJ_AUTOCONF=1 -arch i386 -arch x86_64 -I../include \ -ooutput/pjlib-i386-apple-darwin10.6.0/file_io_ansi.o \ ../src/pj/file_io_ansi.c /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been seen! /usr/bin/../libexec/gcc/darwin/x86_64/as: Flag option -o has already been seen! gcc -c -Wall -DPJ_AUTOCONF=1 -arch i386 -arch x86_64 -I../include \ -ooutput/pjlib-i386-apple-darwin10.6.0/os_core_unix.o \ ../src/pj/os_core_unix.c /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been seen! /usr/bin/../libexec/gcc/darwin/x86_64/as: Flag option -o has already been seen! gcc -c -Wall -DPJ_AUTOCONF=1 -arch i386 -arch x86_64 -I../include \ -ooutput/pjlib-i386-apple-darwin10.6.0/os_error_unix.o \ ../src/pj/os_error_unix.c /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been seen! /usr/bin/../libexec/gcc/darwin/x86_64/as: Flag option -o has already been seen! gcc -c -Wall -DPJ_AUTOCONF=1 -arch i386 -arch x86_64 -I../include \ -ooutput/pjlib-i386-apple-darwin10.6.0/os_time_unix.o \ ../src/pj/os_time_unix.c [...] make[2]: *** [../lib/libpj-i386-apple-darwin10.6.0.a] Error 1 make[1]: *** [pjlib] Error 2 make: *** [all] Error 1 Alexei On 15 Jan, 2011, at 18:18, Michael wrote: > Hi > > I use OS-X 10.6.6 and try to compile pjmedia/pjsip current trunk as Universal Binary. > > Step 1: > LD=gcc-4.0 \ > CC=gcc-4.0 \ > CFLAGS="-O2 -Wall -arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" \ > LDFLAGS="-arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" \ > ./configure > > Step 2: > make > It fails at gcc-4.0 -o ../bin/pjlib-test-i386-apple-darwin10.6.0 \ > > Any idea what I made wrong? > Thanks > Regards > Michael