# XOD-dev/esp8266 in 0.32.1 compiler Error

**URL:** <https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035>\
**Category:** Install/Upload Problems\
**Created:** [December 7, 2019, 11:43pm UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035 "2019-12-07T23:43:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![13uli](https://avatars.discourse-cdn.com/v4/letter/1/41988e/32.png) [@13uli](https://forum.xod.io/u/13uli)\
**Post date:** [December 7, 2019, 11:43pm UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035/1 "2019-12-07T23:43:53Z")

</div>

Hi XODers,  
trying to deploy the example get ips from XOD-dev/esp8266 in version 0.32.1,

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/552ac1ad6f9ad670139dfb7b23d7e0cb52d05b5c.png)

I received the following error message:  
What can be done about it?

```auto
Begin compiling code for the board NodeMCU 1.0 (ESP-12E Module) 📦

Using board 'nodemcuv2' from platform in folder: C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3
Using core 'esp8266' from platform in folder: C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3

Detecting libraries used...

"C:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D __ets__ -DICACHE_FLASH -U __STRICT_ANSI__"-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/lwip2/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DDEBUG_ESP_PORT=Serial -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DESP8266 "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\cores\\esp8266" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\variants\\nodemcu" "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\sketch\\xod_1575761210762_sketch.ino.cpp" -o nul

Alternatives for ESP8266UART.h: [ESP8266UART]
ResolveLibrary(ESP8266UART.h)
  -> candidates: [ESP8266UART]

"C:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D __ets__ -DICACHE_FLASH -U __STRICT_ANSI__"-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/lwip2/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DDEBUG_ESP_PORT=Serial -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DESP8266 "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\cores\\esp8266" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\variants\\nodemcu" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\xod_temp_sketchbooknRj9J1\\libraries\\ESP8266UART" "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\sketch\\xod_1575761210762_sketch.ino.cpp" -o nul

Generating function prototypes...

"C:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D __ets__ -DICACHE_FLASH -U __STRICT_ANSI__"-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/lwip2/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DDEBUG_ESP_PORT=Serial -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DESP8266 "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\cores\\esp8266" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\variants\\nodemcu" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\xod_temp_sketchbooknRj9J1\\libraries\\ESP8266UART" "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\sketch\\xod_1575761210762_sketch.ino.cpp" -o "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Users\\PC\\xod\\ __packages__ \\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...
"C:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D __ets__ -DICACHE_FLASH -U __STRICT_ANSI__"-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/lwip2/include" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DDEBUG_ESP_PORT=Serial -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DESP8266 "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\cores\\esp8266" "-IC:\\Users\\PC\\xod\\ __packages__ \\packages\\esp8266\\hardware\\esp8266\\2.4.3\\variants\\nodemcu" "-IC:\\Users\\PC\\AppData\\Local\\Temp\\xod_temp_sketchbooknRj9J1\\libraries\\ESP8266UART" "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\sketch\\xod_1575761210762_sketch.ino.cpp" -o "C:\\Users\\PC\\AppData\\Local\\Temp\\arduino-sketch-129D758500A1CA313BA76BBC48976453\\sketch\\xod_1575761210762_sketch.ino.cpp.o"

In file included from C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266/esp8266_peri.h:24:0,
                 from C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266/Arduino.h:38,
                 from C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\xod_1575761210762_sketch\xod_1575761210762_sketch.ino:18:
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include/c_types.h:89:66: error: 'const char OK []' redeclared as different kind of symbol
 #define ICACHE_RODATA_ATTR __attribute__ ((section(".irom.text")))
                                                                  ^
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266/pgmspace.h:13:21: note: in expansion of macro 'ICACHE_RODATA_ATTR'
 #define PROGMEM ICACHE_RODATA_ATTR
                     ^
C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART/ESP8266UART.h:6:17: note: in expansion of macro 'PROGMEM'
 const char OK[] PROGMEM = "OK";
                 ^
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include/c_types.h:71:5: error: previous declaration of 'STATUS OK'
     OK = 0,
     ^
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include/c_types.h:89:66: error: 'const char FAIL []' redeclared as different kind of symbol
 #define ICACHE_RODATA_ATTR __attribute__ ((section(".irom.text")))
                                                                  ^
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266/pgmspace.h:13:21: note: in expansion of macro 'ICACHE_RODATA_ATTR'
 #define PROGMEM ICACHE_RODATA_ATTR
                     ^
C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART/ESP8266UART.h:7:19: note: in expansion of macro 'PROGMEM'
 const char FAIL[] PROGMEM = "FAIL";
                   ^
C:\Users\PC\xod\ __packages__ \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include/c_types.h:72:5: error: previous declaration of 'STATUS FAIL'
     FAIL,
     ^
<command-line>:0:9: error: expected identifier before numeric constant
C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART/ESP8266UART.h:50:7: note: in expansion of macro 'ESP8266'
 class ESP8266 {
       ^
<command-line>:0:9: error: expected unqualified-id before numeric constant
C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART/ESP8266UART.h:50:7: note: in expansion of macro 'ESP8266'
 class ESP8266 {
       ^
C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\xod_1575761210762_sketch\xod_1575761210762_sketch.ino:5334:28: error: expected declaration before end of line
 #pragma GCC diagnostic push
                            ^

Multiple libraries were found for "ESP8266UART.h"
 Used: C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART

Using library ESP8266UART in folder: C:\Users\PC\AppData\Local\Temp\xod_temp_sketchbooknRj9J1\libraries\ESP8266UART (legacy)

Error: exit status 1
Compilation failed.
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

```

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 8, 2019, 12:11am UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035/2 "2019-12-08T00:11:41Z")

</div>

you tried changing node uart-1 to uart or uart-0?

---

<div class="post-metadata">

**Author:** ![13uli](https://avatars.discourse-cdn.com/v4/letter/1/41988e/32.png) [@13uli](https://forum.xod.io/u/13uli)\
**Post date:** [December 8, 2019, 12:22am UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035/3 "2019-12-08T00:22:29Z")

</div>

yes I did, but the error message ist still the same

---

<div class="post-metadata">

**Author:** ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)\
**Post date:** [December 9, 2019, 10:27am UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035/4 "2019-12-09T10:27:01Z")

</div>

This might be a bit counterintuitive, but xod-dev/esp8266 is for communicating with external esp8266 from an Arduino board.  
For uploading directly to NodeMCU, use xod-dev/esp8266-mcu.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 14, 2020, 8:37am UTC](https://forum.xod.io/t/xod-dev-esp8266-in-0-32-1-compiler-error/3035/5 "2020-07-14T08:37:14Z")

</div>

Closed on July 14, 2020, 8:37am UTC

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