Skip to content

Compilation fails spuriously: "avr-g++: internal compiler error: Killed: 9 (program cc1plus)" #11997

Description

@FastEdTex

When compiling for UNO R4 WiFi, UNO R3, Nano, or Mega on my MacBook Pro M2, I get an "avr-g++: internal compiler error: Killed: 9 (program cc1plus)" error:

FQBN: arduino:avr:nano:cpu=atmega328old
Using board 'nano' from platform in folder: /Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6

Detecting libraries used...
/Users/edwardunderwood/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /private/var/folders/lv/lxk9nf7n1ks0s5l698yl6mv40000gn/T/arduino/sketches/37ACAEF4D865AE6E43B49B5A23BD8456/sketch/Blink.ino.cpp -o /dev/null
Error while detecting libraries included by /private/var/folders/lv/lxk9nf7n1ks0s5l698yl6mv40000gn/T/arduino/sketches/37ACAEF4D865AE6E43B49B5A23BD8456/sketch/Blink.ino.cpp
Generating function prototypes...
/Users/edwardunderwood/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/edwardunderwood/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /private/var/folders/lv/lxk9nf7n1ks0s5l698yl6mv40000gn/T/arduino/sketches/37ACAEF4D865AE6E43B49B5A23BD8456/sketch/Blink.ino.cpp -o /private/var/folders/lv/lxk9nf7n1ks0s5l698yl6mv40000gn/T/1557648738/sketch_merged.cpp
avr-g++: internal compiler error: Killed: 9 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
exit status 4

Compilation error: exit status 4

Additional context

Discussion:

https://forum.arduino.cc/t/new-ide-install-on-new-macbook-pro-m2-not-working/1307490


I am using macOS OS 14.6.1


I am using Arduino IDE 2.3.3.


The fault does not occur when I compile the same sketch for the same board on my older iMac with "Intel" processor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.)Component: CompilationRelated to compilation of Arduino sketchesComponent: ToolchainThe tools used for compilation and uploading to Arduino boardsOS: OSXSpecific to the Mac OS X (macOS) version of the Arduino IDEType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions