benzino77 / tasmocompiler

Web GUI for custom Tasmota compilation
MIT License
503 stars 144 forks source link

error: 'SdFile' has not been declared #16

Closed beardedfool closed 5 years ago

beardedfool commented 5 years ago

Hi,

It's probably me, not you but in case it's useful - I was trying to compile the development branch with scrips, webgui

itpod /tmp/Sonoff-Tasmota $ cat sonoff/user_config_override.h 
#ifndef _USER_CONFIG_OVERRIDE_H_
#define _USER_CONFIG_OVERRIDE_H_

#warning **** user_config_override.h: Using Settings from this File ****

#ifdef STA_SSID1
  #undef STA_SSID1
#endif
#define STA_SSID1       "test"

#ifdef STA_PASS1
  #undef STA_PASS1
#endif
#define STA_PASS1       "testtest"

#ifdef WIFI_IP_ADDRESS
  #undef WIFI_IP_ADDRESS
#endif
#define WIFI_IP_ADDRESS ""

#ifdef WIFI_SUBNETMASK
  #undef WIFI_SUBNETMASK
#endif
#define WIFI_SUBNETMASK ""

#ifdef WIFI_GATEWAY
  #undef WIFI_GATEWAY
#endif
#define WIFI_GATEWAY    ""

#ifdef WIFI_DNS
  #undef WIFI_DNS
#endif
#define WIFI_DNS        ""

#ifdef USE_DOMOTICZ
  #undef USE_DOMOTICZ
#endif

#ifdef USE_HOME_ASSISTANT
  #undef USE_HOME_ASSISTANT
#endif

#ifdef USE_KNX
  #undef USE_KNX
#endif

#ifdef USE_DISCOVERY
  #undef USE_DISCOVERY
#endif
#define USE_DISCOVERY

#ifdef USE_TIMERS
  #undef USE_TIMERS
#endif

#ifdef USE_RULES
  #undef USE_RULES
#endif

#ifdef USE_SCRIPT
  #undef USE_SCRIPT
#endif
#define USE_SCRIPT

#ifdef USE_ADC_VCC
  #undef USE_ADC_VCC
#endif

#ifdef USE_I2C
  #undef USE_I2C
#endif

#ifdef USE_SPI
  #undef USE_SPI
#endif

#ifdef USE_MHZ19
  #undef USE_MHZ19
#endif

#ifdef USE_SENSEAIR
  #undef USE_SENSEAIR
#endif

#ifdef USE_PMS5003
  #undef USE_PMS5003
#endif

#ifdef USE_NOVA_SDS
  #undef USE_NOVA_SDS
#endif

#ifdef USE_PZEM004T
  #undef USE_PZEM004T
#endif

#ifdef USE_PZEM_AC
  #undef USE_PZEM_AC
#endif

#ifdef USE_PZEM_DC
  #undef USE_PZEM_DC
#endif

#ifdef USE_MCP39F501
  #undef USE_MCP39F501
#endif

#ifdef USE_IR_REMOTE
  #undef USE_IR_REMOTE
#endif

#ifdef USE_IR_REMOTE_FULL
  #undef USE_IR_REMOTE_FULL
#endif

#ifdef USE_WS2812
  #undef USE_WS2812
#endif

#ifdef USE_SR04
  #undef USE_SR04
#endif

#ifdef USE_RC_SWITCH
  #undef USE_RC_SWITCH
#endif

#ifdef USE_WEBSERVER
  #undef USE_WEBSERVER
#endif
#define USE_WEBSERVER

#ifdef USE_MQTT_TLS
  #undef USE_MQTT_TLS
#endif
#define USE_MQTT_TLS

#ifdef MY_LANGUAGE
  #undef MY_LANGUAGE
#endif
#define MY_LANGUAGE     en-GB

#endifgitpod /tmp/Sonoff-Tasmota $ 

****************************************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for IoT development > https://platformio.org/platformio-ide
- support us with PlatformIO Plus > https://pioplus.com
****************************************************************************************************

Processing custom (platform: https://github.com/Jason2866/platform-espressif8266.git; framework: arduino; board: esp01_1m)
----------------------------------------------------------------------------------------------------
PlatformManager: Installing platform-espressif8266
git version 2.20.1
Cloning into '/home/gitpod/.platformio/platforms/_tmp_installing-mZW8IR-package'...
espressif8266 @ 4db7ada has been successfully installed!
The platform 'https://github.com/Jason2866/platform-espressif8266.git' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.
PackageManager: Installing toolchain-xtensa @ <3
toolchain-xtensa @ 2.40802.190218 has been successfully installed!
PackageManager: Installing tool-esptool @ <2
tool-esptool @ 1.413.0 has been successfully installed!
PackageManager: Installing tool-esptoolpy @ ~1.20600.0
tool-esptoolpy @ 1.20600.0 has been successfully installed!
PackageManager: Installing framework-arduinoespressif8266
git version 2.20.1
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package'...
Submodule 'libraries/ESP8266SdFat' (https://github.com/earlephilhower/ESP8266SdFat.git) registered for path 'libraries/ESP8266SdFat'
Submodule 'libraries/LittleFS/lib/littlefs' (https://github.com/ARMmbed/littlefs.git) registered for path 'libraries/LittleFS/lib/littlefs'
Submodule 'libraries/SoftwareSerial' (https://github.com/plerup/espsoftwareserial.git) registered for path 'libraries/SoftwareSerial'
Submodule 'tools/esptool' (https://github.com/espressif/esptool.git) registered for path 'tools/esptool'
Submodule 'tools/pyserial' (https://github.com/pyserial/pyserial.git) registered for path 'tools/pyserial'
Submodule 'lwip2' (https://github.com/d-a-v/esp82xx-nonos-linklayer.git) registered for path 'tools/sdk/lwip2/builder'
Submodule 'tools/sdk/ssl/bearssl' (https://github.com/earlephilhower/bearssl-esp8266.git) registered for path 'tools/sdk/ssl/bearssl'
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/libraries/ESP8266SdFat'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/libraries/SoftwareSerial'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/tools/sdk/lwip2/builder'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/tools/sdk/ssl/bearssl'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/libraries/LittleFS/lib/littlefs'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/tools/pyserial'...
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/tools/esptool'...
Submodule path 'libraries/ESP8266SdFat': checked out 'af4ed0c5ec3084cb3883df51ec2052791ca2bff2'
Submodule path 'libraries/LittleFS/lib/littlefs': checked out 'abd90cb84c818a663b584575b019258d01d0065e'
Submodule path 'libraries/SoftwareSerial': checked out '776d49b2f570b93fe88ad7a082519b4fb56be817'
Submodule path 'tools/esptool': checked out '9ad444a6e06e58833d5e6044c1d5f3eb3dd56023'
Submodule path 'tools/pyserial': checked out 'c54c81d933b847458d465cd77e96cd702ff2e7be'
Submodule path 'tools/sdk/lwip2/builder': checked out 'ffa962483cc1c5d874b11bec13080359619c4cb2'
Submodule 'lwip2-src' (https://git.savannah.nongnu.org/git/lwip.git) registered for path 'tools/sdk/lwip2/builder/lwip2-src'
Cloning into '/home/gitpod/.platformio/packages/_tmp_installing-TwGRVH-package/tools/sdk/lwip2/builder/lwip2-src'...
Submodule path 'tools/sdk/lwip2/builder/lwip2-src': checked out '159e31b689577dbf69cf0683bbaffbd71fa5ee10'
Submodule path 'tools/sdk/ssl/bearssl': checked out '89454af34e3e61ddfc9837f3da5a0bc8ed44c3aa'
framework-arduinoespressif8266 @ 645464c has been successfully installed!
CorePackageManager: Installing tool-scons @ ~2.20501.7
tool-scons @ 2.20501.190826 has been successfully installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (Stage) 2.3.0-alpha.1 #4db7ada > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES: toolchain-xtensa 2.40802.190218 (4.8.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20600.0 (2.6.0), framework-arduinoespressif8266 645464c
Converting sonoff.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 58 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP KNX IP Library> 0.5.1
|   |-- <ESP8266WiFi> 1.0
|   |-- <EEPROM> 1.0
|   |-- <ESP8266WebServer> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|-- <Ticker> 1.0
|-- <Adafruit SGP30 Sensor> 1.0.3
|   |-- <Wire> 1.0
|-- <rc-switch> 2.6.2
|-- <OneWire> 2.3.2
|-- <Adafruit GFX Library> 1.2.9
|   |-- <SPI> 1.0
|-- <Mutichannel_Gas_Sensor> 0.0.1
|   |-- <Wire> 1.0
|-- <PubSubClient> 2.7
|-- <I2Cdevlib-Core>
|   |-- <Wire> 1.0
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
|-- <TasmotaSerial> 2.3.0
|-- <Joba_Tsl2561> 2.0.10
|   |-- <Wire> 1.0
|-- <Adafruit SSD1306> 1.1.2
|   |-- <Adafruit GFX Library> 1.2.9
|   |   |-- <SPI> 1.0
|   |-- <Wire> 1.0
|   |-- <SPI> 1.0
|-- <Adafruit CCS811 Library> 1.0.0
|   |-- <Wire> 1.0
|-- <SD(esp8266)> 2.0.0
|   |-- <SDFS> 0.1.0
|   |   |-- <SPI> 1.0
|   |   |-- <ESP8266SdFat> 1.1.0
|   |   |   |-- <SPI> 1.0
|-- <Adafruit ILI9341> 1.2.0
|   |-- <Adafruit GFX Library> 1.2.9
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <C2Programmer> 1.0.0
|-- <Wire> 1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> 1.0
|-- <NeoPixelBus> 2.2.9
|   |-- <SPI> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <FrogmoreScd30>
|   |-- <Wire> 1.0
|-- <VL53L0X> 1.0.2
|   |-- <Wire> 1.0
|-- <ArduinoJson> 5.13.4
|-- <I2Cdevlib-MPU6050>
|   |-- <I2Cdevlib-Core>
|   |   |-- <Wire> 1.0
|-- <BearSSL> 0.6
|-- <Waveshare esp 2.9 inch e-paper display driver> 1.0
|   |-- <SPI> 1.0
|-- <TasmotaModbus> 1.1.0
|   |-- <TasmotaSerial> 2.3.0
|-- <Adafruit LED Backpack Library> 1.1.6
|   |-- <Adafruit GFX Library> 1.2.9
|   |   |-- <SPI> 1.0
|   |-- <Wire> 1.0
|-- <NewPing> 1.9.1
|-- <LinkedList>
|-- <ESP8266WebServer> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266httpUpdate> 1.3
|   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <I2Cdevlib-ADS1115>
|   |-- <I2Cdevlib-Core>
|   |   |-- <Wire> 1.0
|-- <ArduinoOTA> 1.0
|   |-- <ESP8266mDNS> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPClient> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <IRremoteESP8266> 2.6.0
|-- <BME680_driver-bme680_v3.5.9>
|-- <ESP8266WiFi> 1.0
Generating .pioenvs/custom/core/core_version.h
Compiling .pioenvs/custom/src/StackThunk_light.cpp.o
Compiling .pioenvs/custom/src/sonoff_aws_iot.cpp.o
Generating LD script .pioenvs/custom/ld/local.eagle.app.v6.common.ld
Compiling .pioenvs/custom/lib9db/ESP8266WebServer/detail/mimetable.cpp.o
Compiling .pioenvs/custom/lib7df/Ticker/Ticker.cpp.o
Compiling .pioenvs/custom/lib90c/Adafruit-GFX-Library-1.2.9/glcdfont.c.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/FmtNumber.cpp.o
fatal: No names found, cannot describe anything.
Archiving .pioenvs/custom/lib8e7/libArduinoJson-5.13.4.a
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/aead/ccm.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/aead/eax.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/aead/gcm.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/codec/ccopy.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/codec/dec16be.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/codec/dec16le.c.o
Compiling .pioenvs/custom/libb4d/bearssl-esp8266/codec/dec32be.c.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs/custom/lib876/Mutichannel_Gas_Sensor/MutichannelGasSensor.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling .pioenvs/custom/libeab/PubSubClient-EspEasy-2.7.12/PubSubClient.cpp.o
Archiving .pioenvs/custom/lib9db/libESP8266WebServer.a
Compiling .pioenvs/custom/lib9a8/esp-knx-ip-0.5.1/esp-knx-ip-conversion.cpp.o
Archiving .pioenvs/custom/lib7df/libTicker.a
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling .pioenvs/custom/lib4bd/DNSServer/DNSServer.cpp.o
Indexing .pioenvs/custom/lib8e7/libArduinoJson-5.13.4.a
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/NeoPixelAnimator.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SpiDriver/SdSpiSTM32.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiClient.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/NeoPixelAvr.c.o
Indexing .pioenvs/custom/lib9db/libESP8266WebServer.a
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Indexing .pioenvs/custom/lib7df/libTicker.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/FatFile.cpp.o
Archiving .pioenvs/custom/lib876/libMutichannel_Gas_Sensor.a
Archiving .pioenvs/custom/libeab/libPubSubClient-EspEasy-2.7.12.a
Compiling .pioenvs/custom/lib303/OneWire-2.3.3.06/OneWire.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/HtmlColorNames.cpp.o
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling .pioenvs/custom/lib049/rc-switch-2.6.2.13/RCSwitch.cpp.o
Compiling .pioenvs/custom/src/WiFiClientSecureLightBearSSL.cpp.o
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling .pioenvs/custom/lib359/EEPROM/EEPROM.cpp.o
Compiling .pioenvs/custom/lib16d/LiquidCrystal_I2C-1.1.3/LiquidCrystal_I2C.cpp.o
Indexing .pioenvs/custom/lib876/libMutichannel_Gas_Sensor.a
Archiving .pioenvs/custom/lib4bd/libDNSServer.a
Indexing .pioenvs/custom/libeab/libPubSubClient-EspEasy-2.7.12.a
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/HtmlColor.cpp.o
Compiling .pioenvs/custom/lib21d/SD/SD.cpp.o
Compiling .pioenvs/custom/lib90c/Adafruit-GFX-Library-1.2.9/Adafruit_SPITFT.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SdCard/SdioTeensy.cpp.o
Archiving .pioenvs/custom/lib303/libOneWire-2.3.3.06.a
Compiling .pioenvs/custom/lib7a7/Adafruit_SSD1306-1.1.2/Adafruit_SSD1306.cpp.o
Compiling .pioenvs/custom/lib661/Joba_Tsl2561-2.0.10/Tsl2561.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Indexing .pioenvs/custom/lib4bd/libDNSServer.a
Compiling .pioenvs/custom/lib56a/FrogmoreScd30/FrogmoreScd30.cpp.o
Archiving .pioenvs/custom/lib359/libEEPROM.a
Compiling .pioenvs/custom/src/core_esp8266_timer.c.o
Compiling .pioenvs/custom/src/Parsing.cpp.o
Archiving .pioenvs/custom/lib049/librc-switch-2.6.2.13.a
Archiving .pioenvs/custom/lib16d/libLiquidCrystal_I2C-1.1.3.a
Indexing .pioenvs/custom/lib303/libOneWire-2.3.3.06.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/FatFileSFN.cpp.o
Compiling .pioenvs/custom/lib9a8/esp-knx-ip-0.5.1/esp-knx-ip.cpp.o
Archiving .pioenvs/custom/lib21d/libSD.a
Compiling .pioenvs/custom/lib2cb/Adafruit_CCS811-1.0.0.14/Adafruit_CCS811.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/MinimumSerial.cpp.o
Compiling .pioenvs/custom/lib4f5/Adafruit_SGP30-1.0.3/Adafruit_SGP30.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/HtmlColorNameStrings.cpp.o
Indexing .pioenvs/custom/lib359/libEEPROM.a
Indexing .pioenvs/custom/lib049/librc-switch-2.6.2.13.a
Archiving .pioenvs/custom/lib7a7/libAdafruit_SSD1306-1.1.2.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/istream.cpp.o
Indexing .pioenvs/custom/lib16d/libLiquidCrystal_I2C-1.1.3.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SdCard/SdioCardEX.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/HslColor.cpp.o
Compiling .pioenvs/custom/lib9a8/esp-knx-ip-0.5.1/esp-knx-ip-webserver.cpp.o
Archiving .pioenvs/custom/lib56a/libFrogmoreScd30.a
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Indexing .pioenvs/custom/lib7a7/libAdafruit_SSD1306-1.1.2.a
Indexing .pioenvs/custom/lib21d/libSD.a
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/FatFileLFN.cpp.o
Archiving .pioenvs/custom/lib4f5/libAdafruit_SGP30-1.0.3.a
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/LEAmDNS.cpp.o
Archiving .pioenvs/custom/lib2cb/libAdafruit_CCS811-1.0.0.14.a
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/HsbColor.cpp.o
Indexing .pioenvs/custom/lib56a/libFrogmoreScd30.a
Compiling .pioenvs/custom/lib6fe/Wire/Wire.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SpiDriver/SdSpiSAM3X.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/NeoEsp8266UartMethod.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Indexing .pioenvs/custom/lib4f5/libAdafruit_SGP30-1.0.3.a
Indexing .pioenvs/custom/lib2cb/libAdafruit_CCS811-1.0.0.14.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/ostream.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/StdioStream.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/RgbColor.cpp.o
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling .pioenvs/custom/src/sonoff.ino.cpp.o
Compiling .pioenvs/custom/lib5f2/I2Cdevlib-Core/I2Cdev.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/BearSSLHelpers.cpp.o
Archiving .pioenvs/custom/lib6fe/libWire.a
Compiling .pioenvs/custom/lib5b8/Adafruit_ILI9341-1.2.0-Tasmota-1.0/Adafruit_ILI9341.cpp.o
Compiling .pioenvs/custom/lib3c0/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling .pioenvs/custom/lib661/Joba_Tsl2561-2.0.10/Tsl2561Util.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/NeoGamma.cpp.o
Compiling .pioenvs/custom/src/core_esp8266_wiring_digital.c.o
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/NeoPixelEsp.c.o
In file included from /tmp/Sonoff-Tasmota/sonoff/sonoff.ino:34:0:
sonoff/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 .pioenvs/custom/lib5ba/I2Cdevlib-MPU6050/MPU6050.cpp.o
Indexing .pioenvs/custom/lib6fe/libWire.a
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiServer.cpp.o
Archiving .pioenvs/custom/lib5f2/libI2Cdevlib-Core.a
Compiling .pioenvs/custom/lib388/ESP8266SdFat/FatLib/FatVolume.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SpiDriver/SdSpiTeensy3.cpp.o
Compiling .pioenvs/custom/lib90c/Adafruit-GFX-Library-1.2.9/Adafruit_GFX.cpp.o
In file included from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:32,
                 from /tmp/tmp1Yoguu:1:
/home/gitpod/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol
   #define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "."  __STRINGIZE(__COUNTER__) "\"")))
                                                                                                                                  ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_01_webserver.ino:49:24: note: in expansion of macro 'PROGMEM'
 const char HTTP_HEAD[] PROGMEM =
                        ^
Compiling .pioenvs/custom/lib5c2/ESP8266WiFi/WiFiUdp.cpp.o
In file included from lib/esp-knx-ip-0.5.1/esp-knx-ip.h:49:0,
                 from sonoff/sonoff_post.h:41,
                 from /tmp/Sonoff-Tasmota/sonoff/sonoff.ino:39:
/home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:33:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'
 enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
                                       ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_01_webserver.ino: In function 'void WSContentStart_P(const char*, bool)':
/tmp/Sonoff-Tasmota/sonoff/xdrv_01_webserver.ino:749:64: error: cannot convert 'HTTPMethod' to 'const char*' for argument '1' to 'void WSContentSend_P(const char*, ...)'
     WSContentSend_P(HTTP_HEAD, Settings.friendlyname[0], ctitle);
                                                                ^
Archiving .pioenvs/custom/lib5b8/libAdafruit_ILI9341-1.2.0-Tasmota-1.0.a
Archiving .pioenvs/custom/lib661/libJoba_Tsl2561-2.0.10.a
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino: In function 'void dateTime(uint16_t*, uint16_t*)':
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:2944:68: error: 'FAT_DATE' was not declared in this scope
   *date = FAT_DATE(RtcTime.year,RtcTime.month, RtcTime.day_of_month);
                                                                    ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:2944:68: note: suggested alternative:
In file included from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatFile.h:37:0,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/ArduinoFiles.h:33,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatLib.h:27,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/SdFat.h:33,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25,
                 from /tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:65:
/home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatStructs.h:765:24: note:   'sdfat::FAT_DATE'
 static inline uint16_t FAT_DATE(uint16_t year, uint8_t month, uint8_t day) {
                        ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:2946:62: error: 'FAT_TIME' was not declared in this scope
   *time = FAT_TIME(RtcTime.hour,RtcTime.minute,RtcTime.second);
                                                              ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:2946:62: note: suggested alternative:
In file included from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatFile.h:37:0,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/ArduinoFiles.h:33,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatLib.h:27,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/SdFat.h:33,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36,
                 from /home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25,
                 from /tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:65:
/home/gitpod/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/FatLib/FatStructs.h:799:24: note:   'sdfat::FAT_TIME'
 static inline uint16_t FAT_TIME(uint8_t hour, uint8_t minute, uint8_t second) {
                        ^
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino: In function 'bool Xdrv10(uint8_t)':
/tmp/Sonoff-Tasmota/sonoff/xdrv_10_scripter.ino:3009:9: error: 'SdFile' has not been declared
         SdFile::dateTimeCallback(dateTime);
         ^
Compiling .pioenvs/custom/lib9a8/esp-knx-ip-0.5.1/esp-knx-ip-config.cpp.o
Compiling .pioenvs/custom/lib388/ESP8266SdFat/SpiDriver/SdSpiParticle.cpp.o
Archiving .pioenvs/custom/lib3c0/libESP8266mDNS.a
Compiling .pioenvs/custom/lib71f/SPI/SPI.cpp.o
Compiling .pioenvs/custom/lib6ba/NeoPixelBus-2.2.9/internal/RgbwColor.cpp.o
Indexing .pioenvs/custom/lib5f2/libI2Cdevlib-Core.a
*** [.pioenvs/custom/src/sonoff.ino.cpp.o] Error 1
Indexing .pioenvs/custom/lib5b8/libAdafruit_ILI9341-1.2.0-Tasmota-1.0.a
Indexing .pioenvs/custom/lib661/libJoba_Tsl2561-2.0.10.a
Indexing .pioenvs/custom/lib3c0/libESP8266mDNS.a
=================================== [FAILED] Took 65.70 seconds ===================================
Finished. Exit code: 1.
benzino77 commented 5 years ago

What core version did you choose before compilation?

benzino77 commented 5 years ago

I think I cannot reproduce your problem (or correct me if I incorrectly read the configuration you provided). It compiles well with all core versions required by MQTT_TLS

issue16-1 issue16-2 issue16-3 issue16-4

beardedfool commented 5 years ago

Thanks for coming back to me so quickly Benzino.

I owe you an apology, I confused myself with versions as was trying a few

It's happening with 6.6.60, 2.6.x English, Sonoff 1Mb Firefox 64bit Quantum 69.02 on win10 1903

image

benzino77 commented 5 years ago

OK. I assume the 6.6.60 is a typo and you meant 6.6.0. Now I can reproduce your problem. Here are few tests I've performed (with features you choose):

I think you have to contact Tasmota Dev Team to ask them question what is the reason. Contact them by discord chat at first.

beardedfool commented 5 years ago

It was a typo, Thanks for looking at that Benzino. I'll make them aware of this. I don't understand the output myself.

benzino77 commented 5 years ago

Regarding this document, scripter USE_SCRIPT_FATFS needs SPI (which is off when "display support" is disabled). But even turning on USE_SPI (Display Support enabled) cause errors during compilation.

Tested on Tassmota 6.6.0 and core version 2.6.x and 2.5.2.

meingraham commented 5 years ago

@benzino77 Thanks for testing the permutations. Does this error occur with the latest development version (6.6.0.17)? We can follow up with Theo and Gerhard if it's still a problem.

benzino77 commented 5 years ago

Latest development with 2.6.x core compiles without any error. issue16-1 issue16-2

meingraham commented 5 years ago

So, it's fixed and users that need the Scripting will just need to use the latest code.

Thanks for testing.

I suggest that this Issue can be closed.

beardedfool commented 5 years ago

As far as I'm personally concerned that's ok as I've done what I need to. Thanks both.

benzino77 commented 5 years ago

Previous test shows that Tasmota 6.6.0 with core 2.5.2 and with additional custom parameter #undef USE_SCRIPT_FATFS - compile with success (with same features), so probably that was fixed in latest dev branch.

@meingraham I've got a suggestion/proposition/feature request to change travis tests, or rather to extend them. What can be additionally tested are features which are not included in any ready to download bin file. For example MCP23017, Scripter, Full IR, etc. I think that the best way to do this is to prepare "special" platformio.ini file just to test these features (there is no need to define additional feature "package" like FIRMWARE_SENSORS, FIRMWARE_DISPLAYS, FIRMWARE_KNX_NO_EMULATION, etc.

meingraham commented 5 years ago

@benzino77

Isn't the author of the PR supposed to make these kinds of tests before submitting the PR? Perhaps I'm not understanding what you are suggesting.

Mike

meingraham commented 5 years ago

@beardedfool

This is the answer. I just could not identify which scripting features where added when (which Tasmota rev level). https://github.com/arendst/Sonoff-Tasmota/issues/6085#issuecomment-540524635

master branch is v6.6.0
and has not included the code for >F section in scripting.
benzino77 commented 5 years ago

@meingraham In general? Definitely YES!

What I'm trying to say is that, some tests should be performed by Tasmota project itself before PR is merged. There are two reasons (maybe more,but I identify those two as most important):

  1. You don't know what tests ware performed by the author of PR
  2. Even if the author of pull request has done some tests, Tasmota as a project does not have guaranty that tests ware performed in all aspects.

There is also a chance, that Theo can decide that given PR does not break anything just to look at the code, or do such tests on his side.

meingraham commented 5 years ago

@benzino77

True, the are SUPPOSED to perform those tests. I'll discuss with Andre & Adrian.

Cheers.

Mike

meingraham commented 5 years ago

@benzino77

We discussed options... but it seems that there is no good option.

One thought was to have a "test" image build to build everything into a 4MB image (even if never used). But this would fail because the limitation comes with the available iRAM limit which cannot be changed. Enabling everything would exhaust the iRAM as the linker knows to be available and the compile would fail.

Trying smaller builds with permutations of different options would then be a problem as to which permutations and maintaining the build definitions as new features are added. Doing this would also increase the time Travis takes to perform all the tests thus impacting how often the code could be compiled.

And also, some problems are not due to developers not testing properly. Sometimes a problem in a driver comes when changes are made elsewhere by some other developer which inadvertently breaks another feature. So, I retract what I said above... at least as a blanket statement.

Unfortunately, it seems we have the situation we have and cannot really improve. We just have to deal with the occasional issue when a user compiles a custom binary.

Cheers!

Mike

benzino77 commented 5 years ago

I suspected that this is not trivial. Number of permutation is, I think, the main problem and there is no simple solution. Anyway it was only suggestion ;)

Mike, thanks for your commitment!