[llvm-bugs] [Bug 25164] New: double -isystem == file not found

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 13 11:48:41 PDT 2015


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

            Bug ID: 25164
           Summary: double -isystem == file not found
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: dushistov at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Steps to reproduce:

1)Create simple c++ file like this:
$cat /tmp/test.cpp 
#include <QtCore/QLatin1String>

2)Let's say you have such file structure:

$ ls /usr/include/qt4/QtCore/QLatin1String
/usr/include/qt4/QtCore/QLatin1String

3)Try to compile it:
clang++ -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -c
/tmp/test.cpp

success
g++ -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -c /tmp/test.cpp
success

/usr/lib/clang-analyzer/scan-build/c++-analyzer -isystem /usr/include/qt4
-isystem /usr/include/qt4/QtGui -c /tmp/test.cpp 
/tmp/test.cpp:1:10: fatal error: 'QtCore/QLatin1String' file not found
#include <QtCore/QLatin1String>

but if I remove the second one -isystem:
/usr/lib/clang-analyzer/scan-build/c++-analyzer -isystem /usr/include/qt4  -c
/tmp/test.cpp

all works fine, no "file not found"

Looks like c++-analyzer can not handle multiply -isystem flags, while
clang (3.7) and gcc (5.2) works fine with them.

-- 
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/20151013/90141201/attachment.html>


More information about the llvm-bugs mailing list