When I start VSCode and the PlatformIO extension on my Windows10 laptop, I see this in the “Problems” window:
Cannot find C:\Users\bruce.platformio\packages\framework-arduinoespressif8266\tools\sdk\libc\xtensa-lx106-elf\include
I don’t recall ever seeing these warnings before. Not only that, but, like I said I’m using Windows and it’s looking for “\libc\xtensa-lx106-elf\include”. I’m puzzled. Linux elf? And to top it all, there is NO libc subdirectory on my machine. How do I get rid of this error? I’m not sure if this is gumming up the works on a project where I want to get a Maxim-Dallas DS2482 I2C 1-wire master to work with an ESP8266. (BTW, it doesn’t make any difference which project folder I open, I get the same errors.) Not sure if its related but here are the errors I get trying to build the latter project:
> Executing task: C:\Users\Bruce\.platformio\penv\Scripts\platformio.exe run <
Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)
-----------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (3.0.0) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.30000.210519 (3.0.0)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa 2.100200.0 (10.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 64 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Wire> 1.0
Building in release mode
Linking .pio\build\d1_mini\firmware.elf
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o:(.text.setup+0x8): undefined reference to `_ZN6DS24825resetEv'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o: in function `setup':
main.cpp:(.text.setup+0x1b): undefined reference to `_ZN6DS24825resetEv'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o:(.text.loop+0x0): undefined reference to `_ZN6DS248210wireSearchEPh'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o:(.text.loop+0x4): undefined reference to `_ZN6DS248215wireResetSearchEv'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o: in function `loop':
main.cpp:(.text.loop+0x16): undefined reference to `_ZN6DS248210wireSearchEPh'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: main.cpp:(.text.loop+0x20): undefined reference to `_ZN6DS248215wireResetSearchEv'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o:(.text.startup._GLOBAL__sub_I_ds+0x0): undefined reference to `_ZN6DS2482C1Eh'
c:/users/bruce/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini\src\main.cpp.o: in function `_GLOBAL__sub_I_ds':
main.cpp:(.text.startup._GLOBAL__sub_I_ds+0xe): undefined reference to `_ZN6DS2482C1Eh'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\d1_mini\firmware.elf] Error 1
================================= [FAILED] Took 24.13 seconds =================================The terminal process "C:\Users\Bruce\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
So, other ESP8266 projects DO build fine, but this has me completely baffled. 1) Why is PlatformIO looking for a non-existent “libc” directory?, 2) Why are there lx106-elf directories on my Windows10 machine in the first place?, and 3) why is it complaining about “undefined references” like the weirdly named `_ZN6DS248215wireResetSearchEv’ when “wireResetSearch” is, indeed, in the DS2482.cpp file under the project’s “lib” folder?? BTW, I’m no C++ expert or PlatformIO for that matter, but this is driving me nuts, so please forgive the rambling questions. Some hints please. Thanks.