-
Notifications
You must be signed in to change notification settings - Fork 52
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
Compilation failed, 'stddef.h' file not found #1
Comments
Hm, can you compile a simple C program that includes |
I did have an issue with my |
You are right. From the initial listing you provided it seems like |
I just installed Fedora 22 in a VM and tried to reproduce the problem without success (that is, I could successfully build I also had an issue about |
I didn't have |
|
I had this same problem on Ubuntu 16.04.1 -- If I installed |
Ran into this problem while trying this on our HPC cluster, even though I installed What I ended up doing was to (1) Run echo '#include <stddef.h>' | mpicc -M -E - to find out where the standard headers are. It should print something like: -.o: \
/some/weird/path/include/stddef.h (2) Before building export C_INCLUDE_PATH=/some/weird/path/include"${C_INCLUDE_PATH+:}${C_INCLUDE_PATH-}" Edit: Changed command to use |
Sorry to raise the dead here, but this seems to still be an issue. Trying to compile on arch linux, clang, openmpi etc are installed. I hit the
Any ideas on how this can be fixed? |
The MPI compiler on Arch Linux uses GCC by default (not Clang). Therefore setting What happens if you don’t set |
a stddef.h not found error:
If I do the same trick as you mentioned before but use gcc instead, I get further it seems, and I end up with:
|
That’s odd. I tested this on a fresh Arch container with only Did you install
|
OK, thanks - good to know. Neither of those suggestions give me any joy, but if the container works then it's certainly something on my own system that's the problem. I'll investigate further on my end. Thanks for the help. |
This might be easier to debug if you try to apply |
I tried to run the example provided in the
README.md
file. However, the compilation of thempi
crate failed for me with the following output:I'm running Fedora 22, Rust 1.3.0, and openmpi 1.8.7-1 from the Fedora repos.
The text was updated successfully, but these errors were encountered: