Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.10.1
-
None
-
openSUSE Tumbleweed
-
-
6cff79d377b4dc5e914873f008d3c6f1ec74ddf2 (qt-creator/qt-creator/master)
Description
With Clang 9, there's now an option to build a "libclang-cpp.so" shared library, which is recommended over the unsupported option to build the split components as libraries "libclangFormat.so", "libclangIndex.so", etc: http://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes
The Qt Creator qmake config hardcodes a list of the clang components though and thus it fails to build:
[ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangFormat [ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangToolingInclusions [ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangToolingCore [ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangRewrite [ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangLex [ 2123s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lclangBasic [ 2123s] collect2: error: ld returned 1 exit status [ 2123s] make[3]: *** [Makefile:117: ../../../lib64/qtcreator/plugins/libClangFormat.so] Error 1
Attachments
For Gerrit Dashboard: QTCREATORBUG-23172 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
299377,11 | Fix building against clang configured with CLANG_LINK_CLANG_DYLIB | master | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 |
309581,3 | CMake build: Support building clang tooling without static libs | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
320697,1 | Fix building against clang configured with CLANG_LINK_CLANG_DYLIB | 4.14 | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |