Building gcc 4.2.0 cross-compiler (host=i386-apple-darwin8.10.1, target=powerpc-apple-darwin7)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have successfully build a native compiler on an intel mac pro, 
using the following configure parameters:

--with-sysroot=/Developer/SDKs/MacOS10.4u.sdk --enable-languages=c,c++,objc,obj-c++ --enable-__cxa_atexit

(I suspect the --with-sysroot is irrelevant in this case).

I am now trying to build the equivalent compiler targetting 
powerpc macs, with the target given in the subject line of this 
post:

--with-sysroot=/Developer/SDKs/MacOS10.3.9.sdk --enable-languages=c,c++,objc,obj-c++ --enable-__cxa_atexit --target=powerpc-apple-darwin7

The configure step appears to work OK, and the build commences 
and churns away for a while ..... but then:

...
erpc-10.3/powerpc-apple-darwin7/sys-include' \
mkinstalldirs='/bin/sh ../../gcc-4.2.0/gcc/../mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh ../../gcc-4.2.0/gcc/mkconfig.sh tconfig.h
/Volumes/Scratch/williamg/Builds/gcc-build-powerpc-10.3/./gcc/xgcc -B/Volumes/Scratch/williamg/Builds/gcc-build-powerpc-10.3/./gcc/ -B/Users/williamg/Tools/gcc-4.2.0-powerpc-10.3/powerpc-apple-darwin7/bin/ -B/Users/williamg/Tools/gcc-4.2.0-powerpc-10.3/powerpc-apple-darwin7/lib/ -isystem /Users/williamg/Tools/gcc-4.2.0-powerpc-10.3/powerpc-apple-darwin7/include -isystem /Users/williamg/Tools/gcc-4.2.0-powerpc-10.3/powerpc-apple-darwin7/sys-include -O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.2.0/gcc -I../../gcc-4.2.0/gcc/. -I../../gcc-4.2.0/gcc/../include -I./../intl -I../../gcc-4.2.0/gcc/../libcpp/include  -I../../gcc-4.2.0/gcc/../libdecnumber -I../libdecnumber  
\
  -c ../../gcc-4.2.0/gcc/config/darwin-crt2.c -o crt2.o
/Volumes/Scratch/williamg/Builds/gcc-build-powerpc-10.3/./gcc/as: 
line 2: exec: ppc: not found
make[2]: *** [crt2.o] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

I'll post more output from further up if necessary.

Can anyone tell me what I am doing wrong here?

Thanks,

-- 
Bill Gallafent.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux