Fatal error: sys/cdefs.h: No such file or directory

Hey, is anyone else getting this error?

fatal error: sys/cdefs.h: No such file or directory

Mine just showed up the other day...happening on multiple PCs. not even sure where this is included. Running "IRremote.h" and "RTClib.h"

More complete error message:

In file included from /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:FnameLname/libraries_v2/EEPROM/EEPROM.cpp:27:0:

/home/builder/opt/libraries/latest/asynctcp_rp2040w_1_2_0/src/c_types.h:31:10: fatal error: sys/cdefs.h: No such file or directory

#include <sys/cdefs.h>

Thoughts?

What board are you using?

It is happening on both Uno and Mega compiles.

Hi @kevinkirechuk. I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Please do this:

  1. From the menu on the left side of the "Arduino Web Editor" window, click "Preferences".

  2. Check the box next to "☐ Always show output panel**" in the preferences panel.

  3. Check the box next to "☐ Console: Show verbose output**" in the preferences panel.

  4. Open the sketch that produced the error.

  5. Click the button ("Verify") in the sketch panel.

  6. Wait for the compilation to fail.

  7. Click the icon in the top right corner of the black console window at the bottom of the "Arduino Web Editor" window that looks like two pieces of paper.
    image

  8. In a forum reply here, click on the reply field.

  9. Click the <CODE/> button on the forum toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the compilation output is correctly formatted.
    codetags

  10. Press Ctrl+V.
    This will paste the compilation output between the code tags.

  11. Move the cursor outside of the code tags before you add any additional text to your reply.

  12. 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:

  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 (image) on the post composer toolbar:
    Upload icon on toolbar
    A dialog will open.
  6. In the dialog, select the .txt file you saved.
  7. Click the Open button.
  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.

/usr/local/bin/arduino-cli compile --fqbn arduino:avr:mega:cpu=atmega2560 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/3018871405/build --build-path /tmp/arduino-build-F1C6EFD9EF3321EDC9E210D16A176884 -v --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Adafruit BusIO --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Adafruit GFX Library --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ArduinoOTA --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/DNSServer --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266 --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266AVRISP --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266HTTPClient --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266HTTPUpdateServer --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266LLMNR --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266NetBIOS --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266SSDP --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266WebServer --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266WiFi --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266WiFiMesh --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266httpUpdate --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/ESP8266mDNS --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/FastLED --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/GDBStub --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Hash --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/I2S --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/LittleFS(esp8266) --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/NetDump --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/PCM --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RGB matrix Panel --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RadioHead --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/SD(esp8266) --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/SDFS --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/SPI --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/SPISlave --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Servo(esp8266) --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/TFT_Touch_Shield_V2 --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/TMRpcm --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Ticker --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/lwIP_PPP --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/lwIP_enc28j60 --library /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/lwIP_w5500 /tmp/3018871405/K3x4_FL_Working

FQBN: arduino:avr:mega

Using board 'mega' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6

Using core 'arduino' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6

Detecting libraries used...

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega /tmp/arduino-build-F1C6EFD9EF3321EDC9E210D16A176884/sketch/K3x4_FL_Working.ino.cpp -o /dev/null

Alternatives for IRremote.h: [IRremote@4.1.2 VEGA_IRremote@1.0.0]

ResolveLibrary(IRremote.h)

