[Qt-creator] Building LLVM/Clang with Clazy

Ivan Donchevskii ivan.donchevskii at qt.io
Tue Apr 24 16:43:26 CEST 2018


Hi!
But you wrote that

"I applied all the patches except for 1*0_QTCREATORBUG-15157*, i.e. I
built LLVM without Clazy support."


Without these patches you won't be able to build clazy inside llvm sources.

So you either apply them or do not build with clazy.


Regards,

Ivan

________________________________
From: Andrzej Telszewski <atelszewski at gmail.com>
Sent: Tuesday, April 24, 2018 4:33:37 PM
To: Ivan Donchevskii; qt-creatorqt-project.org
Subject: Re: [Qt-creator] Building LLVM/Clang with Clazy

Hi,

But I actually want to build it with Clazy.
In similar way that the Qt team is doing.

I showed it builds without Clazy just to demonstrate its Clazy that is
the problem here.

--
Best regards / Pozdrawiam,
Andrzej Telszewski


On 24/04/18 09:14, Ivan Donchevskii wrote:
> Hi!
>
> You write that you want to build it without clazy but you issue comes
> from clazy folder.
>
> Just remove this folder, it does not come with clang_tools_extra package :)
>
>
> Regards,
>
> Ivan
>
> ------------------------------------------------------------------------
> *From:* Qt-creator
> <qt-creator-bounces+ivan.donchevskii=qt.io at qt-project.org> on behalf of
> Andrzej Telszewski <atelszewski at gmail.com>
> *Sent:* Tuesday, April 24, 2018 8:04:37 AM
> *To:* qt-creatorqt-project.org
> *Subject:* [Qt-creator] Building LLVM/Clang with Clazy
> Hi,
>
> I've successfully built llvm, clang and clang-tools-extra version 5.0.1.
>
> I applied all the patches except for 1*0_QTCREATORBUG-15157*, i.e. I
> built LLVM without Clazy support.
>
> Then I built Qt Creator against it and Clang Code Model and Clang-Tidy
> work fine.
>
> Then I tried building LLVM with 1*0_QTCREATORBUG-15157* patches applied,
> but the build _FAILS_ with the following error:
>
> CMake Error at tools/clang/tools/extra/clazy/CMakeLists.txt:23
> (find_package):
>     No "FindClang.cmake" found in CMAKE_MODULE_PATH.
>
>
> CMake Warning (dev) at tools/clang/tools/extra/clazy/CMakeLists.txt:23
> (find_package):
>     FindClang.cmake must either be part of this project itself, in this case
>     adjust CMAKE_MODULE_PATH so that it points to the correct location
> inside
>     its source tree.
> [...]
>
>
> My cmake command is the following:
>
> cmake \
>       -DCMAKE_INSTALL_PREFIX=/usr/libexec/qtcreator/clang \
>       -DCMAKE_BUILD_TYPE=Release \
>       -G "Unix Makefiles" \
>       -DLLVM_ENABLE_RTTI=ON \
>       -DLLVM_ENABLE_ASSERTIONS=OFF \
>       -DLLVM_TARGETS_TO_BUILD="X86" \
>       -DBUILD_SHARED_LIBS=ON \
>       ..
>
>
> Help in resolving the problem appreciated! :-)
>
> --
> Best regards / Pozdrawiam,
> Andrzej Telszewski
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180424/8b4fc671/attachment.html>


More information about the Qt-creator mailing list