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
[SR-15] Glibc module doesn't work with Gentoo: prefix is /usr/include/sys, not /usr/include/x86_64-linux-gnu/sys #42638
Comments
What Linux distribution/version/configuration are you using? |
Also, are you using the pre-built binaries, or rolling your own from sources? |
I'm rolling my own from sources. |
I suspect we will need some build-time configuration logic to figure out the right locations and generate the module map. |
Comment by James Laver (JIRA) I'm also a gentoo user and I've worked around this for now by symlinking /usr/include/x86-64-linux-gnu to /usr/include, if that helps other people in the meantime. |
Great - thank you for noting the workaround for others. |
Comment by Manolo van Ee (JIRA) This will be fixed by pull request 282: |
Comment by William Casarin (JIRA) This still doesn't fix the module map on NixOS, I'm getting this error:
any ideas? |
Comment by Manolo van Ee (JIRA) I've got no experience with NixOS, but I can give it a try. I assume you changed the following line in stdlib/public/Glibc/CMakeLists.txt: Is that correct? |
Comment by William Casarin (JIRA) Yeah I did, it looks like the library path just wasn't set up in my build properly. Sorry for the noise. |
Comment by Manolo van Ee (JIRA) Set to resolved. |
Additional Detail from JIRA
md5: d5a5cc8c191684fcb73a1cae75fc477f
Issue Description:
stdlib/public/Glibc/module.map contains hardcoded paths to glibc headers.
On my system all "module sys" paths are wrong, e.g.:
header "/usr/include/x86_64-linux-gnu/sys/ipc.h"
lives in /usr/include/sys/ipc.h on my system.
The text was updated successfully, but these errors were encountered: