<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 build with -fstack-protector-strong"
   href="https://llvm.org/bugs/show_bug.cgi?id=23048">23048</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>scan-build fails to build with -fstack-protector-strong
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </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>jhi@iki.fi
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I tried to use scan-build (OS X; installed via macport), for the latest Perl
source code (hence the -Dusedevel below), but probably works for e.g. Perl
5.21.10 snapshot from <a href="http://search.cpan.org/~shay/perl-5.21.10/">http://search.cpan.org/~shay/perl-5.21.10/</a>

sh Configure -des -Dusedevel -Dcc=clang-mp-3.6

scan-build-mp-3.6 make

/opt/local/libexec/llvm-3.6/libexec/scan-build/ccc-analyzer
-fstack-protector-strong -L/opt/local/lib -force_flat_namespace -o miniperl \
        perlmini.o opmini.o miniperlmain.o  gv.o toke.o perly.o pad.o regcomp.o
dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o
pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o
universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o
pp_sort.o caretx.o   -lpthread -ldl -lm -lutil -lc 
clang: error: unknown argument: '-fstack-protector-strong'
make: *** [lib/buildcustomize.pl] Error 1
scan-build: Removing directory
'/var/folders/yg/hdcrkqfx5cgc80b9zgbhnw_h0000gn/T/scan-build-2015-03-27-173123-32195-1'
because it contains no reports.
scan-build: No bugs found.

The -fstack-protector-strong gets added automatically by Configure.  (Note: it
really is Configure, not configure.)  I got past the error by

perl -pi -e 's/-fstack-protector-strong//' config.sh

and re-issuing the scan-build.</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>