-
-
Notifications
You must be signed in to change notification settings - Fork 398
Install.sh script misdetects architecture on arm64 kernel with arm32 userspace #1004
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
Comments
As we figured out in arduino/toolchain-avr#73, the problem is actually reversed: You have a 32-bit userspace already, so should be using a 32-bit arduino-cli rather than a 64-bit arduino-cli. I can't explain why the older PR307 version you linked, which is also 64-bit, does work, but I don't find it particularly interesting either, since I don't think the 64-bit version can be expected to work on your system. So, the bug I see here is that the arduino-cli |
we use |
On the Vero 4K+, with the latest updates, |
From the |
both
|
Bug Report
Bug originally mentioned in #292 (comment)
A Vero 4K+ (by OSMC) is a Kodi box which has Debian with aarch64 (arm64) architecture. It's very versatile but it hasn't Xorg installed. It has its own debian repo
apt.osmc.tv
and uses the officialhttp://ftp.debian.org/debian stretch main contrib non-free
as well. Yes the stable version is still on Debian Stretch but it's very stable.It can be accessed on the command line via ssh over Wi-Fi. The default user is named
osmc
, who has sudo privileges as well.Current behavior
installing with the command
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
I obtain
But the binary
/home/osmc/bin/arduino-cli
exists, ergo it's made for the wrong arch, like it was happening in issue 307. I manually installed thearduino-cli
binary from arduino-cli-152-PR307-linuxarm64.tar.bz2 found in a comment there and it works: the output ofarduino-cli version
with the 152-PR307 version isarduino-cli Version: 152-PR307 Commit: 77d5613
and can run other subrutines as well.
I probably could install the 32 bit armhf architeture like suggested online in some places (like here), but it don't like to mess up things and hope for the best. Space is also limited.
It there is a clean solution that you know of, the
avr-g++
binary from the main arduino installer has the same problem on this machine (issue 73 on toolchain-avr): running a normal command likearduino-cli compile --fqbn arduino:avr:uno Sketch01
, I'm getting a classic error:avr-g++
exists but it's for the wrong arch for sure (it's typical behaviour with wrong arch binaries). But this problem cannot be solved removing the.arduino15
folder like suggested in many places.The text was updated successfully, but these errors were encountered: