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

'stdlib.h' file not found #242

Closed
firekind opened this issue Dec 18, 2023 · 1 comment
Closed

'stdlib.h' file not found #242

firekind opened this issue Dec 18, 2023 · 1 comment

Comments

@firekind
Copy link

Hello,
I was trying to compile a simple hello world c program with stdlib.h included. The toolchain was configured with the chromium sysroot, and I was compiling it in an ubuntu 20.04 docker container. While it was compiling, it threw a fatal error: 'stdlib.h' file not found.

I tried running the omp_test.c test using the sysroot toolchain configured in MODULE.bazel, and even that threw the same error. The error goes away when I install libc6-dev package, which contains the required headers.

Is there any additional configuration required to use the headers present in the sysroot? and avoid installing packages in the container?

some additional information:
I'm using #235 instead of master, since I'm using bzlmod

@siddharthab
Copy link
Contributor

You definitely need to have libc headers until #155 is resolved. Other dependencies can be ncurses, libtinfo, etc. Container tests in tests/scripts/ can be informative to some extent. Please reopen if you want more 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