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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 26 21:15:43 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11441

             Bug #: 11441
           Summary: 'clang -cc1 -analyzer-viz-egraph-graphviz' cannot find
                    <stdio.h>
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: bjs428 at mail.missouri.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Attempt to invoke analyzer's graph visualization with standard K&R 'hello
world' program as:

  clang -cc1 -analyzer-viz-egraph-graphviz hello.c

produces the following error:

  hello.c:1:10: fatal error: 'stdio.h' file not found
  #include <stdio.h>
         ^
  1 error generated.


Removing the '#include' silences the error, although clang then complains about
the resulting implicit declaration of 'printf'

-- 
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