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
fatal error: 'stdarg.h' file not found #353
Comments
That is surprising. Can you run IWYU like this to get more info on the effective search paths?
The only thing I can think of that might be the problem is that IWYU 0.6 might've been built against clang 3.8.0, not 3.8.1, but I'm not sure. The command above should dump the relevant version too. |
You are right, my IWYU is built against clang 3.8.0. After a system upgrade, my clang is upgraded but I did not rebuild the IWYU, hence the problem. After rebuilding IWYU, everything seems fine now. You can close this issue now, thanks. |
OK, thanks! |
Maybe iwyu should look for the paths dynamically and not at build time |
@sylvestre -- did you have a particular strategy in mind? Scanning the filesystem for whatever latest Clang headers exist? I don't know too much about the builtin headers, but I suspect that they're quite intimately tied to Clang/LLVM internals. Maybe that's an ungrounded concern? |
I got an error when checking this file:
My include-what-you-use is installed in /usr/bin. The command line I use is:
The output is:
According to README.md, my clang is installed in /usr/bin, so there should be a stdarg.h in /usr/lib/clang/3.8.1/include, and I checked, there is a stdarg.h in that directory. So what is wrong?
Environment:
The text was updated successfully, but these errors were encountered: