kdev-clang not finding included files
Sven Brauch
mail at svenbrauch.de
Mon Jul 11 21:16:03 UTC 2016
Ok, follow-up on our IRC talk:
clang is invoked like this:
Invocation: clang -ferror-limit=100 -fspell-checking -Wdocumentation
-Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc
-nostdinc++ -xc++ -isystem
/home/sven/install/share/kdevclangsupport/wrappedQtHeaders -isystem
/home/sven/install/share/kdevclangsupport/wrappedQtHeaders/QtCore
-isystem/usr/include/qt -isystem/usr/include/qt/QtCore
-isystem/usr/lib/qt/mkspecs/linux-g++
-isystem/usr/include/KF5/KTextEditor -isystem/usr/include/KF5
-isystem/usr/include/KF5/KParts -isystem/usr/include/KF5/KIOWidgets
-isystem/usr/include/KF5/KIOCore -isystem/usr/include/KF5/KCoreAddons
-isystem/usr/include/KF5/KService -isystem/usr/include/KF5/KConfigCore
-isystem/usr/include/KF5/KJobWidgets -isystem/usr/include/qt/QtWidgets
-isystem/usr/include/qt/QtGui -isystem/usr/include/qt/QtNetwork
-isystem/usr/include/KF5/KCompletion
-isystem/usr/include/KF5/KWidgetsAddons -isystem/usr/include/KF5/KXmlGui
-isystem/usr/include/qt/QtDBus -isystem/usr/include/qt/QtXml
-isystem/usr/include/KF5/KConfigWidgets -isystem/usr/include/KF5/KCodecs
-isystem/usr/include/KF5/KConfigGui -isystem/usr/include/KF5/KAuth
-isystem/usr/include/KF5/KTextWidgets -isystem/usr/include/KF5/SonnetUi
-isystem/usr/include/KF5/KI18n -isystem/usr/include/KF5/ThreadWeaver
-isystem/home/sven/install/include/kdevplatform
-isystem/home/sven/install/include -isystem/usr/include/KF5/KItemModels
-isystem/usr/include -isystem/usr/include/c++/6.1.1
-isystem/usr/include/c++/6.1.1/x86_64-pc-linux-gnu
-isystem/usr/include/c++/6.1.1/backward -isystem/usr/local/include
-isystem/usr/lib/clang/3.8.0/include -isystem/usr/include
-I/home/sven/Projekte/kde/kdevelop/build/languages/clang
-I/home/sven/Projekte/kde/kdevelop/languages/clang
-I/home/sven/Projekte/kde/kdevelop
-I/home/sven/Projekte/kde/kdevelop/build
-I/home/sven/Projekte/kde/kdevelop/languages/clang/libs
-I/home/sven/Projekte/kde/kdevelop/languages/plugin -imacros
/tmp/kdevelop.pJ1057
/home/sven/Projekte/kde/kdevelop/languages/clang/duchain/parsesession.cpp
Doing that on command line reproduces the issue. The issue is that
-isystem/usr/include is there twice, once as first and once as last path
in the standard include paths list. If you remove the _first_ occurence,
it works. I suspect some kind of circular #include or something if you
have it in the first place.
Do you clang people know what the reason for this is?
Best,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20160711/a766235c/attachment.sig>
More information about the KDevelop-devel
mailing list