This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem configuring and running KDevelop's clazy plugin

Tags: None
(comma "," separated)
Petross404 (petross)
Registered Member
Posts
16
Karma
0
Hello fellow programmers, I hope you are all doing well.

I have configured CMake with
Code: Select all
-DCMAKE_CXX_COMPILER=/usr/bin/clazy -DCMAKE_C_COMPILER=/usr/bin/clang
and running (c)make from konsole emit warnings just fine.

But I have trouble configuring clazy plugin inside KDevelop. I have installed =dev-util/clazy-1.8 on Gentoo but plugin's configuration can't find any check https://imgur.com/a/yxXYCV6.

Also right-clicking the project and selecting "Analyze with-> Clazy" is giving a whole lot of errors about "'stddef.h' file not found" because for some reason it still uses GCC.

Code: Select all
> make -j 1 -k -f /mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/kdevcompileanalyzerbHIUYv.makefile
Clazy check started  for /mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/Calculator_autogen/mocs_compilation.cpp
/usr/bin/clazy-standalone -checks=level0,no-qenums -p="/mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build" "/mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/Calculator_autogen/mocs_compilation.cpp"
In file included from /mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/Calculator_autogen/mocs_compilation.cpp:2:
In file included from /mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/Calculator_autogen/V25XCPUVY2/moc_about.cpp:9:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/memory:64:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/x86_64-pc-linux-gnu/bits/c++allocator.h:33:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/ext/new_allocator.h:33:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/new:41:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/exception:147:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/exception_ptr.h:38:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/cxxabi_init_exception.h:38:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
make: *** [/mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/kdevcompileanalyzerbHIUYv.makefile:25: /mnt/Volume_3/Gentoo/projects/CPlus/metal_calculator/build/Calculator_autogen/mocs_compilation.cpp] Terminated
Elapsed time: 9.769 s.
*** Killed process ***


I am lost here. I mention again that working with clazy/clang++ (=sys-devel/clang-11.0.0) from terminal works fine. So my questions are:

1.Why doesn't KDevelop detects all the other checks and levels or clazy?

2.Had any other user these troubles with "'stddef.h' file not found" and how did he/she solved them?

Thank you for your time.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]