ESP8266_Standalone compile errors

Which version of the ESP8266 hardware board definition package should I be using? I’ve tried several recent releases, and all result in these compile errors:

Arduino: 1.6.4 (Mac OS X), Board: “Generic ESP8266 Module, 80 MHz, 115200”

Build options changed, rebuilding all
Using library ESP8266WiFi in folder: /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi
Using library Blynk in folder: /Users/accountholder/Documents/Arduino/libraries/blynk-library-master

/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266_Standalone.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266_Standalone.cpp.o
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:15:0,
from ESP8266_Standalone.ino:26:
/Users/accountholder/Documents/Arduino/libraries/blynk-library-master/BlynkApiArduino.h:44:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkApi::processCmd(const void* buff, size_t len)
^
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:16:0,
from ESP8266_Standalone.ino:26:
/Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkProtocol.h:159:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkProtocol::processInput(void)
^
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266WiFi/ESP8266WiFi.cpp.o
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266WiFi/WiFiClient.cpp.o
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiServer.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266WiFi/WiFiServer.cpp.o
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiUdp.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/ESP8266WiFi/WiFiUdp.cpp.o
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266 -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/variants/generic -I/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master -I/Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp -o /var/folders/1n/8y5786k08xj9n800r6bplds00000gn/T/build6608832043524051199.tmp/Blynk/utility/BlynkDebug.cpp.o
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:17:0,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include/ets_sys.h:104:5: error: previous declaration of ‘int atoi(const char*)’ with ‘C++’ linkage
int atoi(const char *nptr);
^
In file included from /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/xtensa-lx106-elf/include/stdint.h:12:0,
from /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/stdint.h:9,
from /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include/c_types.h:8,
from /Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include/ets_sys.h:11,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:17,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/xtensa-lx106-elf/include/stdlib.h:70:5: error: conflicts with new declaration with ‘C’ linkage
int _EXFUN(atoi,(const char *__nptr));
^
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:17:0,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include/ets_sys.h:119:6: error: previous declaration of ‘void ets_intr_lock()’ with ‘C++’ linkage
void ets_intr_lock();
^
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:26:0,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:85:20: error: conflicts with new declaration with ‘C’ linkage
void ets_intr_lock();
^
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:17:0,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/sdk//include/ets_sys.h:120:6: error: previous declaration of ‘void ets_intr_unlock()’ with ‘C++’ linkage
void ets_intr_unlock();
^
In file included from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkDebug.h:26:0,
from /Users/accountholder/Documents/Arduino/libraries/blynk-library-master/utility/BlynkDebug.cpp:10:
/Users/accountholder/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:86:22: error: conflicts with new declaration with ‘C’ linkage
void ets_intr_unlock();
^
Error compiling.

@crosscut
Hey, Arduino for ESP8266 is very fast-evolving :smile:

It looks they did some some changes, so it doesn’t work anymore.
I will take a look at it and update, hopefully tomorrow.

Thank you!

1 Like

I think they’re planning a version update in the next day or three, with significant changes.
As much as I’d like to have this working sooner, I’d most like to have it working with that update.

I also have compile errors, different one than you have. I post them here, maybe they can help.

In file included from /Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:15:0,
from ESP8266_Standalone.ino:26:
/Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkApiArduino.h:44:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkApi::processCmd(const void* buff, size_t len)
^
In file included from /Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:16:0,
from ESP8266_Standalone.ino:26:
/Users/steve/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkProtocol.h:159:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkProtocol::processInput(void)
^

Sketch uses 200,068 bytes (38%) of program storage space. Maximum is 524,288 bytes.

1 Like

@steve, these are not the errors, just the warnings. You have successfully built your sketch. Congrats!
For now, we can’t eliminate those warnings (they are actually needed for better operation of Blynk).

Inside the iOS app, what hardware type should I select using an esp8266 device?
There is no such device in the list, so I don’t know how to use it.
Please let me know.
thank you
marco

I see, well that’s cool. Thank you !

@capofalcone,
Our bad, I see… we forgot to include ESP in the Apps.
But there is a workaround - just select Arduino UNO.
Virtual pins will work, as well as digital operations.
PWM and Analog will probably not work.

We will add ESP to the list with the next update. Sorry for inconvenience.

1 Like

thank you very much, I’ll give it a try.
I’m not so expert, but played with Arduino for a while. What virtual pins are? Never heard before! :flushed:, do you have a link to send me so I can study?
thank you so much!
marco

Hi, any updates about this?

I have the exact same compile errors.

Greetz

Bert

@vhymanskyy, the major release for ESP8266/Arduino is out now, big changes should slow down.
The compile errors seem much as before. Maybe you will have time to take a look?

@crosscut, Yaaaay! So happy to hear that :smile:
Yes definitely will take a look at it in a few days!

Hi,

I tried again with the download of the 1.6.1 version and now it works … only a few warnings.

Regards
Bert

Using Arduino 1.6.4 and the esp8266 for 1.6.4 build installed as per the github, I was able to compile and run, but only after commenting out 2 lines in BlynkDebug.h:

#ifdef ESP8266
 //   #include "ets_sys.h"
 //   #include "os_type.h"
    #include "mem.h"
#else
1 Like

Hello all!

I updated the library and checked that it works.
Please install the latest ESP8266 for Arduino using this guide:

The bug is fixed in the latest Blynk version:

Please note that his version is not released yet (beta) :smile:

Cheers!

1 Like

This works very nicely! Thanks for the rapid fix :smile:

1 Like

file ESP8266WiFi.h is missing

1 Like

@ahmsmits: Please read comments in the sketch.

I have tried to compile the ESP8266_Standalone sketch in Arduino 1.6.5 and get errors which all seem to relate to the same underlying issue. For example

Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:241:62: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%li”, value)+1;

If I search for snprintf I can find a ‘vsnprintf’ being used in other contexts - should these calls in BlynkParam be vsnprintf?

Thanks for any help … at this point I am stuck and can’t proceed at all without being able to compile even the simplest sketch.

Paul

What exactly ESP8266 package for Arduino are you using? Maybe they updated something…