Exit status 1: compilation error for generic ESP8266

A program that compiles well at a friend gives me issues.
I use Arduino 1.8.13 and the latest ESP8266 board definitions (version 3.0.2)

This is what the error screen gives:

Fout bij het compileren voor board Generic ESP8266 Module
Index error: could not find referenced tool name=avrdude version=6.3.0-arduino17or18 packager=arduino

I suspect something caused by the last line above.

The program is 1398 lines of code, not too sure how to include that here?

seems like an installation issue of your IDE.

Di you try to install the latest version?

I just tried on my laptop, IDE 1.8.12: there I have no issue.

So the IDE version is not the problem.

Per this topic pert I removed the contents of the Arduino15 folder to a backup location, restarted Arduino and selected Tools > Boards > Board Manager to get the updates, and tried to compile: same error.

What could cause this problem?

Does your friend use core version 3.0.2 ?

Hi ZX80, good that you ask.

On my laptop (where it compiles) there is ESP8266 version 2.5.0 installed.
I changed on my pc back from 3.0.2 to version 2.5.0 and it compiles.

Why would that be? What could be wrong on this program that makes it not to compile on the latest version?

I will ask my friend to what version his ESP8266 boards definitions are set and let you know here.

This message is completely unrelated to your compilation failure.

It is caused by having this URL in your "Additional Boards Manager URLs" preference:

http://drazzy.com/package_drazzy.com_index.json

The full information about the issue is here:

But all you need to know is that it doesn't cause any problems at all other than annoying you and DrAzzy is working to fix it soon. So please just ignore it.


So now we know one thing that is not causing the complilation, I think we should proceed by gathering more information.

I'm wondering if there is more error output than you posted. Please do this:

  1. When you encounter an error, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
  2. Open a forum reply here by clicking the Reply button.
  3. Click the </> 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.
    Code block
  4. Press Ctrl+V.
    This will paste the compilation output into the code block.
  5. Move the cursor outside of the code block markup before you add any additional text to your reply.
  6. Click the Reply button to post the output.

Oh great in0! I use Spence Kondé's ATtinyCore a lot, thank you very much for that github reference.

Now to the compile error. I have several computers with different IDE's (1.8.9, 1.8.13, 1.8.19, but they all present the same pattern: esp8266 board definition 2.x.x compiles fine, 3.x.x not.
What they do have in common is that Arduino sketches, libraries are stored in Google Drive.

A friend of mine, using a fairly new install (1.8.13) and also Google Drive for his sketches and libraries, can compile for both 2.x.x and 3.x.x esp8266 board definitions.

I examined ../"users"/AppData/local/Arduino15/packages/esp8266/hardware/esp8266, I deleted the esp8266 folder when Arduino not active, restarted, opened Boards Manager and let the download run its course, made sure 3.0.2 is active, but same issue.

Here is compile error output, it is a lot and some in Flemish, but if you want translation please let me know:

