<div dir="ltr"><br><div>I found something. After removing clang and llvm from my system I get the following error which is the same as before removing clang.</div><div><br></div><div>I think the actual problem is <span style="font-family:monospace">clang_parseTranslationUnit2 can not call clang even before removing clang</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Is there a way to verify such a situation?</span></div><div><br></div><div><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,84,255)">kde/build/kdevelop/bin</span><span style="color:rgb(0,0,0)">$ KDEV_CLANG_DISPLAY_ARGS=1 KDEV_CLANG_DISPLAY_DIAGS=1  ./kdevelop                              </span><br>Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
<br>kdevplatform.util: Path::init: invalid/unsupported Path encountered:  <a href="http://clang-tidy">http://clang-tidy</a>
<br>kf.kio.slaves.file: copy() QUrl("file:///media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/ex1.kdev4") to QUrl("file:///tmp/kdevelop.CKycps") mode= -1
<br>kf.kio.slaves.file: the file doesn't have any xattr
<br>qrc:/qml/area_code.qml:56:9: Type NewsFeed unavailable
<br>qrc:/qml/NewsFeed.qml:10:1: module "QtQuick.XmlListModel" is not installed
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c99 -nostdinc -xc -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/us<br>r/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.RRnVGg /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main2.c
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main2.c"
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++ -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/include/c++/10 -isystem/usr/include/x86_64-linu<br>x-gnu/c++/10 -isystem/usr/include/c++/10/backward -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/usr/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.pNTwmx -working-directory/<br>media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c99 -nostdinc -xc -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/us<br>r/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.nbtZxb /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.23.0/CompilerIdC/CMakeCCompilerId.c
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++ -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/include/c++/10 -isystem/usr/include/x86_64-linu<br>x-gnu/c++/10 -isystem/usr/include/c++/10/backward -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/usr/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.hLNvqN /media/enes/MyFiles<br>/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c99 -nostdinc -xc -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/us<br>r/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.cdBxfT /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c
<br>Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++ -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/include/c++/10 -isystem/usr/include/x86_64-linu<br>x-gnu/c++/10 -isystem/usr/include/c++/10/backward -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu -isystem/usr/include -isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -imacros /tmp/kdevelop.WVFrbU /media/enes/MyFiles<br>/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.23.0/CompilerIdC/CMakeCCompilerId.c"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp"<br>
<br></span></div><div><span style="font-family:monospace"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 12, 2022 at 10:31 AM Enes Albay <<a href="mailto:albayenes@gmail.com">albayenes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div>Ok, I will try to solve the issue. I will inform you if I can find the source of the problem. Thanks for your concern.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 12, 2022 at 10:26 AM Milian Wolff <<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Montag, 11. April 2022 22:58:15 CEST Enes Albay wrote:<br>
> I have two versions of clang. clang 11 and clang 13 . I installed clang 13<br>
> after the error.<br>
<br>
OK, and kdevelop is using libclang11 too I guess. Generally though, I can only <br>
repeat what I said - I have zero clue what could be going on over on your <br>
side. You'll have to debug that yourself I'm afraid, I haven't seen such an <br>
issue myself. It works just fine for me<br>
<br>
Good luck<br>
<br>
> kde/src/kdevelop/plugins/clang$ clang --version<br>
> Debian clang version 11.1.0-6+b2<br>
> Target: x86_64-pc-linux-gnu<br>
> Thread model: posix<br>
> InstalledDir: /usr/bin<br>
> <br>
> On Mon, Apr 11, 2022 at 11:08 PM Milian Wolff <<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>> wrote:<br>
> > On Montag, 11. April 2022 20:16:33 CEST Enes Albay wrote:<br>
> > > It does not give any error<br>
> > > <br>
> > > ~$ clang -ferror-limit=100 -fspell-checking -Wunused-parameter<br>
> > > -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++<br>
> > > -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/include/c++/11<br>
> > > -isystem/usr/include/x86_64-linux-gnu/c++/11<br>
> > > -isystem/usr/include/c++/11/backward -isystem/usr/local/include<br>
> > > -isystem/usr/include/x86_64-linux-gnu -isystem/usr/include -isystem<br>
> > > /usr/lib/llvm-11/lib/clang/11.1.0/include -imacros<br>
> > > /home/enes/clan_defines.cpp<br>
> > <br>
> > -working-directory/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/bu<br>
> > il> <br>
> > > d /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp<br>
> > <br>
> > Hm this is very odd, I cannot really come up with a theory to explain<br>
> > this.<br>
> > <br>
> > Just to double check - `clang --version` also gives version 11.1.0? Or do<br>
> > you<br>
> > have multiple versions installed maybe? What version of libclang do you<br>
> > have<br>
> > installed?<br>
> > <br>
> > All of this works fine for me after all...<br>
> > <br>
> > --<br>
> > Milian Wolff<br>
> > <a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a><br>
> > <a href="http://milianw.de" rel="noreferrer" target="_blank">http://milianw.de</a><br>
<br>
<br>
-- <br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a><br>
<a href="http://milianw.de" rel="noreferrer" target="_blank">http://milianw.de</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div style="text-align:left">Enes Albay</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="text-align:left">Enes Albay</div></div></div>