Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23172

Fails to build against Clang with dynamic clang-cpp library

    XMLWordPrintable

Details

    • Linux/X11
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            vogtinator Fabian Vogt
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes