View previous topic :: View next topic |
Author |
Message |
Evil.2000 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/3942835144affb6d3bde3.jpg)
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Sun May 01, 2011 4:07 pm Post subject: crosscompiling for ARM: Unknown arch armv5tej |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
armin76 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 24 Apr 2006 Posts: 174
|
Posted: Fri May 06, 2011 6:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
johnlu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/10995025074e69f6588612c.jpg)
Joined: 22 Aug 2004 Posts: 242 Location: Córdoba, España
|
Posted: Wed Jul 13, 2011 5:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evil.2000 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/3942835144affb6d3bde3.jpg)
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Wed Jul 13, 2011 7:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
johnlu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/10995025074e69f6588612c.jpg)
Joined: 22 Aug 2004 Posts: 242 Location: Córdoba, España
|
Posted: Thu Jul 14, 2011 9:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
johnlu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/10995025074e69f6588612c.jpg)
Joined: 22 Aug 2004 Posts: 242 Location: Córdoba, España
|
Posted: Thu Jul 14, 2011 10:20 am Post subject: |
|
|
I can confirm that it's needed to copy and modify toolchain.eclass. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
phoenix_me Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 24 Dec 2003 Posts: 281 Location: Lubliniec
|
Posted: Mon Aug 15, 2011 1:31 pm Post subject: |
|
|
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.
https://forums.gentoo.org/viewtopic-t-890692.html _________________ phoenix
___
myslenie ma przyszlosc
___ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|