This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cross-compile for rs6000 on powerpc problems
- To: gcc-help at gcc dot gnu dot org
- Subject: cross-compile for rs6000 on powerpc problems
- From: "greghb Last Name" <greghb at my-deja dot com>
- Date: Mon, 26 Feb 2001 12:33:57 -0800
I am trying to cross-compile gcc (c and c++) on an ibm powerpc box for a ibm rs6000 box. Both are running AIX 4.3.3.
I am able to bootstrap gcc for host machine powerpc-ibm-aix4.3.3.0 using vac and not gnu-as or gnu-ld. I then copy the header files and libs from the target rs6000 machine to the host machine.
After configuring to use gcc, I then issue: make cross
Problems occur during the testing of libgcc1, see below. Any ideas on how to resolve the symbols.
-Greg
(I have shortened some of the paths for clarity)
gcc/xgcc -Bfoo/gcc/ -B/usr/local/rs6000-ibm-aix4.3.3.0/bin/ -I/usr/local/rs6000-ibm-aix4.3.3.0/include -DCROSS_COMPILE -DIN_GCC -DHAIFA -O -I./include -c ../../gcc-2.95.2/gcc/libgcc1-test.c
../../gcc-2.95.2/gcc/libgcc1-test.c:101: warning: conflicting types for built-in function `memcpy'
Testing libgcc1. Ignore linker warning messages.
gcc/xgcc -Bfoo/ -B/usr/local/rs6000-ibm-aix4.3.3.0/bin/ -I/usr/local/rs6000-ibm-aix4.3.3.0/include -DCROSS_COMPILE -DIN_GCC -DHAIFA -O -I./include libgcc1-test.o -o libgcc1-test \
-nostartfiles -nostdlib `gcc/xgcc -Bfoo/ -B/usr/local/rs6000-ibm-aix4.3.3.0/bin/ -I/usr/local/rs6000-ibm-aix4.3.3.0/include --print-libgcc-file-name`
ld: 0711-317 ERROR: Undefined symbol: ._savef27
ld: 0711-317 ERROR: Undefined symbol: __quoss
ld: 0711-317 ERROR: Undefined symbol: __divss
ld: 0711-317 ERROR: Undefined symbol: __quous
ld: 0711-317 ERROR: Undefined symbol: __divus
ld: 0711-317 ERROR: Undefined symbol: .__itrunc
ld: 0711-317 ERROR: Undefined symbol: ._restf27
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[1]: *** [libgcc1-test] Error 1
make[1]: Leaving directory gcc'
make: *** [cross] Error 2
------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/