Closed gbataille closed 3 years ago
Hi @gbataille the problem is shown here:
Error during build: fork/exec /Users/gbataille/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++: bad CPU type in executable
Note the avr-gcc version: 4.9.2-atmel3.5.3-arduino2. This is a very outdated version. Support for 32-bit applications was dropped from macOS in the 10.15 release. Arduino rebuild the macOS toolchains to 64-bit in response (https://github.com/arduino/Arduino/issues/8974), but this version of avr-gcc dates from before that time.
So the Controllino boards platform maintainers will simply need to make a new release that uses the modern AVR toolchain. Information about that here: https://arduino.github.io/arduino-cli/dev/package_index_json-specification/#platforms-definitions
Awesome, thanks. I guessed there was some instant knowledge that could be had by just asking the right person :)
I'll push the information to them.
Thanks for your super quick answer.
Hello this is Pedro from Controllino,
Also we have observed the similar issue with avrdude version, we are currently working on it but until the board support gets updated this can be a solution:
This should force the Arduino IDE to use a different version of avrdude, similar solution can be applied to any package or tool version just by seen which one is used while compiling or uploading to an Arduino UNO or MEGA.
Best Regards 👍
Bug Report
Current behavior
Expected behavior
Compilation should work
Environment
arduino-cli version
):arduino-cli alpha Version: 0.18.3 Commit: d710b642 Date: 2021-05-21T17:11:27Z
Additional context
Hi everyone,
I understand that you are not responsible for the support of all the boards. That being said, I have a Controllino board (that is actually an enhanced atmega). It works well with Arduino IDE 1.8. However, with both arduino IDE 2.0 and arduino-cli, I get the above error
I have raised the issue with the controllino guys. They have not worked on compatibility yet but they are surprised about this error, thinking that the compilation command looks good. See github.com/CONTROLLINO-PLC/CONTROLLINO_Library/issues/46
I suspect this has something to do with the configuration file they provide for the board. Would you be able to maybe quickly see what's the issue? I'm actually hoping that you'll have the answer or a hint just by looking at the trace
Thanks