View previous topic :: View next topic |
Author |
Message |
Spiros Apprentice
Joined: 11 Mar 2008 Posts: 189 Location: Zurich
|
Posted: Fri Jan 07, 2011 11:23 am Post subject: Building an arm toolchain fails |
|
|
I have a MyBookWorld, whose cpu is a ARM926EJ-S. I'm trying to setup a cross-compile environment on my amd64 laptop using crossdev as explained in the Gentoo Embedded Handbook. I'm unsure about the tuple I have to use. I tried with armv5tej, armv5tejl and armv5telj as arch. So I used combinations like:
- armv5tej-unknown-linux-gnu
- armv5tejl-softfloat-linux-gnu
- armv5telj-softfloat-linux-gnueabi
- ...
The compilation of gcc always failed because of:
Code: |
Unknown arch used in --with-arch=armv5tej
|
Every arch I try is apparently unknown. The version of gcc crossdev tries to compile is 4.5.2, but I also used different versions, like 4.3.* without any success.
Any suggestion?
P.S.: on the arm device:
Code: |
$ cat /proc/cpuinfo
Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 183.09
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 32768
I assoc : 4
I line length : 32
I sets : 256
D size : 32768
D assoc : 4
D line length : 32
D sets : 256
Hardware : Oxsemi NAS
Revision : 0000
Serial : 00000b6510b567c0
|
_________________ Spiros |
|
Back to top |
|
|
bscott n00b
Joined: 16 Dec 2010 Posts: 1
|
Posted: Sat Jan 08, 2011 8:16 am Post subject: |
|
|
I haven't used crossdev (I use CodeSoucery) but I think you should be using arm-unknown-linux-gnu or arm-unkown-linux-gnueabi. _________________ Bob Scott |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Sat Jan 08, 2011 10:22 pm Post subject: |
|
|
Moved from Other Things Gentoo to Gentoo on Alternative Architectures as it fits better here. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Sat Jan 08, 2011 10:53 pm Post subject: |
|
|
bscott wrote: | I haven't used crossdev (I use CodeSoucery) but I think you should be using arm-unknown-linux-gnu or arm-unkown-linux-gnueabi. |
I don't have this cpu but did some googling and it looks like it should be arm-unknown-linux-gnu for the tuple. I use crossdev for my sheevaplug (armv5tel-softfloat-linux-gnueabi) and it works fine. Sometimes you have to mix and match gcc, glibc, and binutils versions but I successfully have a distcc crossdev working on my amd64 main desktop. _________________ Increasingly becoming a 2 channel audio nut! |
|
Back to top |
|
|
Spiros Apprentice
Joined: 11 Mar 2008 Posts: 189 Location: Zurich
|
Posted: Sun Jan 09, 2011 12:23 am Post subject: |
|
|
Actually my first try was with such a tuple (I think exactly the same). And the compilation worked. But then I compiled with the new compiler a very small C++ program ("hello world" o something) and the resulting executable seemed not to work well on the arm device. Maybe I should retry.
In facts, I also seen this wiki page, where it says for an arm926ej-s proc (exactly my case) the tuple armv5telj-softfloat-linux-gnueabi is known to work. But it doesn't for me...
Ok, thanks for now. As soon as I have time I will use some arm-... tuple maybe with different versions of gcc and report my success or my failure. _________________ Spiros |
|
Back to top |
|
|
|