You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Arduino as a component linked to an ESP-IDF project. I get the following linker error when using the SPIFFS file system object and building with the O0 (no optimisation) sdkconfig setting.
Linker error "undefined reference to `vtable for fs::FileImpl'"
This has been noted in other forums/git repos, usually PlatformIO or Arduino IDE context and appears to be related to a change in the behaviour of the GCC toolchain. Switching optimisation back to Og resolves the problem but makes the debugger unusable, presumably most people on those forums are not using GDB.
I am using the matching version of the ESP-IDF tooling for the Arduino component which packages the following toolchain version: esp-2021r2-patch5-8.4.0
Is there a later (or earlier) version I should be using that resolves this issue? I can work my way back but it would be quicker if there is a known point at which the problem was introduced.
yizakat
changed the title
undefined reference to `vtable for fs::FileImpl' in debug builds with -O0 flag.
undefined reference to `vtable for fs::FileImpl' using Arduino as Component (debug -O0 flag).
Oct 23, 2023
This is the same but the version I'm using is older 4.4.6, so this has actually been around a while. As noted, it only manifests if there is no optimisation which presumably optimises out the unused/unreferenced methods without the pure-virtual decl.
Board
ESP32-S3
Device Description
esp32proS3 : Unexpected Maker.
Hardware Configuration
Not relevant.
Version
v2.0.14
IDE Name
VSCode - ESP-IDF extension.
Operating System
Windows 11
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
I am using Arduino as a component linked to an ESP-IDF project. I get the following linker error when using the SPIFFS file system object and building with the O0 (no optimisation) sdkconfig setting.
Linker error "undefined reference to `vtable for fs::FileImpl'"
This has been noted in other forums/git repos, usually PlatformIO or Arduino IDE context and appears to be related to a change in the behaviour of the GCC toolchain. Switching optimisation back to Og resolves the problem but makes the debugger unusable, presumably most people on those forums are not using GDB.
I am using the matching version of the ESP-IDF tooling for the Arduino component which packages the following toolchain version: esp-2021r2-patch5-8.4.0
Is there a later (or earlier) version I should be using that resolves this issue? I can work my way back but it would be quicker if there is a known point at which the problem was introduced.
Sketch
Debug Message
Other Steps to Reproduce
None.
Additional notes:
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: