[LLVMbugs] [Bug 23048] New: scan-build fails to build with -fstack-protector-strong

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 27 14:56:28 PDT 2015


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

            Bug ID: 23048
           Summary: scan-build fails to build with
                    -fstack-protector-strong
           Product: clang
           Version: 3.6
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: jhi at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 http://search.cpan.org/~shay/perl-5.21.10/

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.

-- 
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/20150327/d1728752/attachment.html>


More information about the llvm-bugs mailing list