[llvm-bugs] [Bug 26005] New: scan-build fails to find C++ STL headers

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 2 21:46:16 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26005

            Bug ID: 26005
           Summary: scan-build fails to find C++ STL headers
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: rjwalsh at durables.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15546
  --> https://llvm.org/bugs/attachment.cgi?id=15546&action=edit
Output files.

Using scan-build from checker-277, I can't build my c++ files. I get this
error:

$ ~/Desktop/checker-277/scan-build make 
scan-build: Using '/Users/rjwalsh/Desktop/checker-277/bin/clang' for static
analysis
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C icebox
python3 icebox_chipdb.py > chipdb-1k.new
mv chipdb-1k.new chipdb-1k.txt
python3 icebox_chipdb.py -8 > chipdb-8k.new
mv chipdb-8k.new chipdb-8k.txt
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C icepack
/Users/rjwalsh/Desktop/checker-277/libexec/c++-analyzer -MD -O0 -ggdb -Wall
-std=c++11 -I/usr/local/include   -c -o icepack.o icepack.cc
icepack.cc:19:10: fatal error: 'set' file not found
#include <set>
         ^
1 error generated.
icepack.cc:19:10: fatal error: 'set' file not found
#include <set>
         ^
1 error generated.
/Users/rjwalsh/Desktop/checker-277/libexec/ccc-analyzer   icepack.o  -lm
-lstdc++ -o icepack
ln -sf icepack iceunpack
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C iceprog
/Users/rjwalsh/Desktop/checker-277/libexec/ccc-analyzer -MD -O0 -ggdb -Wall
-std=c99 -I/usr/local/Cellar/libftdi/1.2/include/libftdi1
-I/usr/local/Cellar/libusb/1.0.20/include/libusb-1.0   -c -o iceprog.o
iceprog.c
/Users/rjwalsh/Desktop/checker-277/libexec/ccc-analyzer   iceprog.o 
-L/usr/local/Cellar/libftdi/1.2/lib -L/usr/local/Cellar/libusb/1.0.20/lib
-lftdi1 -lusb-1.0 -lm -o iceprog
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C icemulti
/Users/rjwalsh/Desktop/checker-277/libexec/c++-analyzer -MD -O0 -ggdb -Wall
-std=c++11   -c -o icemulti.o icemulti.cc
icemulti.cc:17:10: fatal error: 'fstream' file not found
#include <fstream>
         ^
1 error generated.
icemulti.cc:17:10: fatal error: 'fstream' file not found
#include <fstream>
         ^
1 error generated.
/Users/rjwalsh/Desktop/checker-277/libexec/ccc-analyzer   icemulti.o  -lm
-lstdc++ -o icemulti
# /Applications/Xcode.app/Contents/Developer/usr/bin/make -C icetime
scan-build: 0 bugs found.
scan-build: The analyzer encountered problems on some source files.
scan-build: Preprocessed versions of these sources were deposited in
'/var/folders/59/t04m219n3xd322k9sv2gfmm40000gn/T/scan-build-2016-01-02-214517-1185-1/failures'.
scan-build: Please consider submitting a bug report using these files:
scan-build:   http://clang-analyzer.llvm.org/filing_bugs.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160103/75aebbd5/attachment-0001.html>


More information about the llvm-bugs mailing list