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

Stino will download apple OSX version of avr tools on Linux Ubuntu #527

Open
milosh-dev opened this issue Apr 10, 2020 · 2 comments
Open

Comments

@milosh-dev
Copy link

milosh-dev commented Apr 10, 2020

Fresh install of Stino on Ubuntu 18.04 machine. Added Arduino AVR platform version 1.8.2

For some reason it downloads an Apple version of avr tools. As a result build fails with the "Exec format error" and file ./avr-g++ command in appropriate ~/.arduino15 folder shows that it is indeed osx format file: " Mach-O 64-bit x86_64 executable".

I did a reinstall of .arduino15 folder at it shows that it downloads avr tools from this file:
http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-apple-darwin14.tar.bz2

What should I do to get the correct toolchain?

@GITS-SAC
Copy link

Hi, I find a solution for the problem after many effort.
Go to Arduino ==> go to Build folder and open it, go to .arduino15/packages/arduino/tools/avr-gcc/7.3.0-amtel3.6.1-arduino5 and you find the osx files.
Go to Arduino website and download the correct version : https://www.arduino.cc/en/main/OldSoftwareReleases (1.8.2 Linux)
Open the file and go to Hardware/tools/avr
Copy all the content and paste to the Build folder to replace the correct file.
Sorry if my english is bad but I hope it works for you.

GITS-SAC

@milosh-dev
Copy link
Author

milosh-dev commented Apr 23, 2020

I managed to install it.

But well... the package seems to be unmantained (last commit in 2017) and it also has a memory leak issue described in #463, so I won't expect this issue would be fixed soon in the code. I don't have expertise to do it myself either :(

I am going to try Deviot instead.

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