Skip to content

Board Manager problem with installing the tools #4183

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
keestux opened this issue Nov 18, 2015 · 7 comments
Closed

Board Manager problem with installing the tools #4183

keestux opened this issue Nov 18, 2015 · 7 comments
Assignees
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug
Milestone

Comments

@keestux
Copy link

keestux commented Nov 18, 2015

Hey,

We have our own JSON for our boards. It's a SAMD board which uses the same tools as the Zero. After selecting the install it downloads all the necessary tools. But then there is a conflict between where the tools are installed and where Arduino IDE expects them.

Our name is SODAQ and the Board Managers installs the tools in $HOME/.arduino15/packages/SODAQ/tools/. So far so good. Installation reported no problem. Then I select our board, and build a sketch. The error I get is:

Cannot run program "{runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-g++" (in directory "."): error=2, No such file or directory

However when I install the Zero, (which installs the very same tools in $HOME/.arduino15/packages/arduino/tools/) it all works.

So, either the installer should have installed it in $HOME/.arduino15/packages/arduino/tools/, or the IDE should assign {runtime.tools.arm-none-eabi-gcc.path} to my SODAQ/tools.

In case you want to test, here is the URL (used for testing)

http://downloads.sodaq.net/test/package_sodaq_index.json
@aethaniel
Copy link
Contributor

@keestux, from what I understood you should not need to fill the "tools" section in your json file as you already filled the "toolsDependencies" to reference the ones provides by Arduino.

Can you test by putting:

      "tools":
      [
      ]

@ffissore ffissore added the Component: Board/Lib Manager Boards Manager or Library Manager label Nov 19, 2015
@ffissore ffissore self-assigned this Nov 19, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 19, 2015
@ffissore
Copy link
Contributor

I can't replicate this with latest hourly, even though I see your json file is now listing all tools and I've removed them in my test

@ffissore ffissore added the Waiting for feedback More information must be provided before we can proceed label Nov 19, 2015
@keestux
Copy link
Author

keestux commented Nov 19, 2015

@aethaniel That is something I already tried. And it doesn't make a difference. To be sure I tried it again, and with the same conclusion. The IDE installs the tools at packages/SODAQ/tools. But then if you build a sketch it looks in packages/arduino/tools.

@ffissore Yes, you're right, and also 1.6.6 is working. Hmm, I did try 1.6.6 this week but it gave errors from arduino-builder, and I couldn't figure out what went wrong.

Anyways, I'm happy now. We shall instruct our users to use 1.6.6 or higher. Thanks

BTW It is still a waste of disk space that the tools are installed twice (276Mb) in my ~/.arduino15 tree. Once for the SODAQ boards and once for the Zero.

@keestux keestux closed this as completed Nov 19, 2015
@ffissore
Copy link
Contributor

@keestux yes, sorry about that. We'll eventually fix it

@ffissore
Copy link
Contributor

We are solving it. Follow ups in #4193

@ffissore ffissore added Type: Bug and removed Waiting for feedback More information must be provided before we can proceed labels Nov 20, 2015
@ffissore
Copy link
Contributor

Fixed. Fix will be available in next hourly build http://www.arduino.cc/en/Main/Software#hourly

@keestux
Copy link
Author

keestux commented Nov 20, 2015

Thanks. You're too kind :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants