llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

scan-build fails to find C++ STL headers #26379

Open llvmbot opened 8 years ago

llvmbot commented 8 years ago
Bugzilla Link 26005
Version unspecified
OS MacOS X
Attachments Output files.
Reporter LLVM Bugzilla Contributor

Extended Description

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

     ^

1 error generated. icepack.cc:19:10: fatal error: 'set' file not found

include

     ^

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

     ^

1 error generated. icemulti.cc:17:10: fatal error: 'fstream' file not found

include

     ^

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

llvmbot commented 8 years ago

assigned to @tkremenek