Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avr-g++: no such file or directory #2415

Open
3 tasks done
asimovc opened this issue Nov 10, 2023 · 3 comments
Open
3 tasks done

Avr-g++: no such file or directory #2415

asimovc opened this issue Nov 10, 2023 · 3 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@asimovc
Copy link

asimovc commented Nov 10, 2023

Describe the problem

When i try to compile a simple Sketch i get this error Error during build: fork/exec /home/hellboy/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory and i already downloaded the avr core as you can see here:

~$ arduino-cli core list
ID          Installed Latest Name              
arduino:avr 1.8.6     1.8.6  Arduino AVR Boards

And the verbose says it:

FQBN: arduino:avr:mega
Using board 'mega' from platform in folder: /home/hellboy/.arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /home/hellboy/.arduino15/packages/arduino/hardware/avr/1.8.6

Detecting libraries used...
/home/hellboy/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/hellboy/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/hellboy/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega /tmp/arduino/sketches/6A5A29022208ED9700955194B4CCD27C/sketch/Test.ino.cpp -o /dev/null


Used platform Version Path                                                        
arduino:avr   1.8.6   /home/hellboy/.arduino15/packages/arduino/hardware/avr/1.8.6
Error during build: fork/exec /home/hellboy/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory

To reproduce

just use arduino-cli compile -b arduino:avr:mega Sketch

Expected behavior

Compile the sketch

Arduino CLI version

0.34.2 Commit: 963c1a7 Date: 2023-09-11T10:05:42Z

Operating system

Linux

Operating system version

Kiss Linux With Latest Version

Additional context

My OS can be found in here and it uses musl libc and busybox as default.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@asimovc asimovc added the type: imperfection Perceived defect in any part of project label Nov 10, 2023
@umbynos
Copy link
Contributor

umbynos commented Nov 13, 2023

Seems related to #1208

@cmaglie
Copy link
Member

cmaglie commented Jan 4, 2024

Does /home/hellboy/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ exists?

@umbynos umbynos added the status: waiting for information More information must be provided before work can proceed label Mar 6, 2024
@asimovc
Copy link
Author

asimovc commented Mar 28, 2024

Turns out that is a problem related to glibc link, i used a musl distro when i have this bug. Just build and use gcompat solved the problem with the bin linked against glibc. The problem has not been solved in general, maybe given a binarie linked against musl can solve it.

@umbynos umbynos removed the status: waiting for information More information must be provided before work can proceed label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants