esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
15.99k stars 13.34k forks source link

After upgrade to 2.6.0: not a git repository (or any parent up to mount point / #6749

Closed jbrepogmailcom closed 4 years ago

jbrepogmailcom commented 4 years ago

Basic Infos

Platform

Settings in IDE

Problem Description

getting following error after upgrade in board manager from 2.5.2 to 2.6.0, Error happens in sudo as well:

Arduino: 1.8.9 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Build options changed, rebuilding all fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). In file included from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/ctype.h:7:0, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include/ctype.h:5, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266/WString.h:28, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266/IPAddress.h:24, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31, from /home/janbenes/Dropbox/Apps-180116/Arduino/toshiba_ac-19111001/toshiba_ac-19111001.ino:5: /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/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) "\"")))

                                                                                                                              ^

/home/janbenes/Dropbox/Apps-180116/Arduino/libraries/WiFiManager/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM' const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/>{v}"; ^ In file included from /home/janbenes/Dropbox/Apps-180116/Arduino/libraries/WiFiManager/WiFiManager.h:17:0, from /home/janbenes/Dropbox/Apps-180116/Arduino/toshiba_ac-19111001/toshiba_ac-19111001.ino:10: /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/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 }; ^ exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

After running git init I get

Arduino: 1.8.9 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

fatal: Needed a single revision In file included from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/ctype.h:7:0, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include/ctype.h:5, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266/WString.h:28, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266/IPAddress.h:24, from /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31, from /home/janbenes/Dropbox/Apps-180116/Arduino/toshiba_ac-19111001/toshiba_ac-19111001.ino:5: /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/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) "\"")))

                                                                                                                              ^

/home/janbenes/Dropbox/Apps-180116/Arduino/libraries/WiFiManager/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM' const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/>{v}"; ^ In file included from /home/janbenes/Dropbox/Apps-180116/Arduino/libraries/WiFiManager/WiFiManager.h:17:0, from /home/janbenes/Dropbox/Apps-180116/Arduino/toshiba_ac-19111001/toshiba_ac-19111001.ino:10: /home/janbenes/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/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 }; ^ exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

MCVE Sketch


#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

Debug messages go here
d-a-v commented 4 years ago

duplicate of #6745 . There is an alpha pre-release to test

devyte commented 4 years ago

Closings due to duplicate.