MicroCore icon indicating copy to clipboard operation
MicroCore copied to clipboard

Installation with arduino-cli failed

Open ArminJo opened this issue 5 years ago • 0 comments

Hi Hans, I maintain a lot of arduino libraries and now got the request to support ATmega8. Therfore I was forced to use your package. For my CI I use a arduino-cli, as for all the other platforms. But I did not work with your package. I run a compile check for an ARmega8 for the IRMP library and I got the error:

 arduino-cli compile --verbose --warnings all --fqbn MiniCore:avr:8:bootloader=uart0,eeprom=keep,BOD=2v7,LTO=Os_flto,clock=16MHz_external  ./examples/SimpleSender
Error: Compile of  SimpleSender  failed
Using board '8' from platform in folder: /github/home/.arduino15/packages/MiniCore/hardware/avr/2.0.7
Using core 'MCUdude_corefiles' from platform in folder: /github/home/.arduino15/packages/MiniCore/hardware/avr/2.0.7
Detecting libraries used...
/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega8 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega8 -DARDUINO_ARCH_AVR -Wextra -flto -g -I/github/home/.arduino15/packages/MiniCore/hardware/avr/2.0.7/cores/MCUdude_corefiles -I/github/home/.arduino15/packages/MiniCore/hardware/avr/2.0.7/variants/standard /tmp/arduino-sketch-91B057542E2706E283497D445053E20E/sketch/SimpleSender.ino.cpp -o /dev/null
Error during build: fork/exec /bin/avr-g++: no such file or directory 

I guess it is because you did not specify tool dependencies for your package in your index.json "toolsDependencies": []

I also maintain a package and I use:

          "toolsDependencies": [
            {
              "packager": "arduino",
              "name": "avr-gcc",
              "version": "7.3.0-atmel3.6.1-arduino5"
            },
            {
              "packager": "digistump",
              "name": "micronucleus",
              "version": "2.0a4"
            }
          ]

With this, everything runs fine with arduino cli as you can see here: I tried to install the arduino package explicitely for your board, but this does not fix the error. Please consider to add dependencies to your json file. Thanks Armin

ArminJo avatar Oct 28 '20 13:10 ArminJo