-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
undefined symbol: sysinfo #8038
Comments
We don't have full POSIX support, so stuff like sysinfo is just not yet implemented. For sysinfo specifically, we can't tell the actual system-level values of those things, like swap, so at best we could just report them as "0" probably. |
I see, do you know if there is any way to get any sort of information on the device it is running on? Uname doesn't report everything too. |
The question is what APIs are present. In node.js maybe they do give APIs that let you do this? On the web, which is most of our focus, it carefully sandboxes things so you can't tell stuff like swap space etc. (however, there might be APIs for specific things, like the number of cpus?) |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Hi,
I am trying to compile sysinfo with emscripten:
I compile it using:
emcc --bind -o wasm.js wasm.cpp
However, it always generates the following compilation error:
error: undefined symbol: sysinfo
However, I do see the sys/sysinfo.h header file at
~/emsdk/emscripten/1.38.26/system/include/libc/sys
I've noticed the same issue with many other libc header files - sys/personality.h, sys/quota.h, etc, where the header files do exist in emscripten but the compiler still generates undefined symbol errors.
Am I missing a compiler flag, or are these functions not supported?
The text was updated successfully, but these errors were encountered: