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

Yocto+clang/shiboken6: 'type_traits' file not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10.0
    • Shiboken
    • None
    • Linux/Yocto

      When cross-compiling pyside6 in Yocto and using clang instead GCC compiler, following failure occurs:

      FAILED: [code=1] PySide6/QtConcurrent/mjb_rejected_classes.log PySide6/QtConcurrent/PySide6/QtConcurrent/qtconcurrent_wrapper.cpp PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturevoid_wrapper.cpp PySide6/QtConcurrent/PySide6/QtConcurrent/qfutureqstring_wrapper.cpp PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturewatchervoid_wrapper.cpp PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturewatcherqstring_wrapper.cpp PySide6/QtConcurrent/PySide6/QtConcurrent/qtconcurrent_module_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/mjb_rejected_classes.log /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qtconcurrent_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturevoid_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qfutureqstring_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturewatchervoid_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qfuturewatcherqstring_wrapper.cpp /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent/PySide6/QtConcurrent/qtconcurrent_module_wrapper.cpp 
      cd /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6/QtConcurrent && /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/.qfp/bin/shiboken_wrapper.sh /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot-native/usr/bin/shiboken6 \ \ \ \ \ \ \ \ --clang-options=--sysroot=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot,--target=aarch64-poky-linux,,-mcpu=cortex-a57+crc,-mbranch-protection=standard,,--dyld-prefix=/usr,-fstack-protector-strong,,-O2,-D_FORTIFY_SOURCE=2,-Wformat,-Wformat-security,-Werror=format-security,\ \ \ \ \ \ \ \ \ --compiler-path=aarch64-poky-linux-clang++ --generator-set=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic --use-isnull-as-nb-bool --include-paths=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/lib/mkspecs/linux-clang:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include/QtCore --force-process-system-include-paths=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/lib/mkspecs/linux-clang:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include/QtCore:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include --typesystem-paths=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6:/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6/QtConcurrent --output-directory=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent --license-file=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6/QtConcurrent/../licensecomment.txt --lean-headers --api-version=6.10.1 --platform=Linux --arch=aarch64 --compiler-path=/home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++ /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/build/PySide6/QtConcurrent_global.h /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/sources/python3-pyside6-6.10.1/sources/pyside6/PySide6/QtConcurrent/typesystem_concurrent.xml
      /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/python3-pyside6/6.10.1/recipe-sysroot/usr/include/QtCore/qglobal.h:13:12: fatal error: 'type_traits' file not found
      qt.shiboken: (concurrent) CLANG v0.64 targeting "aarch64-poky-linux"/clang, 64bit, (cross build). 

      This points to similar failure with GCC PYSIDE-1012

      I can workaround this issue by adding

      -DSHIBOKEN_GENERATOR_EXTRA_FLAGS=--compiler=gnu  

        For Gerrit Dashboard: PYSIDE-3235
        # Subject Branch Project Status CR V

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

              Created:
              Updated: