Skip to content

arduino-cli core install arduino:avr failing on Windows 10 #20

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
mancusoa74 opened this issue Aug 28, 2018 · 7 comments
Closed

arduino-cli core install arduino:avr failing on Windows 10 #20

mancusoa74 opened this issue Aug 28, 2018 · 7 comments
Assignees

Comments

@mancusoa74
Copy link

Operating System:

Edition: Windows 10 Enterprise
Version: 1709
OS Build: 16299.611
System Type: 64-bit operating system, x64-based processor

I have issued the following command:

arduino-cli-0.2.0-alpha.preview-windows.exe core install arduino:avr

and got this message:

The tool arduino:[email protected] is not available for the current OS

this prevents me to use the arduino-cli on my Windows system

Same command issued on Linux system (on same machine) works properly

@animeshitsme
Copy link

I too have the same problem. Whatever I try to download in arduino cli it says that its not supported on your os.
Edition:- Windows 10 Home.

@cmaglie cmaglie added this to the Next alpha.preview milestone Aug 29, 2018
@cmaglie cmaglie added the bug label Aug 30, 2018
@luccasmaso
Copy link

Hi @cmaglie

I'm still getting this. My environment of execution is arm64 with linux alpine

Updating index: package_index.json downloaded 0.00%
FQBN    Port    ID      Board Name

Searching for platforms matching 'arduino'

ID                      Version Name                                             
Intel:arc32             2.0.4   Intel Curie Boards                               
arduino:avr             1.6.23  Arduino AVR Boards                               
arduino:megaavr         1.6.26  Arduino megaAVR Boards                           
arduino:nrf52           1.0.2   Arduino nRF52 Boards                             
arduino:sam             1.6.12  Arduino SAM Boards (32-bits ARM Cortex-M3)       
arduino:samd            1.6.21  Arduino SAMD Boards (32-bits ARM Cortex-M0+)     
arduino:samd_beta       1.6.25  Arduino SAMD Beta Boards (32-bits ARM Cortex-M0+)
arduino:stm32f4         1.0.1   Arduino STM32F4 Boards                           
littleBits:avr          1.0.0   littleBits Arduino AVR Modules                   

The tool arduino:[email protected] is not available for the current OS
FQBN    Port    ID      Board Name

Downloading and installing missing tool: builtin:[email protected]
Error: tool not available for your OS
Error downloading builtin:[email protected]
Error: platform arduino:avr is not installed
Invalid FQBN.

mastrolinux pushed a commit that referenced this issue Jul 16, 2019
@muellerj
Copy link

I am also having trouble. I'm running Alpine inside WSL on Windows10. The executables that are installed seem to be not the right architecture:

$ ~/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
Failed to execute process '/home/muellerj/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++'. Reason:
The file '/home/muellerj/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++' does not exist or could not be executed.

but the file is there:

$ ls -a ~/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-rwxr-xr-x 2 muellerj muellerj 931K Nov 19 15:14 /home/muellerj/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++

@cmaglie
Copy link
Member

cmaglie commented Nov 20, 2019

@luccasmaso @muellerj
I'm not sure your problems are related to the above.

What is Alpine?

Please open a new issue, try with the latest arduino-cli and explain how to reproduce your problem.

@muellerj
Copy link

It's a Linux distro: https://www.alpinelinux.org

@mastrolinux
Copy link
Contributor

The issue is all about WSL, not alpine itself.
The problem is WSL appears to be Linux as an OS but the underly OS is Windows. So best not to use WSL at all. Also WSL does not have access to serial ports of the system, so I strongly discourage using it.
The Windows build of the CLI is not affected by this issue.

The same works on Ubuntu WSL which is officially supported by Windows while Alpine mess the permissions a bit.

luca@desktop:~$ arduino-cli core install arduino:avr
Downloading packages...
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed

I would avoid supporting non-official builds of WSL.

Can you please tell us how did you install Alpine and a step by step guide on how to reproduce the issue? So I can check a bit more.

@mastrolinux mastrolinux self-assigned this Nov 21, 2019
@cmaglie
Copy link
Member

cmaglie commented Nov 22, 2019

I think that this deserve it's own issue, the original poster issue has been fixed long ago so I'm locking this one.

Feel free to open a new issue with a better description of the problem.

@arduino arduino locked as resolved and limited conversation to collaborators Nov 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants