target/5827: Building gcc-3.0.4 for arm-elf on hpux-10.20 fails
Jepsen Hans Peter
hans_peter_jepsen@Danfoss.com
Mon Mar 4 06:25:00 GMT 2002
I replaced the host gcc, which was 2.95.2, with gcc-3.0.4. This helped
me further.
However, now the build fails with this message:
../../gcc-3.0.4/gcc/libgcc1-test.c:119: warning: function declaration
isn't a prototype
Testing libgcc1. Ignore linker warning messages.
/home/hpj/work/build-gcc-3.0.4/gcc/xgcc
-B/home/hpj/work/build-gcc-3.0.4/gcc/
-B/opt/local/arm-elf-gcc3.0.4/arm-elf/bin/
-B/opt/local/arm-elf-gcc3.0.4/arm-elf/lib/ -isystem
/opt/local/arm-elf-gcc3.0.4/arm-elf/include -DCROSS_COMPILE -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-isystem ./include libgcc1-test.o -o libgcc1-test \
-nostartfiles -nostdlib `/home/hpj/work/build-gcc-3.0.4/gcc/xgcc
-B/home/hpj/work/build-gcc-3.0.4/gcc/
-B/opt/local/arm-elf-gcc3.0.4/arm-elf/bin/
-B/opt/local/arm-elf-gcc3.0.4/arm-elf/lib/ -isystem
/opt/local/arm-elf-gcc3.0.4/arm-elf/include --print-libgcc-file-name`
/opt/local/arm-elf-gcc3.0.4/arm-elf/bin/ld:built in linker script:57:
parse error
collect2: ld returned 1 exit status
gmake[1]: *** [libgcc1-test] Error 1
gmake[1]: Leaving directory `/home/hpj/work/build-gcc-3.0.4/gcc'
gmake: *** [all-gcc] Error 2
the linker is from a recent snapshot of binutils:
.. work/build-gcc-3.0.4> /opt/local/arm-elf-gcc3.0.4/arm-elf/bin/ld
--version
GNU ld version 020303 20020303
kind regards
Hans Peter
More information about the Gcc-bugs
mailing list