This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi all, I've seen this question being asked many times in other mailing lists, and possibly here. I cannot however find a resolution. I have recently build a PPC cross tool chain with: binutils 2.12 gcc 2.95.3 glibc 2.2.4 I got all the tools built using "powerpc-unknown-linux-gnu" as my target platform. I had to patch loop.c from the gcc distro to get it to compile, but other than that I had no problems. I built these tools using the following process: TARGET=powerpc-unknown-linux-gnu PREFIX=/opt/ppcgcc $ ../sources/binutils-2.12/configure --host=$HOST --target=$TARGET / --prefix=$PREFIX -v $ make all install ... $ ../../sources/gcc-2.95.3/configure --host=$HOST --target=$TARGET / --prefix=$PREFIX --without-headers --with-newlib -v $ make all-gcc install-gcc ... $ CC=powerpc-unknown-linux-gnu-gcc ../../sources/glibc-2.2.4/configure / --prefix=$PREFIX --target=$TARGET --host=$HOST --enable-add-ons / --with-headers=$PREFIX/$TARGET/include $ make all $ make install_root=$PREFIX/$TARGET prefix="" install ... $ ../../sources/gcc-2.95.3/configure --enable-languages=c --host=$HOST / --target=$TARGET --prefix=$PREFIX $ make all install Everything seemed to compile cleanly, however when I try to compile a simple "Hello, World!" program, I get the following error: bszmyd@dn-bszmyd:~/development$ powerpc-unknown-linux-gnu-gcc -o test test.c /lib/libc.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status It appears that ld is trying to link against my native libraries, but I stumped for a solution. Perhaps I configured one of the tools wrong above? Thanks in advance! ----------- brian szmyd advanced digital information corporation firmware engineer | 720.249.5827 | brian.szmyd@adic.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |