Summary: | sys-devel/llvm-3.7.1-r1: scan-build drops $CC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey 'L29Ah' Alirzaev <zl29ah> |
Component: | [OLD] Unspecified | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | Adrian.Bassett |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergey 'L29Ah' Alirzaev
2016-04-09 23:38:17 UTC
Please paste the verbose compiler output ('clang -v ...'). Are the libraries accessible via /usr/lib/clang? (without -64 suffix) Okay, in fact the problem is the static analyzer doing strange things with make: ‰ CFLAGS='-fsanitize=undefined' LDFLAGS='-fsanitize=undefined' scan-build make scan-build: Using '/usr/bin/x86_64-pc-linux-gnu-clang-3.7' for static analysis /usr/bin/ccc-analyzer -fsanitize=undefined -o catdoc catdoc.o reader.o writer.o analyze.o rtfread.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lubsan ... ‰ CFLAGS='-fsanitize=undefined' LDFLAGS='-fsanitize=undefined' CC=clang scan-build make scan-build: Using '/usr/bin/x86_64-pc-linux-gnu-clang-3.7' for static analysis /usr/bin/ccc-analyzer -fsanitize=undefined -o catdoc catdoc.o reader.o writer.o analyze.o rtfread.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lubsan ... ‰ CFLAGS='-fsanitize=undefined' LDFLAGS='-fsanitize=undefined' CC=clang make clang -fsanitize=undefined -o catdoc catdoc.o reader.o writer.o analyze.o rtfread.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o ...[ok]... It just calls gcc when run via scan-build, disregarding the environment. How do i rename the bug? (: FWICS it's intentional. You can either set CCC_CC and CCC_CXX, or use --use-cc, --use-c++ arguments to scan-build. |