Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586168 - sys-devel/llvm-3.7.1-r2 breaks ccc-analyzer/c++-analyzer
Summary: sys-devel/llvm-3.7.1-r2 breaks ccc-analyzer/c++-analyzer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 11:46 UTC by David Flogeras
Modified: 2016-07-03 07:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix -isystem in clang's static analyzer (llvm_isystem.patch,543 bytes, patch)
2016-06-17 11:47 UTC, David Flogeras
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2016-06-17 11:46:33 UTC
After upgrading, I hit a bug where the static analyzers do not work properly with Qt applications, and it turns  out it is because of incorrect handling of "-isystem" directives in the ccc-analyzer wrapper.

I found an upstream bug and it looks like it was fixed in SVN:

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

I'm attaching a patch, that I've modified to work with the way that Gentoo builds clang (as part of llvm).  It works for me as a user patch, but thought I'd give the Gentoo devs a chance to put it in portage so others benefit.


Reproducible: Always
Comment 1 David Flogeras 2016-06-17 11:47:30 UTC
Created attachment 437818 [details, diff]
Patch to fix -isystem in clang's static analyzer
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-03 07:18:51 UTC
commit bcee044c4c0e9f12b663f8886f181a7d46acea66
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Sun Jul 3 08:50:42 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Sun Jul 3 09:17:44 2016

    sys-devel/llvm: Fix static analyzer -isystem support, #586168