Discussion:
[Qt-creator] Building LLVM/Clang with Clazy
Andrzej Telszewski
2018-04-24 06:04:37 UTC
Permalink
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
Ivan Donchevskii
2018-04-24 07:14:37 UTC
Permalink
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-project.org> on behalf of Andrzej Telszewski <***@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
Andrzej Telszewski
2018-04-24 14:33:37 UTC
Permalink
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-project.org> on behalf of
> Andrzej Telszewski <***@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-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
Ivan Donchevskii
2018-04-24 14:43:26 UTC
Permalink
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 <***@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-project.org> on behalf of
> Andrzej Telszewski <***@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-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
Andrzej Telszewski
2018-04-24 15:02:55 UTC
Permalink
Hi,

But I also wrote that later I applied the 1*0_QTCREATORBUG-15157 patches
and the build with Clazy failed. ;-)

--
Best regards / Pozdrawiam,
Andrzej Telszewski

On 24/04/18 16:43, Ivan Donchevskii wrote:
> 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 <***@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-project.org> on behalf of
>> Andrzej Telszewski <***@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-***@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
Ivan Donchevskii
2018-04-24 15:07:19 UTC
Permalink
Ah, I get it now.


Which version of clazy do you try?

Our build should work with master but probably not with the release branch.


Regards,

Ivan

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Andrzej Telszewski <***@gmail.com>
Sent: Tuesday, April 24, 2018 5:02:55 PM
To: qt-***@qt-project.org
Subject: Re: [Qt-creator] Building LLVM/Clang with Clazy

Hi,

But I also wrote that later I applied the 1*0_QTCREATORBUG-15157 patches
and the build with Clazy failed. ;-)

--
Best regards / Pozdrawiam,
Andrzej Telszewski

On 24/04/18 16:43, Ivan Donchevskii wrote:
> 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 <***@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-project.org> on behalf of
>> Andrzej Telszewski <***@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-***@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
Andrzej Telszewski
2018-04-24 15:17:42 UTC
Permalink
Hi,

I used Clazy 1.3, tagged release.

Can you tell me which exact commit you used?

--
Best regards / Pozdrawiam,
Andrzej Telszewski


On 24/04/18 17:07, Ivan Donchevskii wrote:
> Ah, I get it now.
>
>
> Which version of clazy do you try?
>
> Our build should work with master but probably not with the release branch.
>
>
> Regards,
>
> Ivan
>
>>> *From:* Qt-creator
>>> <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of
>>> Andrzej Telszewski <***@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-***@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
Ivan Donchevskii
2018-04-24 15:23:03 UTC
Permalink
This one - 427ad7689ac65bc4106c0a420c1165cc57f1eef7

I think you can also use HEAD without much of a trouble.

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Andrzej Telszewski <***@gmail.com>
Sent: Tuesday, April 24, 2018 5:17:42 PM
To: qt-***@qt-project.org
Subject: Re: [Qt-creator] Building LLVM/Clang with Clazy

Hi,

I used Clazy 1.3, tagged release.

Can you tell me which exact commit you used?

--
Best regards / Pozdrawiam,
Andrzej Telszewski


On 24/04/18 17:07, Ivan Donchevskii wrote:
> Ah, I get it now.
>
>
> Which version of clazy do you try?
>
> Our build should work with master but probably not with the release branch.
>
>
> Regards,
>
> Ivan
>
>>> *From:* Qt-creator
>>> <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of
>>> Andrzej Telszewski <***@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-***@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
Andrzej Telszewski
2018-04-24 22:11:04 UTC
Permalink
Hi,

Yep, that was it.
I built using commit 427ad76 of Clazy and it worked fine.

Thanks!

--
Best regards / Pozdrawiam,
Andrzej Telszewski

On 24/04/18 17:23, Ivan Donchevskii wrote:
> This one - 427ad7689ac65bc4106c0a420c1165cc57f1eef7
>
> I think you can also use HEAD without much of a trouble.
>
> ------------------------------------------------------------------------
> *From:* Qt-creator
> <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of
> Andrzej Telszewski <***@gmail.com>
> *Sent:* Tuesday, April 24, 2018 5:17:42 PM
> *To:* qt-***@qt-project.org
> *Subject:* Re: [Qt-creator] Building LLVM/Clang with Clazy
> Hi,
>
> I used Clazy 1.3, tagged release.
>
> Can you tell me which exact commit you used?
>
> --
> Best regards / Pozdrawiam,
> Andrzej Telszewski
>
>
> On 24/04/18 17:07, Ivan Donchevskii wrote:
>> Ah, I get it now.
>>
>>
>> Which version of clazy do you try?
>>
>> Our build should work with master but probably not with the release branch.
>>
>>
>> Regards,
>>
>> Ivan
>>
>>>> *From:* Qt-creator
>>>> <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of
>>>> Andrzej Telszewski <***@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-***@qt-project.org
>>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-***@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
Loading...