Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81534

libclang assertion failed for LLVM built from source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.14.2, 5.15.0 Alpha
    • 5.12.5, 5.12.6, 5.13.0, 5.13.1, 5.13.2, 5.14.0
    • Build tools: qdoc
    • None
    • LLVM 10.0.0git built from official repository, installed into isolated environment
    • All
    • 1
    • 447f33743c3e07d645831f07b821ad76a203fd6f (qt/qttools/5.14)
    • DaVinci sprint 1, DaVinci sprint 2

    Description

      If the system has LLVM installation built from source taken with Git, the "git" suffix is added to the version string:

      llvm-config --version 
      10.0.0git

      The issue with file qttools/src/qdoc/configure.pri leads to the build system is unable to find libclang because it assumes only "svn" suffix. So it is needed to patch the file before configuration to correctly compile QDoc. To avoid the issue the following strings should be changed:

      defineReplace(extractVersion) { return($$replace(1, ^(\\d+\\.\\d+\\.\\d+)(svn)?$, \\1)) }
      defineReplace(extractMajorVersion) { return($$replace(1, ^(\\d+)\\.\\d+\\.\\d+(svn)?$, \\1)) }
      defineReplace(extractMinorVersion) { return($$replace(1, ^\\d+\\.(\\d+)\\.\\d+(svn)?$, \\1)) }
      defineReplace(extractPatchVersion) { return($$replace(1, ^\\d+\\.\\d+\\.(\\d+)(svn)?$, \\1)) }

       to

      defineReplace(extractVersion) { return($$replace(1, ^(\\d+\\.\\d+\\.\\d+)(svn|git)?$, \\1)) }
      defineReplace(extractMajorVersion) { return($$replace(1, ^(\\d+)\\.\\d+\\.\\d+(svn|git)?$, \\1)) }
      defineReplace(extractMinorVersion) { return($$replace(1, ^\\d+\\.(\\d+)\\.\\d+(svn|git)?$, \\1)) }
      defineReplace(extractPatchVersion) { return($$replace(1, ^\\d+\\.\\d+\\.(\\d+)(svn|git)?$, \\1)) }

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            twdragon Andrei Vukolov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes