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

Fails to build against Clang with dynamic clang-cpp library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.10.1
    • Fix Version/s: Qt Creator 4.14.0-beta1
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
      openSUSE Tumbleweed
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There is 1 open Gerrit change