Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1806

pyside6 build error. requires clang version 9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      66129dacde (pyside/pyside-setup/dev) 9f6ebba4e5 (pyside/pyside-setup/6.2) 9f6ebba4e5 (pyside/tqtc-pyside-setup/6.2) 66129dacde (pyside/tqtc-pyside-setup/dev) 66129dacde (pyside/tqtc-pyside-setup/tqtc/dev) 9f6ebba4e5 (pyside/pyside-setup/6.2.4)

      Description

      pyside6 and shiboken6 require llvm/clang version >=9

      with llvm/clang version <9 ...

      actual: build error
      expected: config error = should throw fatal error in configure phase

      similar:
      qttools requires clang 8
      https://code.qt.io/cgit/qt/qttools.git/tree/configure.cmake#n17

      qt_find_package(WrapLibClang 8 PROVIDED_TARGETS WrapLibClang::WrapLibClang)
      

      with clang 7 / clang 8: error: 'CXCursor_ExceptionSpecificationKind_NoThrow' was not declared

       

      [ 82%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/qtdocparser.cpp.o
      /build/pyside-setup-opensource-src-6.2.2/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp: In function 'ExceptionSpecification clang::exceptionSpecificationFromClang(clang::BaseVisitor*, const CXCursor&, bool)':
      /build/pyside-setup-opensource-src-6.2.2/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp:330:10: error: 'CXCursor_ExceptionSpecificationKind_NoThrow' was not declared in this scope; did you mean 'CXCursor_ExceptionSpecificationKind_None'?
        330 |     case CXCursor_ExceptionSpecificationKind_NoThrow:
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |          CXCursor_ExceptionSpecificationKind_None
       

        Attachments

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

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            milahu milan hauth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes