Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939677 - sys-devel/crossdev "crossdev -s4 -t avr" does not install avr-g++ as suggested by dev-embedded/arduino
Summary: sys-devel/crossdev "crossdev -s4 -t avr" does not install avr-g++ as suggeste...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-15 07:03 UTC by Marius Dinu
Modified: 2024-11-30 04:46 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Dinu 2024-09-15 07:03:56 UTC
cross-avr/gcc is needed for Arduino IDE. Instructions say to run "crossdev -s4 avr" to generate the cross-compiler. That command does not generate and install a "avr-g++" binary anywhere. It's not found in "equery f cross-avr/gcc" list of installed files. Arduino IDE error: "fork/exec /bin/avr-g++: no such file or directory".

Reproducible: Always

Steps to Reproduce:
crossdev -s4 -t avr
equery f cross-avr/gcc | grep "avr-g++"
Actual Results:  
There is no avr-g++ installed.

Expected Results:  
/usr/bin/avr-g++
Comment 1 Mike Gilbert gentoo-dev 2024-09-15 18:13:44 UTC
> Instructions say to run "crossdev -s4 avr" to generate the cross-compiler.

What instructions?
Comment 3 Arsen Arsenović gentoo-dev 2024-09-17 10:55:11 UTC
in general, crossdev (for no good reason) avoids building C++ stuff for stage 1 compilers.  this /could/ make sense if the final target is an s3 target (saves some build time) but is nonsense if the final target is also s1 since that means language support is missing.

it is also possible to build libstdc++ on a target that is --without-headers.. which IIRC isn't very convenient with crossdev right now.