Arduino: 1.8.13 (Windows 10), Board:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 4MB (FS:2MB OTA:~1019KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Erik Arckens\AppData\Local\Arduino15\packages -hardware C:\Users\Erik Arckens\Google Drive\documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Erik Arckens\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10813 -build-path C:\Users\ERIKAR~1\AppData\Local\Temp\arduino_build_189714 -warnings=more -build-cache C:\Users\ERIKAR~1\AppData\Local\Temp\arduino_cache_719425 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.python3.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -verbose C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Erik Arckens\AppData\Local\Arduino15\packages -hardware C:\Users\Erik Arckens\Google Drive\documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Erik Arckens\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10813 -build-path C:\Users\ERIKAR~1\AppData\Local\Temp\arduino_build_189714 -warnings=more -build-cache C:\Users\ERIKAR~1\AppData\Local\Temp\arduino_cache_719425 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.python3.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -verbose C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino

Using board 'generic' from platform in folder: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Using core 'esp8266' from platform in folder: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Detecting libraries used...

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for SoftwareSerial.h: [espsoftwareserial-master@1.0 SoftwareSerial@6.12.7 arduino_30885@6.9.0]

ResolveLibrary(SoftwareSerial.h)

  -> candidates: [espsoftwareserial-master@1.0 SoftwareSerial@6.12.7 arduino_30885@6.9.0]

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for Nextion.h: [Nextion]

ResolveLibrary(Nextion.h)

  -> candidates: [Nextion]

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

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

ResolveLibrary(EEPROM.h)

  -> candidates: [EEPROM@1.0 EEPROM]

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src\\SoftwareSerial.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion\\Nextion.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM\\EEPROM.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Bezig met het compileren van de schets...

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/signing.py" --mode header --publickey "C:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2/public.key" --out "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core/Updater_Signing.h"

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -Wall -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp" -o "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\sketch\\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino.cpp.o"

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void setup()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:317:20: warning: comparison with string literal results in unspecified behavior [-Waddress]

  317 |   if (PowerUpState == "ON")

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void loop()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:340:32: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]

  340 |   if (DCCcurrentTime - DCCtime >= 30000 | DCCflag == 1)

      |       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void processNextionPage()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:613:17: warning: unnecessary parentheses in declaration of 'nextionCommand1' [-Wparentheses]

  613 |           String(nextionCommand1) = ("TO" + String(turnoutSlot+1));

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:614:17: warning: unnecessary parentheses in declaration of 'nextionCommand2' [-Wparentheses]

  614 |           String(nextionCommand2) = (".picc=" + String(PIC));

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:615:17: warning: unnecessary parentheses in declaration of 'nextionCommand' [-Wparentheses]

  615 |           String(nextionCommand) = (nextionCommand1 + nextionCommand2);

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:664:17: warning: unnecessary parentheses in declaration of 'nextionCommand1' [-Wparentheses]

  664 |           String(nextionCommand1) = ("TO" + String(turnoutSlot+1));

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:665:17: warning: unnecessary parentheses in declaration of 'nextionCommand2' [-Wparentheses]

  665 |           String(nextionCommand2) = (".picc=" + String(PIC));

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:666:17: warning: unnecessary parentheses in declaration of 'nextionCommand' [-Wparentheses]

  666 |           String(nextionCommand) = (nextionCommand1 + nextionCommand2);

      |                 ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void getLocoAddress()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1123:30: warning: statement has no effect [-Wunused-value]

 1123 |     LocoSpeed[ActiveAddress] == 0;

      |     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void getAddresses()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1157:7: warning: unused variable 'xxx' [-Wunused-variable]

 1157 |   int xxx = 0;

      |       ^~~

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void initNextionPageA()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1375:11: warning: unnecessary parentheses in declaration of 'nextionCommand1' [-Wparentheses]

 1375 |     String(nextionCommand1) = ("TO" + String(slotNum));

      |           ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1376:11: warning: unnecessary parentheses in declaration of 'nextionCommand2' [-Wparentheses]

 1376 |     String(nextionCommand2) = (".picc=" + String(TOPic));

      |           ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1377:11: warning: unnecessary parentheses in declaration of 'nextionCommand' [-Wparentheses]

 1377 |     String(nextionCommand) = (nextionCommand1 + nextionCommand2);

      |           ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino: In function 'void initNextionPageB()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1393:11: warning: unnecessary parentheses in declaration of 'nextionCommand1' [-Wparentheses]

 1393 |     String(nextionCommand1) = ("TO" + String(slotNum));

      |           ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1394:11: warning: unnecessary parentheses in declaration of 'nextionCommand2' [-Wparentheses]

 1394 |     String(nextionCommand2) = (".picc=" + String(TOPic));

      |           ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\DCCpp_Nextion_Throttle_2D_V5.00_Beta2\DCCpp_Nextion_Throttle_2D_V5.00_Beta2.ino:1395:11: warning: unnecessary parentheses in declaration of 'nextionCommand' [-Wparentheses]

 1395 |     String(nextionCommand) = (nextionCommand1 + nextionCommand2);

      |           ^

Compiling libraries...

Compiling library "SoftwareSerial"

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -Wall -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src\\SoftwareSerial.cpp" -o "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\libraries\\SoftwareSerial\\SoftwareSerial.cpp.o"

Compiling library "Nextion"

