View previous topic :: View next topic |
Author |
Message |
gnerico n00b
Joined: 25 Feb 2017 Posts: 2
|
Posted: Wed Mar 29, 2017 9:22 pm Post subject: Crossdev: no ebuilds to satisfy "cross-avr/binutils&quo |
|
|
Hi, fellow gentoo users!
I recently got an Arduino and I was trying to set up my gentoo system following the wiki article... But I'm having some problems installing the toolchain.
I emerged crossdev, but when I run
Code: | # USE="-openmp -hardened -sanitize -vtv" crossdev -s4 -S --target avr |
I get
Code: | * You need to specify an output overlay. Please use --ov-output, or consult
* https://wiki.gentoo.org/wiki/Overlay/Local_overlay for more details.
|
So I made a custom repository (/usr/local/arduino) and I run
Code: | # USE="-openmp -hardened -sanitize -vtv" crossdev --ov-output /usr/local/arduino/ -s4 -S --target avr |
Which gives me a new problem:
Code: | -----------------------------------------------------------------------------------------------------
* crossdev version: 20151026
* Host Portage ARCH: amd64
* Target Portage ARCH: *
* Target System: avr
* Stage: 4 (C/C++ compiler)
* ABIs: default
* binutils: binutils-[stable]
* gcc: gcc-[stable]
* libc: avr-libc-[stable]
* CROSSDEV_OVERLAY: /usr/local/arduino/
* PORT_LOGDIR: /var/log/portage
* PORTAGE_CONFIGROOT:
* Portage flags:
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
* leaving sys-devel/binutils in /usr/local/arduino/
* leaving sys-devel/gcc in /usr/local/arduino/
* leaving dev-embedded/avr-libc in /usr/local/arduino/
* leaving sys-devel/gdb in /usr/local/arduino/
* leaving metadata/layout.conf alone in /usr/local/arduino/
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
!!! WARNING - Cannot auto-configure CHOST avr;
!!! You should edit /usr/avr/etc/portage/make.conf
!!! by hand to complete your configuration.
!!! No LIBC is known for this target.
* Log: /var/log/portage/cross-avr-binutils.log
* Emerging cross-binutils ...
* binutils failed :(
*
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-avr-info.log
* /var/log/portage/cross-avr-binutils.log.xz
* /var/tmp/portage/cross-avr/binutils*/temp/binutils-config.logs.tar.xz
|
According to the /var/log/portage/cross-avr-binutils.log there are no ebuild for cross-avr/binutils
Code: | # cat /var/log/portage/cross-avr-binutils.log
Calculating dependencies ... done!
emerge: there are no ebuilds to satisfy "cross-avr/binutils".
emerge: searching for similar names...
emerge: Maybe you meant any of these: sys-devel/binutils, sys-apps/debianutils, sys-apps/findutils?
|
But this is what is inside the custom repository
Code: | # ls -ahl /usr/local/arduino/cross-avr/
total 8.0K
drwxr-xr-x 2 root root 4.0K Mar 29 23:03 .
drwxr-xr-x 5 portage portage 4.0K Mar 29 23:03 ..
lrwxrwxrwx 1 root root 34 Mar 29 23:03 avr-libc -> /usr/portage/dev-embedded/avr-libc
lrwxrwxrwx 1 root root 31 Mar 29 23:03 binutils -> /usr/portage/sys-devel/binutils
lrwxrwxrwx 1 root root 26 Mar 29 23:03 gcc -> /usr/portage/sys-devel/gcc
lrwxrwxrwx 1 root root 26 Mar 29 23:03 gdb -> /usr/portage/sys-devel/gdb
|
Can anyone help me understand what I am doing wrong? |
|
Back to top |
|
|
gnerico n00b
Joined: 25 Feb 2017 Posts: 2
|
Posted: Thu Mar 30, 2017 10:34 am Post subject: |
|
|
I managed to solve the issue. I just added
Quote: | PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/arduino/" |
to my /etc/portage/make.conf. |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Thu Mar 30, 2017 11:50 am Post subject: |
|
|
I just yesterday removed reference to PORTDIR_OVERLAY form make.conf. The current method that portage prefers (although PORTDIR_OVERLAY works) is to stash that information in /etc/portage/repos.conf
That is a directory for me, and contains two files
Code: | # /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://gentoo/gentoo-portage
auto-sync = yes
[local]
location = /usr/local/portage
auto-sync = no
# /etc/portage/repos.conf/layman.conf
[mozilla]
priority = 50
location = /var/lib/layman/mozilla
layman-type = git
auto-sync = No
[mv]
priority = 50
location = /var/lib/layman/mv
layman-type = git
auto-sync = No |
Your system probably already has a repos.conf file or directory. You should be able to put /usr/local/arduino in there.
Don't copy my [gentoo] entry word for word. The machine "rsync://gentoo" is a machine on my local network. One of the machines on the LAN uses an official Gentoo mirror for the portage tree, then hosts that (as machine "gentoo") for the rest of the LAN.
When I ran crossdev here (to build a 64 bit kernel on a 32 bit system on a 64 bit machine), it put all the portage-related material in /usr/local/portage without any demand that I specify an overlay location. crossdev creates NEW CATEGORIES that are otherwise not in the portage tree, so there is no risk of collision. What I am suggesting is that there is no need to have an overlay (directory) unique to "arduino", your overlay could be /usr/local/portage (I assume you did not have a local overlay before), or /usr/local/crossdev. |
|
Back to top |
|
|
|
|
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
|
|