question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building fails if Wifi is set

See original GitHub issue

Hey, im using Tasmota Compiler in Docker on my RPi, and when i set Wifi Name and Password, the build fails with error. First i thought its because a Dot in my Wifi Name, but it happens also with (for example) testwlan. Im not sure which part of the Logfile is relevant, so here is the complete output.

`Processing firmware (platform: espressif8266 @ 2.6.2; framework: arduino; board: esp01_1m)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html PLATFORM: Espressif 8266 (2.6.2) > Espressif Generic ESP8266 ESP-01 1M HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash PACKAGES:

  • framework-arduinoespressif8266 2.7.4+9

  • tool-esptool 1.413.0 (4.13)

  • tool-esptoolpy 1.30000.201119 (3.0.0)

  • toolchain-xtensa 2.40802.200502 (4.8.2) Converting tasmota.ino LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 80 compatible libraries Scanning dependencies… Dependency Graph |-- <ESP8266WiFi> 1.0 |-- <BearSSL> 0.6 |-- <Adafruit CCS811 Library> 1.0.0 | |-- <Wire> 1.0 |-- <Adafruit MAX31865 library> 1.0.1 | |-- <SPI> 1.0 |-- <Adafruit MCP9808 Library> 1.1.2 | |-- <Wire> 1.0 |-- <Adafruit SGP30 Sensor> 1.2.0 | |-- <Wire> 1.0 |-- <Adafruit VEML7700 Library> 1.0.0 | |-- <Adafruit BusIO> 1.0.10 | | |-- <Wire> 1.0 | | |-- <SPI> 1.0 | |-- <Wire> 1.0 |-- <Adafruit seesaw Library> 1.3.1 | |-- <Wire> 1.0 |-- <ESP8266Audio> 1.5.0 | |-- <SPI> 1.0 | |-- <ESP8266HTTPClient> 1.2 | | |-- <ESP8266WiFi> 1.0 | |-- <ESP8266WiFi> 1.0 | |-- <LittleFS(esp8266)> 0.1.0 | |-- <SD(esp8266)> 2.0.0 | | |-- <SDFS> 0.1.0 | | | |-- <SPI> 1.0 | | | |-- <ESP8266SdFat> 1.1.0 | | | | |-- <SPI> 1.0 | |-- <SDFS> 0.1.0 | | |-- <SPI> 1.0 | | |-- <ESP8266SdFat> 1.1.0 | | | |-- <SPI> 1.0 | |-- <ESP8266SdFat> 1.1.0 | | |-- <SPI> 1.0 |-- <EEPROM 24C128_256_521> | |-- <Wire> 1.0 |-- <I2Cdevlib-Core> | |-- <Wire> 1.0 |-- <LibTeleinfo> 1.1.3 |-- <MPU6050 I2C> | |-- <I2Cdevlib-Core> | | |-- <Wire> 1.0 |-- <Mutichannel_Gas_Sensor> 0.0.1 | |-- <Wire> 1.0 |-- <NTP Library> | |-- <ESP8266WiFi> 1.0 |-- <OpenTherm Library> 0.9.0 |-- <ProcessControl> |-- <SD(esp8266)> 2.0.0 | |-- <SDFS> 0.1.0 | | |-- <SPI> 1.0 | | |-- <ESP8266SdFat> 1.1.0 | | | |-- <SPI> 1.0 |-- <UdpListener> 1.0 |-- <Unishox Compressor Decompressor highly customized and optimized for ESP8266 and Tasmota> 1.0 |-- <VL53L0X> 1.0.2 | |-- <Wire> 1.0 |-- <VL53L1X> 1.0.1 | |-- <Wire> 1.0 |-- <C2Programmer> 1.0.0 |-- <cc1101> | |-- <SPI> 1.0 |-- <A4988_Stepper> 0.0.1 |-- <Adafruit Fingerprint Sensor Library> 2.0.4 | |-- <TasmotaSerial> 3.1.0 |-- <Adafruit GFX Library> 1.5.6 | |-- <SPI> 1.0 |-- <Adafruit ILI9341> 1.2.0 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 |-- <Adafruit LED Backpack Library> 1.1.6 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <Wire> 1.0 |-- <Adafruit SH1106-gemu-1.0> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 | |-- <Wire> 1.0 |-- <Adafruit SSD1306> 1.3.0 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 | |-- <Wire> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 |-- <Adafruit SSD1331 OLED Driver Library for Arduino> 1.2.0 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 |-- <Adafruit TSL2591> | |-- <Wire> 1.0 |-- <Arduino ST7789 Library> 0.9.5 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 |-- <DNSServer> 1.1.1 | |-- <ESP8266WiFi> 1.0 |-- <ESP8266HTTPClient> 1.2 | |-- <ESP8266WiFi> 1.0 |-- <ESP8266SAM> 1.0 | |-- <ESP8266Audio> 1.5.0 | | |-- <SPI> 1.0 | | |-- <ESP8266HTTPClient> 1.2 | | | |-- <ESP8266WiFi> 1.0 | | |-- <ESP8266WiFi> 1.0 | | |-- <LittleFS(esp8266)> 0.1.0 | | |-- <SD(esp8266)> 2.0.0 | | | |-- <SDFS> 0.1.0 | | | | |-- <SPI> 1.0 | | | | |-- <ESP8266SdFat> 1.1.0 | | | | | |-- <SPI> 1.0 | | |-- <SDFS> 0.1.0 | | | |-- <SPI> 1.0 | | | |-- <ESP8266SdFat> 1.1.0 | | | | |-- <SPI> 1.0 | | |-- <ESP8266SdFat> 1.1.0 | | | |-- <SPI> 1.0 |-- <ESP8266WebServer> 1.0 | |-- <ESP8266WiFi> 1.0 |-- <ESP8266httpUpdate> 1.3 | |-- <ESP8266HTTPClient> 1.2 | | |-- <ESP8266WiFi> 1.0 | |-- <ESP8266WiFi> 1.0 |-- <ESP8266mDNS> 1.2 | |-- <ESP8266WiFi> 1.0 |-- <FT5206_Library> 1.0.0 | |-- <Wire> 1.0 |-- <FrogmoreScd30> | |-- <Wire> 1.0 |-- <ILI9341-gemu-1.0> | |-- <SPI> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 |-- <ILI9488> 1.0.2 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 |-- <IRremoteESP8266> 2.7.14 |-- <JSMN JSON parser customized and optimized for ESP8266 and Tasmota> 1.0 |-- <KeeloqLib> 1.1 |-- <LOLIN_HP303B> 1.0.0 | |-- <SPI> 1.0 | |-- <Wire> 1.0 |-- <LinkedList> |-- <LiquidCrystal_I2C> | |-- <Wire> 1.0 |-- <LittleFS(esp8266)> 0.1.0 |-- <MFRC522> 1.4.7 | |-- <SPI> 1.0 |-- <MLX90640> | |-- <Wire> 1.0 |-- <NeoPixelBus> 2.6.0 | |-- <SPI> 1.0 |-- <NewPing> 1.9.1 |-- <OneWire> 2.3.2 |-- <PubSubClient> 2.7 |-- <RA8876> 1.0.2 | |-- <SPI> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 |-- <rc-switch> 2.6.2 |-- <RF24> 1.3.3 | |-- <SPI> 1.0 |-- <Ext-printf> 1.0 |-- <SPI> 1.0 |-- <SSD3115> 1.0 | |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | | |-- <Adafruit GFX Library> 1.5.6 | | | |-- <SPI> 1.0 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 |-- <TasmotaModbus> 1.2.0 | |-- <TasmotaSerial> 3.1.0 |-- <TasmotaSerial> 3.1.0 |-- <Ticker> 1.0 |-- <Joba_Tsl2561> 2.0.10 | |-- <Wire> 1.0 |-- <Wire> 1.0 |-- <base64> 1.1.1 |-- <BME680> |-- <Waveshare esp 2.9 inch e-paper display driver> 1.0 | |-- <Adafruit GFX Library> 1.5.6 | | |-- <SPI> 1.0 | |-- <SPI> 1.0 |-- <ESP KNX IP Library> 0.5.2 | |-- <EEPROM> 1.0 | |-- <ESP8266WebServer> 1.0 | | |-- <ESP8266WiFi> 1.0 | |-- <ESP8266WiFi> 1.0 |-- <HPMA115S0 Arduino Library> 1.0.0 |-- <stm32flash-1.0-tasmota> Building in release mode *** use provided user_config_override.h as planned *** Use manually specified: COM5 Compiling .pio/build/firmware/src/StackThunk_light.cpp.o In file included from tasmota/my_user_config.h:904:0, from tasmota/StackThunk_light.cpp:28: tasmota/user_config_override.h:4:2: warning: #warning **** user_config_override.h: Using Settings from this File **** [-Wcpp] #warning **** user_config_override.h: Using Settings from this File **** ^ Compiling .pio/build/firmware/src/WiFiClientSecureLightBearSSL.cpp.o In file included from tasmota/my_user_config.h:904:0, from tasmota/WiFiClientSecureLightBearSSL.cpp:23: tasmota/user_config_override.h:4:2: warning: #warning **** user_config_override.h: Using Settings from this File **** [-Wcpp] #warning **** user_config_override.h: Using Settings from this File **** ^ Compiling .pio/build/firmware/src/tasmota.ino.cpp.o Generating LD script .pio/build/firmware/ld/local.eagle.app.v6.common.ld Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/BearSSLHelpers.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/CertStoreBearSSL.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFi.cpp.o In file included from tasmota/my_user_config.h:904:0, from /tmp/Tasmota/tasmota/tasmota.ino:43: tasmota/user_config_override.h:4:2: warning: #warning **** user_config_override.h: Using Settings from this File **** [-Wcpp] #warning **** user_config_override.h: Using Settings from this File **** ^ Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiAP.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o In file included from /root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0, from /root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63, from /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:32, from /tmp/tmpsylhy9dk:1: /tmp/Tasmota/tasmota/settings.ino: In function ‘void SettingsDefaultSet2()’: tasmota/user_config_override.h:9:19: error: ‘testwlan’ was not declared in this scope #define STA_SSID1 testwlan ^ /root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:44:238: note: in definition of macro ‘PSTRN’ #define PSTRN(s,n) (extension({static const char __c[] attribute((aligned(n))) attribute((section( “".irom0.pstr.” FILE “.” __STRINGIZE(LINE) “.” __STRINGIZE(COUNTER) “", "aSM", @progbits, 1 #”))) = (s); &__c[0];})) ^ /tmp/Tasmota/tasmota/settings.ino:796:36: note: in expansion of macro ‘PSTR’ SettingsUpdateText(SET_STASSID1, PSTR(STA_SSID1)); ^ /tmp/Tasmota/tasmota/settings.ino:796:41: note: in expansion of macro ‘STA_SSID1’ SettingsUpdateText(SET_STASSID1, PSTR(STA_SSID1)); ^ tasmota/user_config_override.h:14:19: error: ‘testwlan’ was not declared in this scope #define STA_PASS1 testwlan ^ /root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:44:238: note: in definition of macro ‘PSTRN’ #define PSTRN(s,n) (extension({static const char __c[] attribute((aligned(n))) attribute((section( “".irom0.pstr.” FILE “.” __STRINGIZE(LINE) “.” __STRINGIZE(COUNTER) “", "aSM", @progbits, 1 #”))) = (s); &__c[0];})) ^ /tmp/Tasmota/tasmota/settings.ino:798:35: note: in expansion of macro ‘PSTR’ SettingsUpdateText(SET_STAPWD1, PSTR(STA_PASS1)); ^ /tmp/Tasmota/tasmota/settings.ino:798:40: note: in expansion of macro ‘STA_PASS1’ SettingsUpdateText(SET_STAPWD1, PSTR(STA_PASS1)); ^ In file included from tasmota/my_user_config.h:904:0, from /tmp/Tasmota/tasmota/tasmota.ino:43: /tmp/Tasmota/tasmota/support_command.ino: In function ‘void CmndSsid()’: tasmota/user_config_override.h:9:19: error: ‘testwlan’ was not declared in this scope #define STA_SSID1 testwlan ^ /tmp/Tasmota/tasmota/support_command.ino:1573:105: note: in expansion of macro ‘STA_SSID1’ (SC_CLEAR == Shortcut()) ? “” : (SC_DEFAULT == Shortcut()) ? (1 == XdrvMailbox.index) ? STA_SSID1 : STA_SSID2 : XdrvMailbox.data); ^ /tmp/Tasmota/tasmota/support_command.ino: In function ‘void CmndPassword()’: tasmota/user_config_override.h:14:19: error: ‘testwlan’ was not declared in this scope #define STA_PASS1 testwlan ^ /tmp/Tasmota/tasmota/support_command.ino:1587:103: note: in expansion of macro ‘STA_PASS1’ (SC_CLEAR == Shortcut()) ? “” : (SC_DEFAULT == Shortcut()) ? (1 == XdrvMailbox.index) ? STA_PASS1 : STA_PASS2 : XdrvMailbox.data); ^ /tmp/Tasmota/tasmota/xdrv_01_webserver.ino: At global scope: tasmota/user_config_override.h:9:19: error: expected ‘,’ or ‘;’ before ‘testwlan’ #define STA_SSID1 testwlan ^ /tmp/Tasmota/tasmota/xdrv_01_webserver.ino:262:32: note: in expansion of macro ‘STA_SSID1’ “

    ” D_AP1_SSID “ (” STA_SSID1 “)
    <input id=‘s1’ placeholder="” STA_SSID1 “" value="%s">

    ” // Need " instead of ’ to be able to use ’ in text (#8489) ^ /tmp/Tasmota/tasmota/xdrv_01_webserver.ino: In function ‘void WifiSaveSettings()’: tasmota/user_config_override.h:9:19: error: ‘testwlan’ was not declared in this scope #define STA_SSID1 testwlan ^ /tmp/Tasmota/tasmota/xdrv_01_webserver.ino:1789:53: note: in expansion of macro ‘STA_SSID1’

                                                  ^
    

Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiMulti.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o Compiling .pio/build/firmware/lib4d9/ESP8266WiFi/ESP8266WiFiSTA.cpp.o *** [.pio/build/firmware/src/tasmota.ino.cpp.o] Error 1 ========================= [FAILED] Took 20.38 seconds =========================

Environment Status Duration


firmware FAILED 00:00:20.379 ==================== 1 failed, 0 succeeded in 00:00:20.379 ==================== Finished. Exit code: 1. Welcome stranger!`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
benzino77commented, Feb 5, 2021

New images are pushed to docker hub. Try to pull newest and check if it works for you. This is release candidate version and it will be next major version of TasmoCompiler.

1reaction
benzino77commented, Feb 5, 2021

OK it’s fixed - you can use 4.0.0-rc version via gitpod. For docker images you have to wait a moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The most common Wi-Fi problems and how to fix them
If your Wi-Fi is running slow or just drops out altogether in certain rooms, there are solutions you can try to fix the...
Read more >
No Internet? How to Troubleshoot WiFi and Router Issues
If your WiFi isn't working, keeps shutting off, or is slowed down, follow these steps to figure out what the problem is and...
Read more >
Troubleshoot wireless network connection problems in 10 ...
Wireless connection problems often frustrate end users and IT. Follow these troubleshooting steps to untangle wireless connection issues.
Read more >
13 Tips to Troubleshoot Your Internet Connection
If you have previously changed any router settings, and now there's a problem, try resetting your router to its factory default configuration.
Read more >
The internet connection appears as Failed while ...
When using a separate modem and router, check the connections between the two devices. Check the cable or phone line (DSL) connections between ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found