Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"flockfile" and "funlockfile" aren't defined in ESP32? #3

Closed
girvo opened this issue Feb 17, 2022 · 3 comments
Closed

"flockfile" and "funlockfile" aren't defined in ESP32? #3

girvo opened this issue Feb 17, 2022 · 3 comments

Comments

@girvo
Copy link

girvo commented Feb 17, 2022

Hey mate, neat project. I am trying to stand up a new PlatformIO project with a FireBeetle32 using it, but have run into build errors (with the latest PIO and Nim):

Linking .pio\build\firebeetle32\firmware.elf
.pio\build\firebeetle32\src\nimcache\stdlib_io.nim.cpp.o:(.literal._Z11echoBinSafePP13NimStringDesci+0x8): undefined reference to `flockfile'
.pio\build\firebeetle32\src\nimcache\stdlib_io.nim.cpp.o:(.literal._Z11echoBinSafePP13NimStringDesci+0x10): undefined reference to `funlockfile'
.pio\build\firebeetle32\src\nimcache\stdlib_io.nim.cpp.o: In function `echoBinSafe(NimStringDesc**, int)':
C:\Users\JoshGirvin\Code\new-firmware/src\nimcache/stdlib_io.nim.cpp:55: undefined reference to `flockfile'
C:\Users\JoshGirvin\Code\new-firmware/src\nimcache/stdlib_io.nim.cpp:73: undefined reference to `funlockfile'

Obviously, trying to remove the reference to those doesn't do anything as they're regenerated. Any ideas how to work around this? According to ESP-IDF those definitions are basically noops as they haven't implemented them?

espressif/esp-idf#2565

Cheers!

@markspanbroek
Copy link
Owner

Thanks for reporting, @girvo! I'll take a look in the coming days. If possible, could you share your code so that I can quickly reproduce the issue?

@markspanbroek
Copy link
Owner

I haven't been able to reproduce this so far @girvo. Are you perhaps trying to use file i/o?

@markspanbroek
Copy link
Owner

Closing due to inactivity. Feel free to reopen with new information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants