View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Wed Apr 10, 2024 2:12 pm Post subject: Missing avr-gcc; you need to crossdev -s4 avr ? |
|
|
I'm not sure how to resolve this notification:
Messages for package dev-embedded/arduino-builder-1.5.4-r1:
* Missing avr-gcc; you need to crossdev -s4 avr _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Wed Apr 10, 2024 3:35 pm Post subject: |
|
|
Well, technically that's what you want to do.
Code: | # emerge crossdev
# crossdev -s4 --target avr |
It appears to see if you can build AVR binaries by running avr-gcc . _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Wed Apr 10, 2024 7:42 pm Post subject: |
|
|
eccerr0r wrote: | Well, technically that's what you want to do.
Code: | # emerge crossdev
# crossdev -s4 --target avr |
It appears to see if you can build AVR binaries by running avr-gcc . |
Thank you. Here's what I got:
Code: | yoda ~ # crossdev -s4 --target avr
* You need to specify an output overlay. Please use --ov-output, or consult
* https://wiki.gentoo.org/wiki/Custom_repository for more details.
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Wed Apr 10, 2024 8:27 pm Post subject: |
|
|
hmm. behavior of this changed, it used to auto create the repo, mine got dumped in /usr/local/portage/cross-avr ...
Do you have a preferred location for overlay trees? just specify an empty directory beside the other overlays you might have. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Thu Apr 11, 2024 12:04 am Post subject: |
|
|
eccerr0r wrote: | hmm. behavior of this changed, it used to auto create the repo, mine got dumped in /usr/local/portage/cross-avr ...
Do you have a preferred location for overlay trees? just specify an empty directory beside the other overlays you might have. |
thank you! I might just leave thing be. I run two different Arduino IDE's and they work fine. I'm not a fan of overlays. _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Thu Apr 11, 2024 1:02 am Post subject: |
|
|
This overlay is mostly empty, it's used to keep track of updates for the toolchain when you emerge @world (like cross-avr/gcc-13.1, etc.; they're usually just symlinks to the main repo) Just makes tracking a bit easier, plus you can put software you want to build for these alternate cross compile architectures that should not be built for the native architecture.
I don't use any IDEs but use make and avr-gcc to build binaries for old microcontrollers, and other than some bloat (and needing to use -Os), gcc works fairly well. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Thu Apr 11, 2024 1:57 pm Post subject: |
|
|
Thank you eccerr0r.
I'm going to work on this. I just need a little free time. Duty calls. _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Fri Apr 12, 2024 4:25 pm Post subject: following the docs |
|
|
If I took the time and followed the docs I would have understood.
https://wiki.gentoo.org/wiki/Arduino
I did the following:
# mkdir -p /var/db/repos/portage-crossdev/{profiles,metadata}
# echo 'crossdev' > /var/db/repos/portage-crossdev/profiles/repo_name
# echo 'masters = gentoo' > /var/db/repos/portage-crossdev/metadata/layout.conf
# chown -R portage:portage /var/db/repos/portage-crossdev
# echo 'thin-manifests = true' >> /var/db/repos/portage-crossdev/metadata/layout.conf
#nano -lmc /etc/portage/repos.conf/crossdev.conf
[crossdev]
location = /var/db/repos/portage-crossdev
priority = 10
masters = gentoo
auto-sync = no
The following failed:
#crossdev -s4 --stable --portage --verbose --target avr
This line of code fixed the problem:
USE="-openmp -hardened -sanitize -vtv" crossdev -s4 --stable --portage --verbose --target avr _________________ Without diversity there can be no evolution:)
Last edited by cwc on Sat Apr 13, 2024 12:58 am; edited 1 time in total |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1386 Location: Tri-Cities, WA USA
|
Posted: Fri Apr 12, 2024 5:55 pm Post subject: |
|
|
Error:
WARNING - Cannot auto-configure CHOST avr;
!!! You should edit /usr/avr/etc/portage/make.conf /usr/avr/etc/portage/profile/make.defaults /usr/avr/etc/portage/profile/use.force
This solved the above notification:
USE="-openmp -hardened -sanitize -vtv" crossdev -s4 --stable --portage --verbose --target avr _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
|