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: RESOLVED FIXED
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: InVCS
Depends on:
Blocks:
 
Reported: 2024-09-15 07:03 UTC by Marius Dinu
Modified: 2025-01-08 22:35 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.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-02 23:26:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=0261fe00ae660641f280144000c7b191e01936c1

commit 0261fe00ae660641f280144000c7b191e01936c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-02 23:25:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-02 23:26:45 +0000

    crossdev: build C++ by default for *-newlib/*-elf/*-avr etc
    
    These days, tutorials and classes expect a C++ compiler for arm-none-eabi
    and friends and it often confuses users. Stop overriding the crossdev
    default (which is -s4) for these targets accordingly.
    
    Bug: https://bugs.gentoo.org/900713
    Bug: https://bugs.gentoo.org/939677
    Signed-off-by: Sam James <sam@gentoo.org>

 crossdev | 2 --
 1 file changed, 2 deletions(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-02 23:27:18 UTC
crossdev-99999999 should work now. Testing would be appreciated!
Comment 6 Larry the Git Cow gentoo-dev 2025-01-06 02:00:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a7e458463a0bdaa179f1405048984b5198c79f9

commit 2a7e458463a0bdaa179f1405048984b5198c79f9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-06 01:59:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-06 01:59:55 +0000

    sys-devel/crossdev: add 20250106
    
    Sam James (26):
          crossdev, Makefile: fix version handling again
          Revert "crossdev, Makefile: fix version handling again"
          crossdev: nvptx: force on openmp & fortran
          Revert "crossdev: nvptx: force on openmp & fortran"
          crossdev: nvptx: add comment wrt GFORCE and openmp/fortran
          crossdev: drop 'nocxx' (noop)
          crossdev: small style tweaks
          crossdev: crank copyright
          crossdev: build C++ by default for *-newlib/*-elf/*-avr etc
          ci: fix whitespace
          ci: add embedded/special targets (arm-none-eabi, nvptx-none)
          ci: add avr too
          ci: fix loong and uncomment
          ci: fix comment typo
          ci: add HPPA targets
          ci: don't run loong musl
          ci: no userland for hppa64
          ci: add bpf-unknown-none
          ci: add s390-ibm-linux-gnu
          ci: adjust s390x tuple name
          ci: add alpha-unknown-linux-gnu
          ci: add powerpc64le-unknown-linux-gnu
          ci: add more arm targets
          ci: add aarch64_be-unknown-linux-gnu
          ci: try to get binpkgs for dev-vcs/git and friends (via eselect-repository)
          crossdev: special-case bpf
    
    Closes: https://bugs.gentoo.org/900713
    Closes: https://bugs.gentoo.org/939677
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/crossdev/Manifest                 |  1 +
 sys-devel/crossdev/crossdev-20250106.ebuild | 40 +++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
Comment 7 Marius Dinu 2025-01-08 13:48:59 UTC
Tested crossdev-99999999. Works. Thank you!
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-08 22:35:45 UTC
Thank you!