Open AntoineSX opened 4 months ago
I think the key point here is not the usage of fatfs component, but the usage of std::filesystem. I also got the same issue with the latest toolchain when trying std::filesystem.
We didn't have any test cases which used std::filesystem, so we didn't notice this issue when doing the last toolchain upgrade. We'll try to fix this soon. In the meantime, please try this patch which can help you temporarily bypass this issue: https://github.com/espressif/esp-idf/pull/13736#issuecomment-2102443764
Thank you ! The patch works. What's the timeframe for having a fix on the release branch ? I just need a ballpark figure.
Any update ?
Answers checklist.
IDF version.
v5.3-rc1
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Calling opendir, closedir, mkdir works in v5.2.2. I use std::filesystem to call std::filesystem::exists, std::filesystem::remove and std::filesystem::file_size with no issues.
What is the actual behavior?
With v5.3 you get a multiple definition error at link time with newlib's implementations of opendir, closedir, mkdir and so on.
Steps to reproduce.
Build or installation Logs.
More Information.
No response