Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By chenjeff622
#29329 it seems hardware\esp8266com\esp8266\cores\esp8266\spiffs\spiffs.h no SPIFFS_tell function defiend!

code
void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}



compile result

G:\esp-8266\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266\libc_replacements.c:408:22: warning: 'struct tm' declared inside parameter list [enabled by default]
time_t mktime(struct tm *timp) {
^
G:\esp-8266\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266\libc_replacements.c:408:22: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
G:\esp-8266\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266\FileSystem.cpp: In member function 'uint32_t FSFile::size()':
G:\esp-8266\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266\FileSystem.cpp:277:40: error: 'SPIFFS_tell' was not declared in this scope
uint32_t pos = SPIFFS_tell(_fs, _file);
User avatar
By itay salpeter
#31844
igrr wrote:If you take a look at the latest git version, there is no such file (Filesystem.cpp):

https://github.com/esp8266/Arduino/tree ... es/esp8266

I think you git pull has gone wrong.


Hi igrr,

I am getting the same warnings also using win7(64), adruino 1.6.5, esp 1.6.5-1160-gef26c5f.
is there anything i can do to solve this issue?
here is the compile data for empty scheme:

C:\Users\itay\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f\cores\esp8266\libc_replacements.c:408:22: warning: 'struct tm' declared inside parameter list [enabled by default]
time_t mktime(struct tm *timp) {
^
C:\Users\itay\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f\cores\esp8266\libc_replacements.c:408:22: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Sketch uses 202,056 bytes (46%) of program storage space. Maximum is 434,160 bytes.
Global variables use 33,002 bytes (40%) of dynamic memory, leaving 48,918 bytes for local variables. Maximum is 81,920 bytes.
Uploading 206208 bytes from C:\Users\itay\AppData\Local\Temp\build7442297781394850250.tmp/sketch_oct20a.cpp.bin to flash at 0x00000000