Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Missing avr-gcc; you need to crossdev -s4 avr ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Wed Apr 10, 2024 2:12 pm    Post subject: Missing avr-gcc; you need to crossdev -s4 avr ? Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9680
Location: almost Mile High in the USA

PostPosted: Wed Apr 10, 2024 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Wed Apr 10, 2024 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9680
Location: almost Mile High in the USA

PostPosted: Wed Apr 10, 2024 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 11, 2024 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9680
Location: almost Mile High in the USA

PostPosted: Thu Apr 11, 2024 1:02 am    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 11, 2024 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Fri Apr 12, 2024 4:25 pm    Post subject: following the docs Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1288
Location: Tri-Cities, WA USA

PostPosted: Fri Apr 12, 2024 5:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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