Hi,
I am trying to compile code for a Moteino Mega on a Raspberry Pi4 using Arduino CLI and the Moteino Core found here: https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json
Arduino CLI: arduino-cli Version: 0.6.0 Commit: 3a08b07
arduino-cli.yaml:
proxy_type: auto
sketchbook_path: /home/pi/
arduino_data: /home/pi/.arduino15
board_manager:
additional_urls:
- https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json
Compile command:
arduino-cli compile --fqbn Moteino:avr:MoteinoMEGA /home/pi/MoteTest
Error:
sorry - this program has been built without plugin support
Error during build: build failed: exit status 1
Compile works if I compile as an Arduino board eg:
arduino-cli compile --fqbn arduino:avr:mega /home/pi/MoteTest
Sketch uses 1448 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
Any assistance would be appreciated.
Here's the verbose output - arduino-cli compile --fqbn Moteino:avr:MoteinoMEGA /home/pi/MoteTest -v
Using board 'MoteinoMEGA' from platform in folder: /home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0
Using core 'arduino' from platform in folder: /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1
Detecting libraries used...
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/sketch/MoteTest.ino.cpp -o /dev/null
Generating function prototypes...
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/sketch/MoteTest.ino.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/preproc/ctags_target_for_gcc_minus_e.cpp
/home/pi/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/sketch/MoteTest.ino.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/sketch/MoteTest.ino.cpp.o
Compiling libraries...
Compiling core...
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring_pulse.S -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_pulse.S.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/WInterrupts.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/WInterrupts.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/hooks.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/hooks.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring_analog.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_analog.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring_digital.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_digital.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring_pulse.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_pulse.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/wiring_shift.c -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_shift.c.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/CDC.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/CDC.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/HardwareSerial1.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/HardwareSerial1.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/HardwareSerial.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/HardwareSerial.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/HardwareSerial0.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/HardwareSerial0.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/HardwareSerial2.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/HardwareSerial2.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/HardwareSerial3.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/HardwareSerial3.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/IPAddress.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/IPAddress.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/PluggableUSB.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/PluggableUSB.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Print.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/Print.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Stream.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/Stream.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Tone.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/Tone.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/USBCore.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/USBCore.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/WMath.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/WMath.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/WString.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/WString.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/abi.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/abi.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/main.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/main.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/pi/.arduino15/packages/Moteino/hardware/avr/1.5.0/variants/MoteinoMEGA /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/new.cpp -o /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/new.cpp.o
/home/pi/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-gcc-ar rcs /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/core.a /tmp/arduino-sketch-117E40601649131E28A6D365E23A72B6/core/wiring_pulse.S.o
sorry - this program has been built without plugin support
Error during build: build failed: exit status 1
Could you try with version 1.4.0 of moteino definitions instead of 1.5.0 ? I wonder if your error is simlar to the one I had when trying to compile with visualmicro and 1.5.0 definitons.
see : https://lowpowerlab.com/forum/moteino/unable-to-compile-example-sketch-with-1-5-version-of-boards/
Quote from: Uncle Buzz on December 10, 2019, 06:06:25 PM
Could you try with version 1.4.0 of moteino definitions instead of 1.5.0 ? I wonder if your error is simlar to the one I had when trying to compile with visualmicro and 1.5.0 definitons.
see : https://lowpowerlab.com/forum/moteino/unable-to-compile-example-sketch-with-1-5-version-of-boards/
There is no option that I can find in Arduino CLI to select a different version of the Moteino Core. I suspect the cause of this problem/error might be the same as yours.
I don't know Arduino CLI, but I suppose if you don't have control on board definitions with Arduino CLI it uses the same configuration than Arduino IDE ? Try to change the boards definition in Arduino IDE to moteino 1.4.0
If you can confirm 1.4.0 is wotking, your error log is more verbose and could help felix to find where is the issue.
The whole idea of Arduino CLI is that you can edit, compile and upload code from the command line on a headless computer. There is no Arduino IDE on this computer.
My configuration file for Arduino CLI with the board definition was included in the original post.
Never tried CLI but if it works in the IDE, wouldn't you expect the same exact result from the CLI?
Well, yes you would expect that, but it does not.
Maybe you could replace url link to json moteino definition boards with a link to a local copy where you could remove the 1.5.0 definition since all the previous versions are still in the json file ?
(...)
{
"name": "Moteino AVR Boards",
"architecture": "avr",
"version": "1.4.0",
"category": "Contributed",
"help": { "online": "https://lowpowerlab.com/forum" },
"url": "https://lowpowerlab.github.io/MoteinoCore/Moteino1.4.zip",
"archiveFileName": "Moteino1.4.zip",
"checksum": "SHA-256:230ae19e0794cb6e9340760961cbee3817428b05adc43f1da170ae2b3e3d7915",
"size": "49283",
"boards": [
{"name": "Moteino / Moteino-USB"},
{"name": "MoteinoMEGA / MoteinoMEGA-USB"},
{"name": "MightyHat"},
{"name": "Moteino (8 Mhz)"}
],
"toolsDependencies": [
{
"packager": "arduino",
"name": "avr-gcc",
"version": "4.8.1-arduino5"
},
{
"packager": "arduino",
"name": "avrdude",
"version": "6.0.1-arduino5"
}
]
},
{
"name": "Moteino AVR Boards",
"architecture": "avr",
"version": "1.5.0",
"category": "Contributed",
"help": { "online": "https://lowpowerlab.com/forum" },
"url": "https://lowpowerlab.github.io/MoteinoCore/Moteino1.5.zip",
"archiveFileName": "Moteino1.5.zip",
"checksum": "SHA-256:14bbd56d51a3154ef69bd49f5d9403fc34ebaf725ccd3a1cecd80411e99581a4",
"size": "49423",
"boards": [
{"name": "Moteino / Moteino-USB"},
{"name": "MoteinoMEGA / MoteinoMEGA-USB"},
{"name": "MightyHat"},
{"name": "Moteino (8 Mhz)"}
],
"toolsDependencies": [
{
"packager": "arduino",
"name": "avr-gcc",
"version": "4.8.1-arduino5"
},
{
"packager": "arduino",
"name": "avrdude",
"version": "6.0.1-arduino5"
}
]
},
(...)
I have contemplated doing this but since I actually need to deploy this on quite a few installations I do not really want to do a "hack" on something that should work.
As you have mentioned there seems to be a similar issue with compilation on Visual studio as well, so I do not think it is just an isolated problem.
Hopefully Felix will get around to updating to 1.8.1 soon, that may fix both of our problems.
the goal is to check if it works with 1.4.0 definition and to confirm it's the same issue. It could be a misconfiguration issue or something else. The result of this test could help Felix to solve this issue.
Ok, I can confirm that modifying json to force it to use the 1.4.0 definition works.
Almost two years later this is still a problem. However, unlike OP, I do not know which files I need to edit as a workaround.
My workaround for the error and using arduino-cli was:
arduino-cli core install Moteino:[email protected]I'm using this version of the cli:
arduino-cli Version: 0.21.0 Commit: 10107d24 Date: 2022-02-08T15:05:43ZI'm running on a headless CentOS box.