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

[Boot2Qt] Cannot build "Cockpit" example app for Boot2Qt device on Windows machine

    XMLWordPrintable

Details

    • Windows
    • 8a13776f9 (dev), 6e60e2b06 (6.8)

    Description

      Host: Windows 10 

      Qt Creator 14.0.2

      Device: Raspberry Pi4 64 bit with Qt 6.8.0 RC

      Steps to reproduce:

      1. Launch Qt Creator on Windows and select the "Cockpit" app from the examples tab
      2. Select Boot2Qt kit and try to build the app.

      Expected: The project will be built

      Actual: The app could not be built because of the failure. The issue is not reproducible when building the project on Linux.

      20:46:58: Running steps for project cockpit...
      20:46:58: Starting: "C:\Qt\6.8.0\Boot2Qt\raspberrypi-armv8\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\cmake.exe" --build C:/Qt/Examples/Qt-6.8.0/graphs/2d/cockpit/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug --target all install
      [1/2 1.4/sec] Linking CXX executable cockpit
      FAILED: cockpit 
      C:\windows\system32\cmd.exe /C "cd . && C:\Qt\6.8.0\Boot2Qt\raspberrypi-armv8\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\aarch64-poky-linux\aarch64-poky-linux-g++.exe --sysroot=C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux -mcpu=cortex-a53+crc -mbranch-protection=standard -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux -g -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  -Wl,-z,relro,-z,now CMakeFiles/cockpit.dir/cockpit_autogen/mocs_compilation.cpp.o CMakeFiles/cockpit.dir/main.cpp.o CMakeFiles/cockpit.dir/cockpit_qmltyperegistrations.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.qt/rcc/qrc_qmake_CockPit.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.qt/rcc/qrc_qmake_CockPit_copy.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.rcc/qmlcache/cockpit_qmlcache_loader.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.rcc/qmlcache/cockpit_qml/cockpit/main_qml.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.rcc/qmlcache/cockpit_qml/cockpit/Speedometer_qml.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.rcc/qmlcache/cockpit_qml/cockpit/Map_qml.cpp.o CMakeFiles/cockpit.dir/33820d901c1421fd34c9767cba275e5e/.rcc/qmlcache/cockpit_qml/cockpit/ArtificialHorizon_qml.cpp.o CMakeFiles/cockpit.dir/33820d901c1421fd34c9767cba275e5e/.rcc/qmlcache/cockpit_qml/cockpit/VibrationSensor_qml.cpp.o CMakeFiles/cockpit.dir/33820d901c1421fd34c9767cba275e5e/.rcc/qmlcache/cockpit_qml/cockpit/ControlPanel_qml.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.qt/rcc/qrc_cockpit_raw_qml_0.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.qt/rcc/qrc_cockpit_shaders.cpp.o CMakeFiles/cockpit.dir/build/Boot2Qt_6_8_0_Raspberry_Pi_Development_Boards_64bit-Debug/.qt/rcc/qrc_cockpit.cpp.o -o cockpit  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Graphs.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Quick3D.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Quick3DRuntimeRender.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Quick3DUtils.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6ShaderTools.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Concurrent.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Quick.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6OpenGL.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Gui.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libGLESv2.so  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libEGL.so  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6QmlMeta.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6QmlModels.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6QmlWorkerScript.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Qml.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Network.so.6.8.0  C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/cortexa53-poky-linux/usr/lib/libQt6Core.so.6.8.0 && cd ."
      C:/Qt/6.8.0/Boot2Qt/raspberrypi-armv8/toolchain/sysroots/x86_64-w64-mingw32/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld.exe: cannot open output file cockpit: Permission denied
      collect2.exe: error: ld returned 1 exit status
      ninja: build stopped: subcommand failed.
      20:46:59: The process "C:\Qt\6.8.0\Boot2Qt\raspberrypi-armv8\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\cmake.exe" exited with code 1.
      Error while building/deploying project cockpit (kit: Boot2Qt 6.8.0 Raspberry Pi Development Boards (64bit))
      When executing step "Build" 

       

      Reproducibility:  100%

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-129352
          # Subject Branch Project Status CR V

          Activity

            People

              tokorpip Tomi Korpipää
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes