Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.0
Description
When trying to build demos/maroon against Boot to Qt toolchain on Windows:
call C:\QT\6.9.0\Boot2Qt\imx8qm-mek\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\qt-cmake.bat -GNinja CMakeLists.txt -B build || goto :configure_error call cmake --build build --parallel || goto :build_error call cmake --install build --prefix C:\Users\qt\RTA\usr --config Debug || goto :install_error
it fails in the linking phase with:
[45/45] Linking CXX executable maroon FAILED: maroon C:\Windows\system32\cmd.exe /C "cd . && C:\QT\6.9.0\Boot2Qt\imx8qm-mek\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\aarch64-poky-linux\aarch64-poky-linux-g++.exe --sysroot=C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now CMakeFiles/maroon.dir/maroon_autogen/mocs_compilation.cpp.o CMakeFiles/maroon.dir/main.cpp.o CMakeFiles/maroon.dir/maroon_qmltyperegistrations.cpp.o CMakeFiles/maroon.dir/build/.qt/rcc/qrc_qmake_Maroon.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_qmlcache_loader.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/BuildButton_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/GameCanvas_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/GameOverScreen_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/InfoBar_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/NewGameScreen_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/mobs/MobBase_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/towers/Bomb_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/towers/Factory_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/towers/Melee_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/towers/Ranged_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/towers/TowerBase_qml.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_content/logic_js.cpp.o CMakeFiles/maroon.dir/build/.rcc/qmlcache/maroon_Main_qml.cpp.o CMakeFiles/maroon.dir/build/.qt/rcc/qrc_maroon_raw_qml_0.cpp.o CMakeFiles/maroon.dir/build/.qt/rcc/qrc_maroon_raw_qml_0_extra_qmldirs.cpp.o -o maroon -Wl,-rpath,$ORIGIN:$ORIGIN/../lib C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Quick.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Multimedia.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlMeta.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlWorkerScript.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlModels.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6OpenGL.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Qml.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Gui.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libGLESv2.so C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libEGL.so C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Network.so.6.9.0 C:/QT/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Core.so.6.9.0 && cd ." C:/Users/qt/RTA/B2Qt_6.9.0/6.9.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/x86_64-w64-mingw32/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/14.2.0/ld.exe: cannot open output file maroon: Permission denied
See: QTQAINFRA-6985
Same with demos/hangman
Might have something to do with the case (in)sensitivity on Windows.
Attachments
Issue Links
- duplicates
-
QTBUG-133792 Compiling demos/maroon and demos/hagman on Windows fails
-
- Reported
-
- relates to
-
QTQAINFRA-6985 g++ build fails: ld.exe cannot open output file <otuputfilename>: Permission denied
-
- Reported
-
-
QTBUG-133788 Ndef editor example cross-compiling on Windows to Boot2Qt fails
-
- In Review
-