[LLVMbugs] [Bug 11441] 'clang -cc1 -analyzer-viz-egraph-graphviz' cannot find <stdio.h>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 29 18:13:58 PST 2011


Ted Kremenek <kremenek at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Ted Kremenek <kremenek at apple.com> 2011-11-29 20:13:58 CST ---
(In reply to comment #4)
> > Does 'clang test.c' work?  -cc1 results in invoking the low-level driver, so
> > you may just not be passing enough stuff for your system.  The high-level
> > driver infers many of the arguments for the low-level driver based on context.
> Indeed, 'clang test.c' does work as expected.  The 'test.c' in question is just
> the trivial program I referenced above, i.e.
>   #include <stdlib.h>
>   int main(){
>     return 0;
>   }
> which (thankfully!) compiles just fine.  However, 'clang -cc1' chokes on this
> program, as well as every other program I have tried, with the above error.

I suspect you just aren't passing enough low-level driver arguments.


$ clang test.c -###

and it will print out the low level driver arguments.  You will see what is
likely required to get clang -cc1 to work on your code.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list