View previous topic :: View next topic |
Author |
Message |
9a3eedi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jul 2007 Posts: 14
|
Posted: Sun Nov 20, 2016 2:22 pm Post subject: Can't get crossdev to set up for Raspberry Pi 3 |
|
|
I'm attempting to set up cross compilation for my Raspberry Pi 3 running at 32-bit. I have a Gentoo VM which I'm working with to be the cross-compiler host.
I've been following the instructions here:
https://wiki.gentoo.org/wiki/Raspberry_Pi/Cross_building#crossdev
Unfortunately I got stuck at the last part.
The first error I got was that crossdev now seems to need an argument for --ov-output, so I created a local overlay using the instructions here https://wiki.gentoo.org/wiki/Overlay/Local_overlay , and then pointed --ov-output to that directory, so now my command is:
Code: | crossdev -S -v -t armv7a-hardfloat-linux-gnueabi --ov-output /usr/local/portage-crossdev/ |
This results in the following output:
Code: |
--------------------------------------------------------------------------------------------
* Host Portage ARCH: amd64
* Target Portage ARCH: arm
* Target System: armv7a-hardfloat-linux-gnueabi
* Stage: 4 (C/C++ compiler)
* ABIs: default
* binutils: binutils-[stable]
* gcc: gcc-[stable]
* headers: linux-headers-[stable]
* libc: glibc-[stable]
* CROSSDEV_OVERLAY: /usr/local/portage-crossdev/
* PORT_LOGDIR: /var/log/portage
* PORTAGE_CONFIGROOT:
* Portage flags: -v
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
* leaving sys-devel/binutils in /usr/local/portage-crossdev/
* leaving sys-devel/gcc in /usr/local/portage-crossdev/
* leaving sys-kernel/linux-headers in /usr/local/portage-crossdev/
* leaving sys-libs/glibc in /usr/local/portage-crossdev/
* leaving sys-devel/gdb in /usr/local/portage-crossdev/
* leaving metadata/layout.conf alone in /usr/local/portage-crossdev/
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ -
* Log: /var/log/portage/cross-armv7a-hardfloat-linux-gnueabi-binutils.log
* Emerging cross-binutils ...
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies ... done!
emerge: there are no ebuilds to satisfy "cross-armv7a-hardfloat-linux-gnueabi/binutils".
emerge: searching for similar names... nothing similar found.
* binutils failed :(
*
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-armv7a-hardfloat-linux-gnueabi-info.log
* /var/log/portage/cross-armv7a-hardfloat-linux-gnueabi-binutils.log.xz
* /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/binutils*/temp/binutils-config.logs.tar.xz
|
I'm not sure what I'm doing wrong here. I found another thread that suggested that the name of the target might be mispelled, but I made sure that it's correct. Any other ideas?
Removed excessive line break decorations provided by crossdev - NeddySeagoon |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54872 Location: 56N 3W
|
Posted: Sun Nov 20, 2016 2:36 pm Post subject: |
|
|
9a3eedi,
The --ov-output tells crossdev which overlay to put the cross ebuilds in.
Code: | --ov-output /usr/local/portage-crossdev/ |
Code: | $ eix cross-armv7a-hardfloat-linux-gnueabi/binutils
[I] cross-armv7a-hardfloat-linux-gnueabi/binutils [1]
Available versions:
(2.21.1) 2.21.1-r1
(2.22) 2.22-r1
(2.23.2) 2.23.2
(2.24) 2.24-r3{tbz2}
(2.25) (~)2.25{tbz2} (~)2.25-r1{tbz2}
(2.25.1) 2.25.1-r1{tbz2}
(2.26.1) (~)2.26.1{tbz2}
(git) **9999
{cxx multitarget nls static-libs test vanilla zlib}
Installed versions: 2.25.1-r1(2.25.1){tbz2}(22:15:13 10/27/16)(cxx nls zlib \
-multitarget -static-libs -test -vanilla) 2.26.1(2.26.1){tbz2}(22:15:17 10/27/16)(cxx nls -multitarget -static-libs -test -vanilla)
Homepage: https://sourceware.org/binutils/
Description: Tools necessary to build programs
[1] "gentoo_static" /usr/local/gentoo-static
| in my case /usr/local/gentoo-static
Portage won't look there unless you tell it about the overlay.
I have make.conf: | PORTDIR_OVERLAY="/usr/local/gentoo-static /usr/local/portage" |
That's probably depreciated in favour of a repros.conf entry now.
-- edit --
Fixed long line _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
9a3eedi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jul 2007 Posts: 14
|
Posted: Sun Nov 20, 2016 6:26 pm Post subject: |
|
|
Thanks.
It seems I have missed the final instruction in the Local Overlay webpage, which is to create a file called /etc/portage/repos.conf/crossdev.conf with the following
Code: |
[crossdev]
location = /usr/local/portage-crossdev
priority = 10
masters = gentoo
auto-sync = no
|
Your post made me realize this, thanks. I also had to add ~amd64 to my portage settings to get it to build.
Perhaps I should edit the wiki to account for these changes. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|