#17310 - bogston - Sat Mar 06, 2004 3:52 am
I am attempting to build the ARM GCC Toolchain. I have found linux.gbadev.org. This site is very helpful. The following tarballs are used:
binutils-2.11.2.tar.gz
gcc-core-3.0.4.tar.gz
newlib-1.11.0.tar.gz
crtls.zip
test.tar.gz
All the versions are listed on linux.gbadev.org. Here's my problem:
I can assemble (the code is rainbow something) and execute using VisualGameBoy. Works fine.
I can not compile the test program listed on linux.gbadev.org. I get the error below. Looks like I have a floating point library problem. My guess is that I need to build gcc or newlib with -msoft-float, but this does not work. Specifically, I seem to need crtbegin.o and crtend.o compiled with -msoft-float, but I have no clue how to do this. Believe me, I have tried everything I can think of. Any suggestions? Thanks.
My compiler output from test.c:
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: __main.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/libgcc.a(__main.o)
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: unwind-dw2-fde.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/libgcc.a(unwind-dw2-fde.o)
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/crtend.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/crtend.o
collect2: ld returned 1 exit status
binutils-2.11.2.tar.gz
gcc-core-3.0.4.tar.gz
newlib-1.11.0.tar.gz
crtls.zip
test.tar.gz
All the versions are listed on linux.gbadev.org. Here's my problem:
I can assemble (the code is rainbow something) and execute using VisualGameBoy. Works fine.
I can not compile the test program listed on linux.gbadev.org. I get the error below. Looks like I have a floating point library problem. My guess is that I need to build gcc or newlib with -msoft-float, but this does not work. Specifically, I seem to need crtbegin.o and crtend.o compiled with -msoft-float, but I have no clue how to do this. Believe me, I have tried everything I can think of. Any suggestions? Thanks.
My compiler output from test.c:
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: __main.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/libgcc.a(__main.o)
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: unwind-dw2-fde.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/libgcc.a(unwind-dw2-fde.o)
/opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/../../../../arm-thumb-elf/bin/ld: Error: /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/crtend.o uses hard floating point, whereas test.elf uses soft floating point
File format not recognized: failed to merge target specific data of file /opt/arm/lib/gcc-lib/arm-thumb-elf/3.0.4/crtend.o
collect2: ld returned 1 exit status