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

"/bin/sh: arm-none-eabi-g++: command not found" Error when compiling for Teensy 3.1 on Teensyduino 1.21 + Arduino 1.6.1 #248

Closed
cosmikwolf opened this issue Mar 17, 2015 · 14 comments

Comments

@cosmikwolf
Copy link

Stino does not work with the latest version of Teensyduino (1.21)

I believe it is because there is a new flag in the board.txt file which Stino does not read properly.

teensy31.build.toolchain=hardware/tools/arm/bin/

This flag specifies where the arm-none-eabi-g++ compiler lives relative to the Arduino 1.6.1 Java folder.

Steps to reproduce:
Install Sublime Text
Install Latest Stino
Install Arduino 1.6.1
Install Teensyduino 1.21 on to Arduino 1.6.1
https://www.pjrc.com/teensy/td_download.html
Attempt to compile any sketch.

@cosmikwolf cosmikwolf changed the title /bin/sh: arm-none-eabi-g++: command not found "/bin/sh: arm-none-eabi-g++: command not found" Error when compiling for Teensy 3.1 on Teensyduino 1.21 + Arduino 1.6.1 Mar 23, 2015
@cosmikwolf
Copy link
Author

this issue still exists with Teensyduino 1.22b and Arduino 1.6.2

@luxcapto
Copy link

luxcapto commented Jun 1, 2015

Issue confirmed on OS X.

@brianc118
Copy link

issue exists with teensyduino 1.24 on windows 7

'"arm-none-eabi-g++"' is not recognized as an internal or external command,
operable program or batch file.

@brianc118
Copy link

is there a fix to this?

@HanYangZhao
Copy link

same problem here

@samyxdev
Copy link

Same problem with Teensyduino 1.24 and Arduino 1.0.6

@cosmikwolf
Copy link
Author

I found a fix. the problem is in the stino platform file.

  1. install Teensyduino

  2. install Arduino

  3. Replace the contents of

    ~/Library/Application Support/Sublime Text 3/Packages/Stino/preset/platform_teensy3.txt

    with the contents of

    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/platform.txt

  4. Compile in stino!

I tested this with arduino 1.6.5 r4 and the latest Teensyduino beta (available in the pjrc forum). I did this in arduino 1.6.4 as well.

@cosmikwolf
Copy link
Author

I also had to modify /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/boards.txt

change:

teensy31.build.flags.ld=-Wl,--gc-sections,--relax,--defsym=__rtc_localtime={extra.time.local} "-T{build.core.path}/mk20dx256.ld"

to:

teensy31.build.flags.ld=-Wl,--gc-sections,--relax "-T{build.core.path}/mk20dx256.ld"

@luxcapto
Copy link

Thanks cosmikwolf!!! It worked on my Mac. For anyone else encountering this, make the changes and restart Sublime Text as not all changes are updated when Sublime is running. On a side note, my Arduino Java folder was put inside the Resources folder when you open up the Arduino app package. i.e. /Applications/Arduino.app/Contents/Resources/Java/....

@luxcapto
Copy link

Works on Linux (Arch) too :) Directory structure is a bit different though. Arduino will be/ in /usr/share/arduino. Sublime text config should be in ~/.config/sublime-text-3

@cosmikwolf
Copy link
Author

Issue still exists wtih Arduino 1.6.6, and Teensyduino 1.26, although now I got the same error. I resolved it by changing the platform_teensy3.txt file in the Stino preset folder. I changed one of the first few lines to:

compiler.path={runtime.ide.path}/hardware/tools/

a ghetto rig, but it works!

@jebuschrast
Copy link

Is the addition of:
compiler.path={runtime.ide.path}/hardware/tools/
go to the same platform_teensy3.txt that has the contents of platform.txt?

@parkerlreed
Copy link

No luck here. Tried the edit but it still throws the same error.

@Robot-Will
Copy link
Owner

I have passed Teensy build with the current version.

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

8 participants