espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.45k stars 7.38k forks source link

undefined reference to 'vtable for fs::File' #7585

Closed tempdoom closed 1 year ago

tempdoom commented 1 year ago

Board

ESP32-S3

Device Description

DevKitC

Hardware Configuration

Nothing attached

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 10

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

While in the "linking" step of building and uploading the code from PlatformIO to the chip, LittleFS seems to have problems with a reference to FS. The same issue occurs if I switch to SPIFFS as well. I can't find any specific references to this problem anywhere else.

Sketch

#include <LittleFS.h>

void setup() {
  LittleFS.begin();
}

void loop() {}

Debug Message

c:/users/user/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio\build\esp32-s3-devkitc-1\src\main.cpp.o:(.literal._ZN2fs4FileD5Ev[_ZN2fs4FileD5Ev]+0x0): undefined reference to `vtable for fs::File'

collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32-s3-devkitc-1\firmware.elf] Error 1

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide