Can not build WiFI example on nodeMCU v3. Error building native_c driver



Trying to build and upload WiFi example. Build fails on native_c compilation phase.

Example is basically untouched:

import streams
#import the wifi interface
from wireless import wifi
#import wifi support
from espressif.esp8266wifi import esp8266wifi as wifi_driver
#from espressif.esp32net import esp32wifi as wifi_driver
#init the wifi driver!
#The driver automatically registers itself to the wifi interface
#with the correct configuration for the selected device
#use the wifi interface to link to the Access Point
#change network name, security and password as needed
print(“Establishing Link…”)
# FOR THIS EXAMPLE TO WORK, “Network-Name” AND “Wifi-Password” MUST BE SET
print(“Link Established”)
except Exception as e:
print(“ooops, something wrong while linking :(”, e)
while True:

Getting the following error in console:

[info] Searching for /home/moroz/.zerynth2/dist/r2.1.1/libs/official/espressif/esp8266wifi/
[info] Compiling module: espressif.esp8266wifi.esp8266wifi @ /home/moroz/.zerynth2/dist/r2.1.1/libs/official/espressif/esp8266wifi/
[info] ########## STEP 1 - C code compilation
[info] Compiling /home/moroz/.zerynth2/dist/r2.1.1/libs/official/espressif/esp8266wifi/csrc/wifi_ifc.c
[error] Error in C natives [—] in [/home/moroz/.zerynth2/dist/r2.1.1/libs/official/espressif/esp8266wifi/csrc/wifi_ifc.c] at line 0

Looks like, it fails on Includes:

#include “zerynth.h”

Running on x86_64 Fedora 28.

Had no issues with WiFi on this board using other frameworks.

Could somebody please show the direction, where to dig? I’m out of ideas…


Hi @morozsm,

unfortunately the binary version of the xtensa-lx106 gcc compilers used for 8266-based boards has stopped working on some GNU\Linux distributions recently probably due to some library updates.
Recompiling affected compilers from source solves the problem: we will release this fix with the next patch in 2/3 weeks.
In the meantime, only if you feel comfortable with this kind of operations, you could try compiling a binary version yourself and place it under ~/.zerynth2/sys/xtensa-lx106.

Let me know,