Xtensa-esp32-elf-g++: fatal error: Killed: 9 signal terminated program cc1plus

Hi

Please make it possible to deactivate all the messages regarding update of cards and libraries as it is possible to press update unintentionally...
I unfortunately did press the update unintentionally some days ago and I now get this message when I compile my projects:

xtensa-esp32-elf-g++: fatal error: Killed: 9 signal terminated program cc1plus
compilation terminated.
exit status 1
Compilation error: exit status 1

I have spend hours checking what I could, uninstalled/installed what I could, but nothing works. This is what I really don't like regarding updates - we waste our time with absolutely nothing...!!!

Any suggestions please?

Best regards
B

Easy. Just disable updates in IDE 2. The first thing I did after installation a long time ago - no update messages ever, avoided countless problems. I like to decide when and what I update.

See Arduino IDE 2.0.0 avoid check For Updates - #2 by ptillisch

Hi @Ferrari.

I'm going to ask you to provide the full verbose output from a compilation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to fail.
  6. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  7. Open a forum reply here by clicking the "Reply" button.
  8. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  9. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  10. Move the cursor outside of the code block markup before you add any additional text to your reply.
  11. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.

Click here for attachment instructions

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:

    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

Should that happen again, you can identify which boards were most recently installed/updated. You need to go to the OS-specific Arduino15 directly. On Mac, it's ~/Library/Arduino15, and on Linux it's ~/.arduino15. Then the packages subdirectory

$ cd ~/Library/Arduino15/packages/
$ ls -ltrd */hardware/*/*
drwxr-xr-x@ 16 kenb4  staff  512 Nov 11 12:47 arduino/hardware/avr/1.8.6
drwxr-xr-x@ 17 kenb4  staff  544 Nov 11 12:49 arduino/hardware/renesas_uno/1.2.2
drwxr-xr-x@ 11 kenb4  staff  352 Nov 12 18:35 m5stack/hardware/esp32/2.1.2
drwxr-xr-x@ 17 kenb4  staff  544 Nov 13 14:48 esp8266/hardware/esp8266/3.1.2
drwxr-xr-x@ 14 kenb4  staff  448 Nov 20 16:23 esp32/hardware/esp32/3.0.7

I just updated esp32 to 3.0.7. So you can try rolling that back a version or two.

Same idea for the libraries: they're in the libraries subdirectory of your sketchbook directory.

$ ls -ltr ~/Documents/Arduino/libraries/ | tail
drwxr-xr-x@  14 kenb4  staff   448 Nov 14 15:44 WebServer_ESP32_W6100
drwxr-xr-x@  13 kenb4  staff   416 Nov 14 15:44 WebServer_WT32_ETH01
drwxr-xr-x@  16 kenb4  staff   512 Nov 14 15:44 HTTPS_Server_Generic
drwxr-xr-x@  14 kenb4  staff   448 Nov 14 15:44 WebServer_ESP32_SC_W6100
drwxr-xr-x@  11 kenb4  staff   352 Nov 14 15:44 Functional-Vlpp
drwxr-xr-x@  14 kenb4  staff   448 Nov 14 15:44 WebServer_ESP32_SC_W5500
drwxr-xr-x@  13 kenb4  staff   416 Nov 14 16:10 wolfssl
drwxr-xr-x@  18 kenb4  staff   576 Nov 20 16:20 ArduinoJson
drwxr-xr-x@  11 kenb4  staff   352 Nov 20 16:20 FirebaseClient
drwxr-xr-x@  32 kenb4  staff  1024 Nov 20 16:20 FastLED

I updated three libraries today. If you want to see the current version numbers together (instead of searching in the Library Manager) the version number is inside the library.properties file in each of those directories.

$ for d in $(ls -tr ~/Documents/Arduino/libraries/); do grep -H ^version $d/library.properties; done | tail -n 3
ArduinoJson/library.properties:version=7.2.1
FirebaseClient/library.properties:version=1.4.8
FastLED/library.properties:version=3.9.4

You could also generate these lists to have the "last known good" versions, to help enable reproducible builds. Check them into version control if you're using it.

And to make it complete, on a Windows system it is C:\Users\yourUsername\AppData\Local\Arduino15.