<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - scan-build fails to find C++ STL headers"
href="https://llvm.org/bugs/show_bug.cgi?id=26005">26005</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>scan-build fails to find C++ STL headers
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rjwalsh@durables.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15546" name="attach_15546" title="Output files.">attachment 15546</a> <a href="attachment.cgi?id=15546&action=edit" title="Output files.">[details]</a></span>
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: <a href="http://clang-analyzer.llvm.org/filing_bugs.html">http://clang-analyzer.llvm.org/filing_bugs.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>