-> candidates: [IRremote@4.1.2 VEGA_IRremote@1.0.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src /tmp/arduino-build-F1C6EFD9EF3321EDC9E210D16A176884/sketch/K3x4_FL_Working.ino.cpp -o /dev/null

Alternatives for RTClib.h: [RTClib@2.1.1 RTClib@1.13.0 BasicsLibrary@1.1 RTCLib by NeiroN@1.6.3]

ResolveLibrary(RTClib.h)

-> candidates: [RTClib@2.1.1 RTClib@1.13.0 BasicsLibrary@1.1 RTCLib by NeiroN@1.6.3]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib /tmp/arduino-build-F1C6EFD9EF3321EDC9E210D16A176884/sketch/K3x4_FL_Working.ino.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib/RTClib.cpp -o /dev/null

Alternatives for Wire.h: [Wire@1.0 Wire@1.0]

ResolveLibrary(Wire.h)

-> candidates: [Wire@1.0 Wire@1.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib/RTClib.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire/Wire.cpp -o /dev/null

Alternatives for twi.h: [ArxRobot Library@3.1.0]

ResolveLibrary(twi.h)

-> candidates: [ArxRobot Library@3.1.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire/Wire.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/ArxRobot.cpp -o /dev/null

Alternatives for EEPROM.h: [EEPROM@1.0 arduino-NVM@0.9.1 Hello Drum@0.7.7 EEPROM@2.0]

ResolveLibrary(EEPROM.h)

-> candidates: [EEPROM@1.0 arduino-NVM@0.9.1 Hello Drum@0.7.7 EEPROM@2.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/ArxRobot.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/FuelGauge.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/Motor.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/MotorDriver.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/Packet.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/TelecomClass.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/Watchdog.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/servo3DoT.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src/twi.cpp -o /dev/null

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM/EEPROM.cpp -o /dev/null

Alternatives for debug.h: [STM32duino SPBTLE-RF@1.0.3 STM32duino I-NUCLEO-LRWAN1@1.0.1 EloquentSurveillance@1.0.15 ESP8266 Microgear@1.2.4 EspATMQTT@1.0.0 Fetch@0.1.1 RCReceiver@1.4.0 Grandeur@1.0.6 Portenta_H7_AsyncTCP@1.4.0 sunezy-mon@1.0.2 AsyncTCP_RP2040W@1.2.0]

ResolveLibrary(debug.h)

-> candidates: [STM32duino SPBTLE-RF@1.0.3 STM32duino I-NUCLEO-LRWAN1@1.0.1 EloquentSurveillance@1.0.15 ESP8266 Microgear@1.2.4 EspATMQTT@1.0.0 Fetch@0.1.1 RCReceiver@1.4.0 Grandeur@1.0.6 Portenta_H7_AsyncTCP@1.4.0 sunezy-mon@1.0.2 AsyncTCP_RP2040W@1.2.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM -I/home/builder/opt/libraries/latest/rcreceiver_1_4_0 /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM/EEPROM.cpp -o /dev/null

Alternatives for c_types.h: [Portenta_H7_AsyncTCP@1.4.0 AsyncTCP_RP2040W@1.2.0]

ResolveLibrary(c_types.h)

-> candidates: [Portenta_H7_AsyncTCP@1.4.0 AsyncTCP_RP2040W@1.2.0]

/home/builder/.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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/mega -I/home/builder/opt/libraries/latest/irremote_4_1_2/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire -I/home/builder/opt/libraries/latest/arxrobot_library_3_1_0/src -I/mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM -I/home/builder/opt/libraries/latest/rcreceiver_1_4_0 -I/home/builder/opt/libraries/latest/asynctcp_rp2040w_1_2_0/src /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM/EEPROM.cpp -o /dev/null

Alternatives for sys/cdefs.h: []

ResolveLibrary(sys/cdefs.h)

-> candidates: []

Using library IRremote at version 4.1.2 in folder: /home/builder/opt/libraries/irremote_4_1_2

Using library RTClib at version 1.13.0 in folder: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib

Using library Wire at version 1.0 in folder: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire

Using library ArxRobot Library at version 3.1.0 in folder: /home/builder/opt/libraries/arxrobot_library_3_1_0

Using library EEPROM at version 1.0 in folder: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM

Using library RCReceiver at version 1.4.0 in folder: /home/builder/opt/libraries/rcreceiver_1_4_0

Using library AsyncTCP_RP2040W at version 1.2.0 in folder: /home/builder/opt/libraries/asynctcp_rp2040w_1_2_0

Used library Version Path

IRremote 4.1.2 /home/builder/opt/libraries/irremote_4_1_2

RTClib 1.13.0 /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib

Wire 1.0 /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire

ArxRobot Library 3.1.0 /home/builder/opt/libraries/arxrobot_library_3_1_0

EEPROM 1.0 /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM

RCReceiver 1.4.0 /home/builder/opt/libraries/rcreceiver_1_4_0

AsyncTCP_RP2040W 1.2.0 /home/builder/opt/libraries/asynctcp_rp2040w_1_2_0

Used platform Version Path

arduino:avr 1.8.6 /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6

In file included from /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM/EEPROM.cpp:27:0:

/home/builder/opt/libraries/latest/asynctcp_rp2040w_1_2_0/src/c_types.h:31:10: fatal error: sys/cdefs.h: No such file or directory

#include <sys/cdefs.h>

^~~~~~~~~~~~~

compilation terminated.

Multiple libraries were found for "debug.h"

Used: /home/builder/opt/libraries/rcreceiver_1_4_0

Not used: /home/builder/opt/libraries/stm32duino_spbtle_rf_1_0_3

Not used: /home/builder/opt/libraries/stm32duino_i_nucleo_lrwan1_1_0_1

Not used: /home/builder/opt/libraries/eloquentsurveillance_1_0_15

Not used: /home/builder/opt/libraries/esp8266_microgear_1_2_4

Not used: /home/builder/opt/libraries/espatmqtt_1_0_0

Not used: /home/builder/opt/libraries/fetch_0_1_1

Not used: /home/builder/opt/libraries/grandeur_1_0_6

Not used: /home/builder/opt/libraries/portenta_h7_asynctcp_1_4_0

Not used: /home/builder/opt/libraries/sunezy_mon_1_0_2

Not used: /home/builder/opt/libraries/asynctcp_rp2040w_1_2_0

Multiple libraries were found for "c_types.h"

Used: /home/builder/opt/libraries/asynctcp_rp2040w_1_2_0

Not used: /home/builder/opt/libraries/portenta_h7_asynctcp_1_4_0

Multiple libraries were found for "IRremote.h"

Used: /home/builder/opt/libraries/irremote_4_1_2

Not used: /home/builder/opt/libraries/vega_irremote_1_0_0

Multiple libraries were found for "RTClib.h"

Used: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/RTClib

Not used: /home/builder/opt/libraries/rtclib_2_1_1

Not used: /home/builder/opt/libraries/basicslibrary_1_1_0

Not used: /home/builder/opt/libraries/rtclib_by_neiron_1_6_3

Multiple libraries were found for "Wire.h"

Used: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/Wire

Not used: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire

Multiple libraries were found for "EEPROM.h"

Used: /mnt/create-efs/webide/bd/1c/bd1c7019d0044726f4db859a82dbb529:kevinkirechuk/libraries_v2/EEPROM

Not used: /home/builder/opt/libraries/arduino_nvm_0_9_1

Not used: /home/builder/opt/libraries/hello_drum_0_7_7

Not used: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/EEPROM

Error during build: exit status 1

This part of the output makes the problem a bit more clear:

You imported a library named EEPROM to your Arduino Cloud account. That library was written for use with boards of some other architecture and is incompatible with the AVR architecture of the Uno and Mega boards you are compiling for.

There is a pre-installed EEPROM library specifically made for use with those boards.

When multiple libraries contain a file with filename matching an #include directive in your sketch code or one of its dependencies, Arduino Cloud tries to pick the best library to use. The algorithm it uses to do this is pretty good so usually it is able to pick the right library. But sometimes it doesn't pick the right one. This is a case where it didn't pick the right one. The problem is that the libraries you import are given a higher priority than the preinstalled EEPROM library. So by importing this library you caused this problem.

The most simple solution would be to delete the imported EEPROM library from your account. So the question is whether you have a need to keep that library. It might be that you imported some random library at some point while flailing around trying to fix a compilation error. In this case, you should just delete it. But it is also possible that you have a sketch that requires this specific library and you imported it for that specific reason.

So please tell us about why you imported this EEPROM library so that we can provide you with the appropriate advice for solving this problem.

I was working with ESP32 trying to get it to work as I did with my ESP8266. when I couldn't get it to work I ended up installing different modules.

I have removed my ESP32 board from my Arduino editor but no luck. When I check my installed libraries I do see this:

Arduino Uno Wifi Dev ED Library. However this is the only library I cannot uninstall.

Would this library be the cause?

Suggestions?

I have removed the libraries that were causing issues. I am guessing I was trying to use the web editor for the ESP32. However I normally use the local install editor for my WIFI chips.

Everything seems to be working now. In the end it really was a simple as removing the newly installed libraries. However I don't directly remember installing those libraries.

For now should be good. Thanks for the help.

1 Like

You are welcome. I'm glad it is working now. Thanks for taking the time to post an update.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.