"C:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714/core" -c -Wall -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion" "-IC:\\Users\\Erik Arckens\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\EEPROM" "C:\\Users\\Erik Arckens\\Google Drive\\documents\\Arduino\\libraries\\Nextion\\Nextion.cpp" -o "C:\\Users\\ERIKAR~1\\AppData\\Local\\Temp\\arduino_build_189714\\libraries\\Nextion\\Nextion.cpp.o"

C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\Nextion\Nextion.cpp: In member function 'uint8_t Nextion::pageId()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\Nextion\Nextion.cpp:302:7: warning: unused variable 'a' [-Wunused-variable]

  302 |   int a = -1;

      |       ^

C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\Nextion\Nextion.cpp: In member function 'boolean Nextion::ack()':

C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\Nextion\Nextion.cpp:119:1: error: control reaches end of non-void function [-Werror=return-type]

  119 | }//end

      | ^

cc1plus.exe: some warnings being treated as errors

Meerdere bibliotheken gevonden voor "EEPROM.h"

Gebruikt: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\EEPROM

Niet gebruikt: C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\EEPROM

Meerdere bibliotheken gevonden voor "SoftwareSerial.h"

Gebruikt: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial

Niet gebruikt: C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\espsoftwareserial-master

Niet gebruikt: C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\arduino_30885

Bibliotheek SoftwareSerial op versie 6.12.7 in map: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial  wordt gebruikt

Bibliotheek Nextion in map: C:\Users\Erik Arckens\Google Drive\documents\Arduino\libraries\Nextion (legacy) wordt gebruikt

Bibliotheek EEPROM op versie 1.0 in map: C:\Users\Erik Arckens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\EEPROM  wordt gebruikt

exit status 1

Fout bij het compileren voor board Generic ESP8266 Module


Solved.

Deleted the full program and the ../"user"/AppData/local/Arduino15 folder.

Reinstall (8.1.13 in my case).
Recreation of Arduino15 through the Boards Manager (after installing the boards I need in Preferences/Additional Boards Manager).
This also means editing most board.txt files for the boards definitions (I do not want Leonardo, Wemos, ...; just Uno, Pro Mini, generic esp8266, nodemcu, and a few others).

But I am curious as to what did cause the compilation error: I hope something can be found in my compilation error output above?

The answer for why you had the error before, and not after deleting that folder is here:

https://github.com/esp8266/Arduino/blob/3.0.2/platform.txt#L24-L28

compiler.warning_flags=-w -Werror=return-type
compiler.warning_flags.none=-w -Werror=return-type
compiler.warning_flags.default=-Werror=return-type
compiler.warning_flags.more=-Wall -Werror=return-type
compiler.warning_flags.all=-Wall -Wextra -Werror=return-type

These platform properties define the flags that should be passed to the compiler depending on the user's "Compiler Warnings" setting in the File > Preferences dialog of the Arduino IDE.

The -Werror=return-type flag promotes what would normally be a "control reaches end of non-void function" compiler warning to an error. This is a useful technique for enforcing best practices on lazy developers who would otherwise ignore important compiler warnings about their bad code.

Here is a minimal sketch that demonstrates code that would produce this warning/error:

void setup() {}
void loop() {}
int foo() {
  if (false) {
    return 0;
  }
}

Notice that there is an exit point from foo() that doesn't return an int as promised by the function signature.

So this explains the cause of the error. But what is the cause for there being no error now?

The reason is that the default "Compiler Warnings" preference setting is "None". The preferences are stored in your ../"user"/AppData/local/Arduino15/preferences.txt file, so when you deleted ../"user"/AppData/local/Arduino15 you reset all your preferences to the defaults, and thus changed the "Compiler Warnings" setting to "None".

It is kind of confusing because even the compiler.warning_flags.none property has the -Werror=return-type flag. But it also has the -w flag, which turns off all warnings. So this nullifies the -Werror=return-type. This results in a confusing situation where the compilation status depends on a preferences setting that we would expect to only control the verbosity of output.

If you change your Compiler Warnings setting to "Default" or higher, the error will come back.

Fantastic explanation! Thank you in0!

But then why would different versions of the ESP8266 board definitions give different compilation results when the Compiler Warnings flag is set?
ESP8266 2.x.x compiles ok, 3.x.x not?

The -Werror=return-type flag was added to the properties in the 3.0.1 release: