Skip to content

No valid system found for "avr-gcc" #1489

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

Closed
ghollf opened this issue Jul 11, 2022 · 6 comments
Closed

No valid system found for "avr-gcc" #1489

ghollf opened this issue Jul 11, 2022 · 6 comments

Comments

@ghollf
Copy link

ghollf commented Jul 11, 2022

Problem installing tools on MBA M1 / Eclipse 2022-06 / OpenJDK11

!SUBENTRY 1 io.sloeber.core 4 0 2022-07-11 01:40:20.148
!MESSAGE Failed to install Arduino AVR Boards
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 01:40:20.148
!MESSAGE No valid system found for "avr-gcc".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 01:40:20.148
!MESSAGE No valid system found for "avrdude".

TRY 1 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE Failed to install esp32
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "riscv32-esp-elf-gcc".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "xtensa-esp32-elf-gcc".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "xtensa-esp32s2-elf-gcc".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "xtensa-esp32s3-elf-gcc".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "esptool_py".
!SUBENTRY 2 io.sloeber.core 4 0 2022-07-11 02:40:25.388
!MESSAGE No valid system found for "mklittlefs".

@jantje
Copy link
Member

jantje commented Jul 11, 2022

I think I know what the problem is and if I'm right it will be a easy fix. However to fix it I'll need some data from you and it is hard to explain what I need.
In the Arduino eco system there is some kind of host ID that identifies the code that needs to be downloaded for your computer.
It looks as if Sloeber uses a wrong code and as such does not find the packages to download.
Here is the code that probably fails

What happens is that in a package file (like package_index.json provided by Arduino) sloeber fails to find a host (packages/[number]/tools/[number]/system/[number]/host) with a hostID that matches the os provided info.

So the question is. What is your System.getProperty("os.name") and System.getProperty("os.arch") and what is the arduino provided host key that needs to be installed.

@ghollf
Copy link
Author

ghollf commented Jul 11, 2022

os.arch=aarch64
os.name=Mac OS X
os.version=12.4

I think Arduino tools will not provide native support, so aarch64 should be treated as x86_64.

@jantje
Copy link
Member

jantje commented Jul 11, 2022

When the build is finished you can try to install from here https://github.com/Sloeber/arduino-eclipse-plugin/actions/runs/2651591737

@jantje
Copy link
Member

jantje commented Jul 22, 2022

@ghollf did you find some time to check whether the fix fixed your problem?

@ghollf
Copy link
Author

ghollf commented Jul 22, 2022

Not yet. I have switched back to a PC temporarily.

@jantje
Copy link
Member

jantje commented Sep 16, 2022

As this "should be fixed" and nobody else seems to have the issue I'm closing the issue.
Please reopen if you find the time to test and the test fails

@jantje jantje closed this as completed Sep 16, 2022
jantje pushed a commit that referenced this issue Sep 21, 2022
Sloeber used to split the recipes to reassemble them on the command line
so CDT can find the needed environment variables
In this change I remove the splitting fields and add them at the end of
the command line
This will probably make some platform fail (due to the move of the
fields on the command line)
I need to look to modify the CDT provided command when the
board/platform is selected/changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants