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++
> Instructions say to run "crossdev -s4 avr" to generate the cross-compiler. What instructions?
https://github.com/gentoo/gentoo/blob/master/dev-embedded/arduino/arduino-1.8.19-r1.ebuild line 120.
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.