Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crosscompiling for ARM: Unknown arch armv5tej
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
Evil.2000
n00b
n00b


Joined: 08 Jul 2006
Posts: 51
Location: Germany

PostPosted: Sun May 01, 2011 4:07 pm    Post subject: crosscompiling for ARM: Unknown arch armv5tej Reply with quote

Hi all.

I'm trying to build a cross compiler for use together with distcc to remotely compile packages on my desktop for my Linkstation NAS.

Code:
crossdev -S -P -v --k 2.6.35 --g 4.1.2 --l 2.9_p20081201-r3 --with-headers -t armv5tejl-softfloat-linux-gnueabi


While trying to compile the cross-gcc the following error occurred:
Code:
Unknown arch used in --with-arch=armv5tej
make[1]: *** [configure-gcc] Error 1
make[1]: Leaving directory `/var/tmp/portage/cross-armv5tejl-softfloat-linux-gnueabi/gcc-4.1.2/work/build'
make: *** [all] Error 2
emake failed
 * ERROR: cross-armv5tejl-softfloat-linux-gnueabi/gcc-4.1.2 failed (compile phase):
 *   emake failed with all


If i omit the j in armv5tejl the gcc is build fine, but i need the exact name of the executable (with the j) for the distcc to work.
On my NAS this gcc is still running.

How to get the cross-gcc to be build with-arch=armv5tej?

Thanks in advance.

/var/log/portage/cross-armv5tejl-softfloat-linux-gnueabi-info.log
/var/log/portage/cross-armv5tejl-softfloat-linux-gnueabi-gcc-stage1.log
emerge --info
_________________
- All is a file. And if not, it should be.
Back to top
View user's profile Send private message
armin76
Developer
Developer


Joined: 24 Apr 2006
Posts: 173

PostPosted: Fri May 06, 2011 6:17 pm    Post subject: Reply with quote

You'll have to create an overlay and put the toolchain.eclass in there, and comment/remove the "confgcc="${confgcc} --with-arch=${arm_arch}" " line
Back to top
View user's profile Send private message
johnlu
Apprentice
Apprentice


Joined: 22 Aug 2004
Posts: 240
Location: Córdoba, España

PostPosted: Wed Jul 13, 2011 5:37 pm    Post subject: Reply with quote

Hi, I'm facing this same problem. I'm running
Code:
crossdev --k 2.6.30-r1 -t armv5tej-softfloat-linux-uclibc

Result is same as Evil.2000.

Evil.2000, have you fix this problem for you? How?

armin76 wrote:
You'll have to create an overlay and put the toolchain.eclass in there, and comment/remove the "confgcc="${confgcc} --with-arch=${arm_arch}" " line


Did you mean to move /usr/portage/eclass/toolchain.eclass to another place? Where? When I do crossdev, it creates cross-armv5tej-linux-uclibc inside sunrise overlay, is this wrong?

I'm using layman and a local overlay, I think layman is not suited to work with local overlays...

Edit: I fixed my overlay issue, I just put this lines in this same order in /etc/make.conf
Code:
PORTDIR_OVERLAY="/usr/local/portage"
source /var/lib/layman/make.conf

/var/lib/layman/make.conf contains:
Code:
PORTDIR_OVERLAY="
$PORTDIR_OVERLAY
/var/lib/layman/sunrise
"


Then I moved /usr/portage/eclass/toolchain.eclass to /usr/local/portage/eclass/ and I edited as armin76 told us, but it didn't work...
Back to top
View user's profile Send private message
Evil.2000
n00b
n00b


Joined: 08 Jul 2006
Posts: 51
Location: Germany

PostPosted: Wed Jul 13, 2011 7:21 pm    Post subject: Reply with quote

Hey johnlu,

Until now i did not fix this, because i had no time and now I'm on holiday.
But thanks for your feedback i will try this if I'm back at home.

Evil
_________________
- All is a file. And if not, it should be.
Back to top
View user's profile Send private message
johnlu
Apprentice
Apprentice


Joined: 22 Aug 2004
Posts: 240
Location: Córdoba, España

PostPosted: Thu Jul 14, 2011 9:25 am    Post subject: Reply with quote

I tried with:
  • crossdev --k 2.6.30-r1 -t armv5tej-softfloat-linux-uclibc (didn't compile, it fails compiling uclibc)
  • crossdev --k 2.6.30-r1 -t armv5tej-unknown-linux-gnueabi (compiled)
  • crossdev --k 2.6.30-r1 -t armv5tej-softfloat-linux-gnueabi (compiled)

I'd like to try to compile those which compiled without modified toolchain.eclass. Who knows, it could work after all this time, couldn't it?
Back to top
View user's profile Send private message
johnlu
Apprentice
Apprentice


Joined: 22 Aug 2004
Posts: 240
Location: Córdoba, España

PostPosted: Thu Jul 14, 2011 10:20 am    Post subject: Reply with quote

I can confirm that it's needed to copy and modify toolchain.eclass.
Back to top
View user's profile Send private message
phoenix_me
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 281
Location: Lubliniec

PostPosted: Mon Aug 15, 2011 1:31 pm    Post subject: Reply with quote

johnlu wrote:
I can confirm that it's needed to copy and modify toolchain.eclass.


It dosn't work for me. Can you take a look into my thread and check if you can help.
http://forums.gentoo.org/viewtopic-t-890692.html
_________________
phoenix
___
myslenie ma przyszlosc
___
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