Skip to content

3rd party board not compiling #516

@Steffen-Engel

Description

@Steffen-Engel

sloeber works perfectly with Arduino-Board as specified in arduino/Arduino AVR Boards/1.6.12

After installation of adafruit/1.4.9 any of these boards can't compile, due to not found compiler.
in Release/subdir.mk it is

.ino.cpp.o: ../.ino.cpp
@echo 'Building file: $<'
@echo 'Starting C++ compile'
"/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_ADAFRUIT32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x8001 "-DUSB_MANUFACTURER="Adafruit"" "-DUSB_PRODUCT="32u4 Breakout"" -I"C:\tmp\sloeber\arduinoPlugin\packages\arduino\hardware\avr\1.6.12\cores\arduino" -I"C:\tmp\sloeber\arduinoPlugin\packages\adafruit\hardware\avr\1.4.9\variants\adafruit32u4" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -D__IN_ECLIPSE__=1 -x c++ "$<" -o "$@" -Wall
@echo 'Finished building: $<'
@echo ' '

so there is missing the leading path for /bin/avr-g++

Compared to an arduino board, the path to the compiler is correct:

.ino.cpp.o: ../.ino.cpp
@echo 'Building file: $<'
@echo 'Starting C++ compile'
"C:\tmp\sloeber\arduinoPlugin\tools\arduino\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="Arduino Leonardo"" -I"C:\tmp\sloeber\arduinoPlugin\packages\arduino\hardware\avr\1.6.12\cores\arduino" -I"C:\tmp\sloeber\arduinoPlugin\packages\arduino\hardware\avr\1.6.12\variants\leonardo" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -D__IN_ECLIPSE__=1 -x c++ "$<" -o "$@" -Wall
@echo 'Finished building: $<'
@echo ' '

on stable Sloeber 3.1, windows 7 64, PATH cleaned from existing sh and make
temporary installation of sloeber in c:\tmp\sloeber

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions