public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Multilib problem with arm-elf
@ 2011-03-08 12:39 Honza
  2011-03-09 14:22 ` Thomas Martitz
  0 siblings, 1 reply; 2+ messages in thread
From: Honza @ 2011-03-08 12:39 UTC (permalink / raw)
  To: gcc-help


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multilib problem with arm-elf
  2011-03-08 12:39 Multilib problem with arm-elf Honza
@ 2011-03-09 14:22 ` Thomas Martitz
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Martitz @ 2011-03-09 14:22 UTC (permalink / raw)
  To: gcc-help

On 08.03.2011 13:39, Honza wrote:
> 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.

Unfortunately, IIRC, arm-elf is not maintained anymore. It's mostly 
inferior anyway.
So either you overcome the compatibility demands or go with an old 
compiler (early 4.x versions should work, but I don't know about newlib).

Best regards.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-09 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08 12:39 Multilib problem with arm-elf Honza
2011-03-09 14:22 ` Thomas Martitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).