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

MOC command fails with std parsing error (due to wrong arch parameter generation in parameter)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 6.8
    • 6.8.0 RC
    • Build tools: moc
    • None
    • Linux/Yocto

    Description

      I am getting the following MOC error when building kwindowsystem against 6.8.0 RC in a Yocto Styhead build (many moving targets, so not very simple to locate the origin of the following issue. But I am filing a bug here to gather some insights where to further analyze:

      
      AutoMoc subprocess error                                                                                                                                                                                           
      ------------------------                                                                                                                                                                                           
      The moc process failed to compile                                                                                                                                                                                  
        "SRC:/src/kwindowshadow.h"                                                                                                                                                                                       
      into                                                                                                                                                                                                               
        "BIN:/src/KF6WindowSystem_autogen/include/moc_kwindowshadow.cpp"                                                                                                                                                 included by                                                                                                                                                                                                        
        "SRC:/src/kwindowshadow.cpp"                                                                                                                                                                                     
      Process failed with return value 1                                                                                                                                                                                 
                                                                                                                                                                                                                         
      Command                                                                                                                                                                                                            
      -------                                                                                                                                                                                                            
      /opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot-native/usr/libexec/moc -DKF6WindowSystem_EXPORTS -DKWINDOWSYSTEM_DEPRECATED_WARNINGS_SINCE=0x0 -DKWINDOWSYSTE
      M_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x70000 -DQT_DISABLE_DEPRECATED_BEFORE=0x60500 -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO
      _ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/op
      t/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/build/src -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/kwindowsystem-6.6.0/src -I/o
      pt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/kwindowsystem-6.6.0/src/platforms/xcb -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtGui/6.8.1 -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtGui/6.8.1/QtGui -I/opt/yocto/kde/master/build-qcom-ar
      mv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtCore/6.8.1 -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtC
      ore/6.8.1/QtCore -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtCore -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/lib/mkspecs/linux-g++ -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/QtGui -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/14.2.0/include -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/14.2.0/include-fixed -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c++/14.2.0 "-I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c++/14.2.0/aaGNU assembler version 2.43.1 (aarch64-poky-linux) using BFD version (GNU Binutils) 2.43.1" -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c++/14.2.0/backward -I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/lib/aarch64-poky-linux/14.2.0/include --include /opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/build/src/KF6WindowSystem_autogen/moc_predefs.h --output-json --output-dep-file -o /opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/build/src/KF6WindowSystem_autogen/include/moc_kwindowshadow.cpp /opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/kwindowsystem-6.6.0/src/kwindowshadow.h                                                                                                                                                                                                                                                                                                                                                                                Output                                                                                                                                                                                                             ------                                                                                                                                                                                                             opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c++/14.2.0/type_trait:65:1: error: Parse error at "std" 
      

      The actual issue is the generation of the MOC command where I do not know where this comes from because the parameter '"-I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c+/14.2.0/aaGNU assembler version 2.43.1 (aarch64-poky-linux) using BFD version (GNU Binutils) 2.43.1" is clearly wrong. replacing this with "-I/opt/yocto/kde/master/build-qcom-armv8a/tmp/work/armv8a-poky-linux/kwindowsystem/6.6.0/recipe-sysroot/usr/include/c+/14.2.0/aarch64-poky-linux" fixes the MOC call.

      So I wonder, where is this parameter generated?

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            cordlandwehr Andreas Cord-Landwehr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes