-
Notifications
You must be signed in to change notification settings - Fork 628
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
zephyr: include libc utils when building with WASI support #3086
base: main
Are you sure you want to change the base?
zephyr: include libc utils when building with WASI support #3086
Conversation
Follows up the change in bytecodealliance#2585 to include libc utils when targeting zephyr, which abstracts posix filesystem functions. Signed-off-by: Daniel Mangum <[email protected]>
I have tried to fix the issue manually by modifying the PS: I'm building with |
@salva00 thanks for reporting! Could you share your build logs? |
@hasheddan Sure! This is my build log: |
@salva00 thanks! It appears that this PR does solve the inclusion of |
Hi, I'm not really familiar with zephyr and whether it is POSIX compliant or not. If it is, it should be a matter of adding the missing headers to |
Hello, any news on this issue ? Zephyr File System API is not POSIX compliant, so I think it's a bad idea to include But Zephyr implement it's own socket stack, which will requiere If I understand correctly, the first issue lies in the
I think that this issue is not limited to Zephyr but apply to most RTOS (freeRTOS, RIOT, ...) Should we do like with windows and abstract these concepts (at the OS level) ? @zoraaver What is your opinion on this ? |
Hi @lucasAbadFr,
That sounds fine to me, although it seems Zephyr does have a filesytem API -https://docs.zephyrproject.org/latest/services/file_system/index.html? If you just want socket support, you could just stub the filesystem functions (which it looks like you've done in #3335). Either way, you probably don't want to include
I think it's fine to abstract these types, similar to how we did for The best option in either case depends on your needs i.e. whether you need filesystem support or poll support in Zephyr. I hope that's helpful. Let me know if anything is unclear. |
Follows up the change in
#2585 to include libc utils when targeting zephyr, which abstracts posix filesystem functions.
Fixes #2846 (there may be subsequent issues that need to be addressed regarding WASI support on Zephyr)