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: kreme...@apple.com Reporter: rjwa...@durables.org CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs