Multilib problem with arm-elf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I'm trying to use gcc with newlib for arm926ej-s development, but I'm facing
problems with multilib.
I'd like to force gcc to compile with -msoft-float but, newlib and libgcc
are still built with VFP instructions. I'm getting these errors from linker

$ arm-unknown-elf-gcc -mthumb-interwork -mlittle-endian -mfloat-abi=soft
-mtune=arm926ej-s -march=armv5te  test.c -o test.o

e:/_dev/gcc/install/bin/../lib/gcc/arm-unknown-elf/4.5.2/../../../../arm-unknown-elf/bin/ld.exe:
error: C:\DOCUME~1\POHANK~1.JAB\LOCALS~1\Temp\ccsKkuU3.o uses VFP
instructions, whereas test.o does not
e:/_dev/gcc/install/bin/../lib/gcc/arm-unknown-elf/4.5.2/../../../../arm-unknown-elf/bin/ld.exe:
failed to merge target specific data of file
C:\DOCUME~1\POHANK~1.JAB\LOCALS~1\Temp\ccsKkuU3.o
collect2: ld returned 1 exit status

arm-unknown-elf-gcc -print-multi-lib returns
.;@msoft-float@mfloat-abi=soft
thumb;@mthumb@msoft-float@mfloat-abi=soft
interwork;@mthumb-interwork@msoft-float@mfloat-abi=soft
thumb/interwork;@mthumb@mthumb-interwork@msoft-float@mfloat-abi=soft

Build settings
$ arm-unknown-elf-gcc -v
Using built-in specs.
COLLECT_GCC=e:\_dev\gcc\install\bin\arm-unknown-elf-gcc.exe
COLLECT_LTO_WRAPPER=e:/_dev/gcc/install/bin/../libexec/gcc/arm-unknown-elf/4.5.2/lto-wrapper.exe
Target: arm-unknown-elf
Configured with: ../gcc-4.5.2/configure --target arm-unknown-elf
--prefix=/e/_dev/gcc/gcc-build-4.5.2/../install --enable-interwork
--enable-multilib --with-float=soft --with-newlib --with-gnu-as
--with-gnu-ld --enable-languages=c++,c --with-system-zlib
--disable-libmudflap --disable-libgomp --disable-hardfload
Thread model: single
gcc version 4.5.2 (GCC)

Could please someone give me an advise how to correctly build gcc and
newlib? I build them in combined directory with configuration described
above. I also tried to alter t-arm-elf file, but unfortunately I'm not very
wise from the description in Target Makefile Fragments. I know I should use
arm-eabi instead of arm-elf, but I have to stay with arm-elf due to
compatibility demands.

best regards
Jan
-- 
View this message in context: http://old.nabble.com/Multilib-problem-with-arm-elf-tp31096676p31096676.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux