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

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

Closed
jipp opened this Issue Apr 14, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@jipp
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

This comment has been minimized.

Show comment
Hide comment
@jipp

jipp Apr 14, 2015

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@jantje

jantje Apr 15, 2015

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@jantje

jantje Apr 15, 2015

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@jantje

jantje Apr 15, 2015

Member

and teensy has not

Member

jantje commented Apr 15, 2015

and teensy has not

@jantje

This comment has been minimized.

Show comment
Hide comment
@jantje

jantje Apr 22, 2015

Member

I removed 1.6.2 and 1.6.3 from the supported list.

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