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

Fails to build against Clang 9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.10.1
    • Fix Version/s: None
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
      openSUSE Tumbleweed
    • Platform/s:
      Linux/X11

      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:
              kosjar Nikolai Kosjar
              Reporter:
              vogtinator Fabian Vogt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes