This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi there, I'm wondering if anyone can help me out with a problem I'm having building a powerpc-linux cross development environment on a Red Hat Linux i686-pc-linux-gnu system, using gcc-2.95, binutils-2.9.1.0.25 and newlib-1.8.1. Each was configured in their own objdir, as follows: ../../binutils-2.9.1.0.25/configure --target=powerpc-linux --prefix=/home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu ../../gcc-2.95/configure --target=powerpc-linux --prefix=/home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu --with-newlib --with-gnu-as --with-gnu-ld ../../newlib-1.8.1/configure --target=powerpc-linux --prefix=/home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu I then built and installed the compiler, binutils and newlib; but building my hello world executable fails as follows: bash$ powerpc-linux-gcc hello.c /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/powerpc-linux/bin/ld: unrecognised emulation mode: elf32ppclinux Supported emulations: elf32ppc This looks like a simple configuration problem, but can anyone suggest why gcc is asking for the wrong emulation from ld? (For the adventurous, the output of gcc with -v is included below) Thanks, Graham bash$ powerpc-linux-gcc -v hello.c Reading specs from /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/specs gcc version 2.95 19990728 (release) /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -Dlinux -Asystem(unix) -Asystem(posix) hello.c /tmp/ccICsY2q.i GNU CPP version 2.95 19990728 (release) (PowerPC GNU/Linux) #include "..." search starts here: #include <...> search starts here: /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/include /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/../../../../powerpc-linux/include End of search list. The following default directories have been omitted from the search path: /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/../../../../include/g++-3 /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/../../../../powerpc-linux/sys-include End of omitted list. /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/cc1 /tmp/ccICsY2q.i -quiet -dumpbase hello.c -version -o /tmp/ccmwN5dZ.s GNU C version 2.95 19990728 (release) (powerpc-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release). /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/powerpc-linux/bin/as -mppc -V -Qy -o /tmp/cccIYEbB.o /tmp/ccmwN5dZ.s GNU assembler version 2.9.1 (powerpc-linux), using BFD version 2.9.1.0.25 /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/collect2 -m elf32ppclinux -dynamic-linker /lib/ld.so.1 crt1.o crti.o /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/crtbegin.o -L/home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95 -L/home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/powerpc-linux/lib /tmp/cccIYEbB.o /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/libgcc.a -lc /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/libgcc.a /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/lib/gcc-lib/powerpc-linux/2.95/crtend.o crtn.o /home/server/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/powerpc-linux/bin/ld: unrecognised emulation mode: elf32ppclinux Supported emulations: elf32ppc collect2: ld returned 1 exit status _______________________________________________ New CrossGCC FAQ: http://www.objsw.com/CrossGCC _______________________________________________ To remove yourself from the crossgcc list, send mail to crossgcc-request@cygnus.com with the text 'unsubscribe' (without the quotes) in the body of the message.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |