Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FastEdTex opened this issue Oct 23, 2024 · 0 comments
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Compilation Related to compilation of Arduino sketches Component: Toolchain The tools used for compilation and uploading to Arduino boards OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug

Comments

@FastEdTex
Copy link

FastEdTex commented Oct 23, 2024

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.

@per1234 per1234 changed the title IDE 2.XX not able to upload sketch to any board on MacBook Pro M2 OS 14.6.1 Compilation fails spuriously: "avr-g++: internal compiler error: Killed: 9 (program cc1plus)" Oct 23, 2024
@per1234 per1234 added Type: Bug OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Component: Toolchain The tools used for compilation and uploading to Arduino boards Component: Compilation Related to compilation of Arduino sketches Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Compilation Related to compilation of Arduino sketches Component: Toolchain The tools used for compilation and uploading to Arduino boards OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants