Skip to content

OSX: Arduino 1.6.2 path change - avr-g++ not located at the correct place #236

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
jipp opened this issue Apr 14, 2015 · 5 comments
Closed
Labels
status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide

Comments

@jipp
Copy link
Contributor

jipp commented Apr 14, 2015

I tried the following using the plugin version 2.2.0.1 and the nightly build (2.4.0.201504090213) of the plugin.

for OSX the Arduino IDE has changed the path.
1.6.1: /Applications/Arduino.app/Contents/Resources/Java/hardware
1.6.2 and upwards: /Applications/Arduino.app/Contents/Java/hardware

setting the preferences in Eclipse:
using the plugin with OSX with 1.6.1 works without problems
using 1.6.2 and above results in "value must be an existing file" message. The version is detected successfully - but compilation is not working anymore.

I changed the preferences per project to match the new folder structure, but compilation shows the following - the path to the avr-g++ is not correct, while the path to the libraries is OK:

21:12:51 **** Incremental Build of configuration Release for project timelapse ****
make all
Building file: ../.ino.cpp
Starting C++ compile
"/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=nightly -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall
/bin/sh: /bin/avr-g++: No such file or directory
make: *** [.ino.cpp.o] Error 127

21:12:52 Build Finished (took 76ms)

@jipp
Copy link
Contributor Author

jipp commented Apr 14, 2015

it might be related to the platform.txt:

1.6.1:
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/

1.6.2 and upwards:
compiler.path={runtime.tools.avr-gcc.path}/bin/

looking at the output above the 'runtime.tools.avr-gcc.path' seems to be empty.

@jantje
Copy link
Member

jantje commented Apr 15, 2015

I never tried 1.6.2 but the 1.6.3 uses
compiler.path={runtime.tools.avr-gcc.path}/bin/
as ArduinoIDE didn't define runtime.tools.avr-gcc.path it doesn't work
I changed
compiler.path={runtime.tools.avr-gcc.path}/bin/
to
#compiler.path={runtime.tools.avr-gcc.path}/bin/
and now it works.

@jantje
Copy link
Member

jantje commented Apr 15, 2015

I made issue arduino/Arduino#2982 on the arduino IDE.
Just for now you can remove the compiler.path from the platform.txt
Note that sam has the same issue.

@jantje
Copy link
Member

jantje commented Apr 15, 2015

and teensy has not

@jantje
Copy link
Member

jantje commented Apr 22, 2015

I removed 1.6.2 and 1.6.3 from the supported list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide
Projects
None yet
Development

No branches or pull requests

2 participants