Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building an arm toolchain fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Spiros
Apprentice
Apprentice


Joined: 11 Mar 2008
Posts: 189
Location: Zurich

PostPosted: Fri Jan 07, 2011 11:23 am    Post subject: Building an arm toolchain fails Reply with quote

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
View user's profile Send private message
bscott
n00b
n00b


Joined: 16 Dec 2010
Posts: 1

PostPosted: Sat Jan 08, 2011 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Sat Jan 08, 2011 10:22 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Gentoo on Alternative Architectures as it fits better here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Sat Jan 08, 2011 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Spiros
Apprentice
Apprentice


Joined: 11 Mar 2008
Posts: 189
Location: Zurich

PostPosted: Sun Jan 09, 2011 12:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum