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

Build error with clang 14.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.9.1, 6.10.0
    • 6.9.1
    • PySide
    • None
    • 909f80fbb (dev), 6d8aeadd3 (6.9)

    Description

      Pyside is no longer buildable with libclang 14.0

      agent:2025/04/28 06:26:59 build.go:404: | /home/qt/work/build/build/tmp/work/x86_64-linux/python3-shiboken6-native/6.9.1-r0/git/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp: In function ‘CodeModel::FunctionType clang::functionTypeFromCursor(const CXCursor&)’:
      agent:2025/04/28 06:26:59 build.go:404: | /home/qt/work/build/build/tmp/work/x86_64-linux/python3-shiboken6-native/6.9.1-r0/git/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp:373:13: error: ‘clang_CXXMethod_isCopyAssignmentOperator’ was not declared in this scope
      agent:2025/04/28 06:26:59 build.go:404: |   373 |         if (clang_CXXMethod_isCopyAssignmentOperator(cursor) != 0)
      agent:2025/04/28 06:26:59 build.go:404: |       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      agent:2025/04/28 06:26:59 build.go:404: | /home/qt/work/build/build/tmp/work/x86_64-linux/python3-shiboken6-native/6.9.1-r0/git/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp:375:18: error: ‘clang_CXXMethod_isMoveAssignmentOperator’ was not declared in this scope
      agent:2025/04/28 06:26:59 build.go:404: |   375 |         else if (clang_CXXMethod_isMoveAssignmentOperator(cursor) != 0)
      agent:2025/04/28 06:26:59 build.go:404: |       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

      Available only in libclang 16.0: https://docs.rs/clang-sys/latest/clang_sys/fn.clang_CXXMethod_isMoveAssignmentOperator.html

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes