Gentoo Archives: gentoo-embedded

From: billium <billium@×××××××××××.uk>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] arm-unknown-elf
Date: Mon, 30 Mar 2009 08:05:22
Message-Id: 49D07D86.2040905@bucknall.me.uk
In Reply to: Re: [gentoo-embedded] arm-unknown-elf by Martin Gysel
1 Martin Gysel wrote:
2 > billium schrieb:
3 >
4 >> billium wrote:
5 >>
6 >>
7 >>> I am trying to build a toolchain for a STM32 board.
8 >>> I use: crossdev -s1 arm-unknown-elf-gnu
9 >>>
10 >>> but that fails in binutils, o/p of log:
11 >>> checking target system type... Invalid configuration
12 >>> `arm-unknown-elf-gnu': machine `arm-unknown-elf' not recognized
13 >>>
14 >>> yet crossdev -s1 arm-unknown-linux-gnu works
15 >>>
16 >>> Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5
17 >>> Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3,
18 >>> glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
19 >>>
20 >>> Any help please?
21 >>>
22 >>> Billy
23 >>>
24 >>>
25 >>>
26 >>>
27 >> My mistake .. I should have used: crossdev -s1 --without-headers arm-elf
28 >>
29 >>
30 > afaik arm-softfloat-elf should also work and should be used as the STM32
31 > doesn't have a floating point unit... (I use it on a luminary board)
32 > what I'm still wondering, how do I enable the arm EABI? do I have to
33 > configure this at build time, can it be done through a compiler switch
34 > or at the end is this enabled anyway? afaik you need EABI if you want to
35 > link you code against libraries which were build with a different
36 > compiler, say IAR
37 >
38 > /martin
39 >
40 >
41 >
42 Hello Martin
43 Thanks for your answer. Did not look at it yesterday, as it was sunny
44 in the UK :). I also tried arm-softfloat-elf and got the same error. I
45 do not know about switching the EABI. Do you know how to include
46 newlib? Could you please post your linker script / makefile as I am
47 having linker problems ..not finding file.
48
49 Many thanks
50
51 Billy

Replies

Subject Author
Re: [gentoo-embedded] arm-unknown-elf Martin Gysel <m.gysel@×××.ch>