Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] qt/6.5.0: Build failure when -o qt:qtdeclarative=True when running qsb.exe #17781

Open
szigetics opened this issue Jun 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@szigetics
Copy link

szigetics commented Jun 1, 2023

Description

I am trying to build Qt 6.5.0 using the following command :
conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s build_type =Release -o qt:gui=True -o qt:with_pcre2=True -o qt:with_glib=False -o qt:with_doubleconversion=True -o qt:with_harfbuzz=True -o qt:with_libjpeg=libjpeg-turb o -o qt:with_libpng=True -o qt:with_sqlite3=False -o qt:with_mysql=False -o qt:with_pq=False -o qt:with_odbc=False -o qt:with_brotli=False -o qt:with_openal= False -o qt:with_zstd=False -o qt:qtimageformats=False -o qt:qttranslations=True -o qt:qtdeclarative=True -o qt:qtsvg=True -o qt:qttools=True -o qt:qtshadert ools=True -o qt:qtlocation=False -o qt:qtpositioning=False -o qt:qtgrpc=False -o qt:qtquickeffectmaker=False -o zlib:shared=False -o harfbuzz:with_glib=False -o freetype:with_brotli=False -o qt:shared=True -o qt:qtactiveqt=False -o qt:widgets=False -o qt:opengl=dynamic -o qt:qtwebsockets=True -o qt:qtnetworkauth= True

The build is failing with this error :

[1352/4748] Generating .qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb
FAILED: qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng
/24bittextmask.frag.qsb
cmd.exe /C "cd /D C:\.conan\1ffc0a\1\build\qtdeclarative\src\quick && C:\.conan\1ffc0a\1\build\qtbase\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b
-c -O -s -o C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb C:/.conan/7bf732/1/src/qtdeclarative/src/quick
/scenegraph/shaders_ng/24bittextmask.frag"
[1353/4748] Running syncqt.cpp for module: QtQml
ninja: build stopped: subcommand failed.
qt/6.5.0@jenkins-clt/stable:
qt/6.5.0@jenkins-clt/stable: ERROR: Package 'd1b49572bc72ea7f89b7777f76d87bf588fab329' build failed
qt/6.5.0@jenkins-clt/stable: WARN: Build folder C:\.conan\1ffc0a\1\build
ERROR: qt/6.5.0@jenkins-clt/stable: Error in build() method, line 802
        cmake.build()
        ConanException: Error 1 while executing cmake --build "C:\.conan\1ffc0a\1\build" -- -j2

Could you please advise how this could be fixed?

Package and Environment Details

  • Package Name/Version: qt/6.5.0
  • Operating System+version: Windows 11
  • Compiler+version: Visual Studio 2022 (17)
  • Conan version: 1.57.0
  • Python version: Python 3.10.8

Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s build_type
=Release -o qt:gui=True -o qt:with_pcre2=True -o qt:with_glib=False -o qt:with_doubleconversion=True -o qt:with_harfbuzz=True -o qt:with_libjpeg=libjpeg-turb
o -o qt:with_libpng=True -o qt:with_sqlite3=False -o qt:with_mysql=False -o qt:with_pq=False -o qt:with_odbc=False -o qt:with_brotli=False -o qt:with_openal=
False -o qt:with_zstd=False -o qt:qtimageformats=False -o qt:qttranslations=True -o qt:qtdeclarative=True -o qt:qtsvg=True -o qt:qttools=True -o qt:qtshadert
ools=True -o qt:qtlocation=False -o qt:qtpositioning=False -o qt:qtgrpc=False -o qt:qtquickeffectmaker=False -o zlib:shared=False -o harfbuzz:with_glib=False
-o freetype:with_brotli=False -o qt:shared=True -o qt:qtactiveqt=False -o qt:widgets=False -o qt:opengl=dynamic -o qt:qtwebsockets=True -o qt:qtnetworkauth=
True

Logs

Click to expand log
 conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s build_type
=Release -o qt:gui=True -o qt:with_pcre2=True -o qt:with_glib=False -o qt:with_doubleconversion=True -o qt:with_harfbuzz=True -o qt:with_libjpeg=libjpeg-turb
o -o qt:with_libpng=True -o qt:with_sqlite3=False -o qt:with_mysql=False -o qt:with_pq=False -o qt:with_odbc=False -o qt:with_brotli=False -o qt:with_openal=
False -o qt:with_zstd=False -o qt:qtimageformats=False -o qt:qttranslations=True -o qt:qtdeclarative=True -o qt:qtsvg=True -o qt:qttools=True -o qt:qtshadert
ools=True -o qt:qtlocation=False -o qt:qtpositioning=False -o qt:qtgrpc=False -o qt:qtquickeffectmaker=False -o zlib:shared=False -o harfbuzz:with_glib=False
 -o freetype:with_brotli=False -o qt:shared=True -o qt:qtactiveqt=False -o qt:widgets=False -o qt:opengl=dynamic -o qt:qtwebsockets=True -o qt:qtnetworkauth=
True
Exporting package recipe
qt/6.5.0@jenkins-clt/stable exports: File 'conandata.yml' found. Exporting it...
qt/6.5.0@jenkins-clt/stable exports: Copied 1 '.yml' file: conandata.yml
qt/6.5.0@jenkins-clt/stable: Calling export()
qt/6.5.0@jenkins-clt/stable: Copied 1 '.conf' file: qtmodules6.5.0.conf
qt/6.5.0@jenkins-clt/stable: Calling export_sources()
qt/6.5.0@jenkins-clt/stable: The stored package has not changed
qt/6.5.0@jenkins-clt/stable: Using the exported files summary hash as the recipe revision: e262285d10c7efe749c5731bc5db6c63
qt/6.5.0@jenkins-clt/stable: Exported revision: e262285d10c7efe749c5731bc5db6c63
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
freetype:with_brotli=False
harfbuzz:with_glib=False
qt:gui=True
qt:opengl=dynamic
qt:qtactiveqt=False
qt:qtdeclarative=True
qt:qtgrpc=False
qt:qtimageformats=False
qt:qtlocation=False
qt:qtnetworkauth=True
qt:qtpositioning=False
qt:qtquickeffectmaker=False
qt:qtshadertools=True
qt:qtsvg=True
qt:qttools=True
qt:qttranslations=True
qt:qtwebsockets=True
qt:shared=True
qt:widgets=False
qt:with_brotli=False
qt:with_doubleconversion=True
qt:with_glib=False
qt:with_harfbuzz=True
qt:with_libjpeg=libjpeg-turbo
qt:with_libpng=True
qt:with_mysql=False
qt:with_odbc=False
qt:with_openal=False
qt:with_pcre2=True
qt:with_pq=False
qt:with_sqlite3=False
qt:with_zstd=False
zlib:shared=False
[build_requires]
[env]

WARN: harfbuzz/5.3.1: requirement freetype/2.13.0 overridden by qt/6.5.0@jenkins-clt/stable to freetype/2.12.1
qt/6.5.0@jenkins-clt/stable: WARN: Package binary is corrupted, removing: d1b49572bc72ea7f89b7777f76d87bf588fab329
qt/6.5.0@jenkins-clt/stable (test package): Installing package
Requirements
    bzip2/1.0.8 from 'com.myserver.conan.test' - Cache
    double-conversion/3.2.1 from 'com.myserver.conan.test' - Cache
    freetype/2.12.1 from 'com.myserver.conan.test' - Cache
    harfbuzz/5.3.1 from 'com.myserver.conan.test' - Cache
    libjpeg-turbo/2.1.4 from 'com.myserver.conan.test' - Cache
    libpng/1.6.39 from 'com.myserver.conan.test' - Cache
    md4c/0.4.8 from 'com.myserver.conan.test' - Cache
    openssl/1.1.1s from 'com.myserver.conan.test' - Cache
    pcre2/10.40 from 'com.myserver.conan.collector' - Cache
    qt/6.5.0@jenkins-clt/stable from local cache - Cache
    zlib/1.2.13 from 'com.myserver.conan.test' - Cache
Packages
    bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache
    double-conversion/3.2.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    freetype/2.12.1:93581f574d185d35194cc1b04690e2cd0346b030 - Cache
    harfbuzz/5.3.1:a0a6bd904b16ac317d26cbd2ac8b582f140b452d - Cache
    libjpeg-turbo/2.1.4:0891b0d73edb8cce4396d9b0069b4b35962df760 - Cache
    libpng/1.6.39:8cfa2f2d9045fcd29f9c7fb36ce25c8202159f15 - Cache
    md4c/0.4.8:f47d5ece4e0a4bdb91260976882e6ebf0c079a8e - Cache
    openssl/1.1.1s:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    pcre2/10.40:fd9a9b62bf1e3522e49e4c006b72bc34a2070df3 - Cache
    qt/6.5.0@jenkins-clt/stable:d1b49572bc72ea7f89b7777f76d87bf588fab329 - Build
    zlib/1.2.13:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Build requirements
    cmake/3.25.0 from 'com.myserver.conan.collector' - Cache
    cmake/3.25.2 from 'conancenter' - Cache
    ninja/1.11.1 from 'com.myserver.conan.test' - Cache
    pkgconf/1.9.3 from 'com.myserver.conan.test' - Cache
    strawberryperl/5.32.1.1 from 'com.myserver.conan.test' - Cache
Build requirements packages
    cmake/3.25.0:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    cmake/3.25.2:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    ninja/1.11.1:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    pkgconf/1.9.3:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    strawberryperl/5.32.1.1:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
cmake/3.25.0: Already installed!
cmake/3.25.0: Appending PATH environment variable: C:\Users\ContainerAdministrator\.conan\data\cmake\3.25.0\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fd
b68\bin
cmake/3.25.2: Already installed!
cmake/3.25.2: Appending PATH environment variable: C:\Users\ContainerAdministrator\.conan\data\cmake\3.25.2\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fd
b68\bin
double-conversion/3.2.1: Already installed!
libjpeg-turbo/2.1.4: Already installed!
md4c/0.4.8: Already installed!
ninja/1.11.1: Already installed!
openssl/1.1.1s: Already installed!
pkgconf/1.9.3: Already installed!
pkgconf/1.9.3: Appending PATH env var: C:\Users\ContainerAdministrator\.conan\data\pkgconf\1.9.3\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin
pkgconf/1.9.3: Setting PKG_CONFIG env var: C:/Users/ContainerAdministrator/.conan/data/pkgconf/1.9.3/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin
/pkgconf.exe
pkgconf/1.9.3: Appending AUTOMAKE_CONAN_INCLUDES env var: /c/users/containeradministrator/.conan/data/pkgconf/1.9.3/_/_/package/0a420ff5c47119e668867cdb51baf
f0eca1fdb68/bin/aclocal
strawberryperl/5.32.1.1: Already installed!
zlib/1.2.13: Already installed!
libpng/1.6.39: Already installed!
pcre2/10.40: Already installed!
pcre2/10.40: Appending PATH environment variable: C:\Users\ContainerAdministrator\.conan\data\pcre2\10.40\_\_\package\fd9a9b62bf1e3522e49e4c006b72bc34a2070df
3\bin
freetype/2.12.1: Already installed!
harfbuzz/5.3.1: Already installed!
qt/6.5.0@jenkins-clt/stable: Applying build-requirement: cmake/3.25.2
qt/6.5.0@jenkins-clt/stable: Applying build-requirement: ninja/1.11.1
qt/6.5.0@jenkins-clt/stable: Applying build-requirement: pkgconf/1.9.3
qt/6.5.0@jenkins-clt/stable: Applying build-requirement: strawberryperl/5.32.1.1
qt/6.5.0@jenkins-clt/stable: WARN: Build folder is dirty, removing it: C:\.conan\1ffc0a\1
qt/6.5.0@jenkins-clt/stable: Building your package in C:\.conan\1ffc0a\1
qt/6.5.0@jenkins-clt/stable: Generator txt created conanbuildinfo.txt
qt/6.5.0@jenkins-clt/stable: Calling generate()
qt/6.5.0@jenkins-clt/stable: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might c
ause failures and unexpected behavior
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'BZip2-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'BZip2Config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'BZip2ConfigVersion.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'double-conversion-config-version.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'double-conversion-config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'double-conversion-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindBZip2.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindFreetype.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindJPEG.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindOpenSSL.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindPNG.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'FindZLIB.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'freetype-config-version.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'freetype-config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'freetype-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'harfbuzz-config-version.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'harfbuzz-config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'harfbuzz-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'libjpeg-turbo-config-version.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'libjpeg-turbo-config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'libjpeg-turbo-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'md4c-config-version.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'md4c-config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'md4c-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-BZip2-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-Freetype-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-JPEG-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-OpenSSL-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-PNG-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'module-ZLIB-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'OpenSSL-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'OpenSSLConfig.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'OpenSSLConfigVersion.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PCRE2-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PCRE2Config.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PCRE2ConfigVersion.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PNG-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PNGConfig.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'PNGConfigVersion.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'ZLIB-release-x86_64-data.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'ZLIBConfig.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: replace_in_file didn't find pattern ' IMPORTED)
' in 'ZLIBConfigVersion.cmake' file.
qt/6.5.0@jenkins-clt/stable: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might c
ause failures and unexpected behavior
qt/6.5.0@jenkins-clt/stable: Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
qt/6.5.0@jenkins-clt/stable: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G Ninja -DCMAKE_TOOLCHAIN_FILE
=C:\.conan\1ffc0a\1\build\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
qt/6.5.0@jenkins-clt/stable: Aggregating env generators
qt/6.5.0@jenkins-clt/stable: Calling build()
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.4.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
qt/6.5.0@jenkins-clt/stable: CMake command: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:/.conan/1ffc0a/1/build/generators/conan_toolchain.cmake" -DCMAKE_INSTA
LL_PREFIX="C:/.conan/9a4828/1" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:\.conan\7bf732\1\src"
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.4.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
-- Using Conan toolchain: C:/.conan/1ffc0a/1/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- The CXX compiler identification is MSVC 19.34.31937.0
-- The C compiler identification is MSVC 19.34.31937.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Skipping optional dependency 'qtimageformats' of 'qtdeclarative', because building 'qtimageformats' was explicitly disabled.
-- Skipping optional dependency 'qtlanguageserver' of 'qtdeclarative', because building 'qtlanguageserver' was explicitly disabled.
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qttools'
-- Skipping optional dependency 'qtactiveqt' of 'qttools', because building 'qtactiveqt' was explicitly disabled.
-- Checking dependencies of submodule 'qtnetworkauth'
-- Checking dependencies of submodule 'qttranslations'
-- Configuring submodule 'qtbase'
            -DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS
            -DCMAKE_C_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1
            -DCMAKE_C_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG
            -DCMAKE_C_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG
            -DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS /EHsc
            -DCMAKE_CXX_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1
            -DCMAKE_CXX_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG
            -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG
            -DCMAKE_TOOLCHAIN_FILE=C:/.conan/1ffc0a/1/build/generators/conan_toolchain.cmake
            -DCMAKE_C_STANDARD=11
            -DCMAKE_C_STANDARD_REQUIRED=ON
            -DCMAKE_CXX_STANDARD=17
            -DCMAKE_CXX_STANDARD_REQUIRED=ON
            -DCMAKE_MODULE_PATH:STRING=C:/.conan/7bf732/1/src/qtbase/cmake/platforms
-- Configuring submodule 'qtimageformats'
-- Configuring submodule 'qtlanguageserver'
-- Configuring submodule 'qtshadertools'
-- Configuring submodule 'qtsvg'
-- Configuring submodule 'qtdeclarative'
-- Configuring submodule 'qtquicktimeline'
-- Configuring submodule 'qtquick3d'
-- Configuring submodule 'qtmultimedia'
-- Configuring submodule 'qt3d'
-- Configuring submodule 'qt5compat'
-- Configuring submodule 'qtactiveqt'
-- Configuring submodule 'qtcharts'
-- Configuring submodule 'qtcoap'
-- Configuring submodule 'qtconnectivity'
-- Configuring submodule 'qtdatavis3d'
-- Configuring submodule 'qtwebsockets'
CMake Warning (dev) at C:/.conan/1ffc0a/1/build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qthttpserver'
-- Configuring submodule 'qttools'
-- Could NOT find Clang (missing: Clang_DIR)
-- Could NOT find Clang (missing: Clang_DIR)
-- Configuring submodule 'qtserialport'
-- Configuring submodule 'qtpositioning'
-- Configuring submodule 'qtwebchannel'
-- Configuring submodule 'qtwebengine'
-- Configuring submodule 'qtdoc'
-- Configuring submodule 'qtgrpc'
-- Configuring submodule 'qtlocation'
-- Configuring submodule 'qtlottie'
-- Configuring submodule 'qtmqtt'
-- Configuring submodule 'qtnetworkauth'
-- Configuring submodule 'qtopcua'
-- Configuring submodule 'qtquick3dphysics'
-- Configuring submodule 'qtquickeffectmaker'
-- Configuring submodule 'qtremoteobjects'
-- Configuring submodule 'qtscxml'
-- Configuring submodule 'qtsensors'
-- Configuring submodule 'qtserialbus'
-- Configuring submodule 'qtspeech'
-- Configuring submodule 'qttranslations'
-- Configuring submodule 'qtvirtualkeyboard'
-- Configuring submodule 'qtwayland'
-- Configuring submodule 'qtwebview'

-- Configuration summary shown below. It has also been written to C:/.conan/1ffc0a/1/build/config.summary
-- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.

-- Configure summary:

Building for: win32-msvc (x86_64, CPU features: sse sse2)
Compiler: msvc 19.34.31937.0
Build options:
  Mode ................................... release
  Optimize release build for size ........ no
  Fully optimize release builds (-O3) .... no
  Building shared libraries .............. yes
  Using C standard ....................... C11
  Using C++ standard ..................... C++17
  Relocatable ............................ yes
  Using precompiled headers .............. yes
  Using Link Time Optimization (LTCG) .... no
  Using Intel CET ........................ no
  Target compiler supports:
    x86 Intrinsics ....................... Basic VAES AVX512VBMI2
  Sanitizers:
    Addresses ............................ no
    Threads .............................. no
    Memory ............................... no
    Fuzzer (instrumentation only) ........ no
    Undefined ............................ no
  Build parts ............................ libs tools
  App store compliance ................... no
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... no
  Qt D-Bus directly linked to libdbus .... no
  Qt Gui ................................. yes
  Qt Network ............................. yes
  Qt PrintSupport ........................ no
  Qt Sql ................................. yes
  Qt Testlib ............................. yes
  Qt Widgets ............................. no
  Qt Xml ................................. yes
Support enabled for:
  Using pkg-config ....................... yes
  udev ................................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ no
  OpenSSL 1.1 ............................ yes
  OpenSSL 3.0 ............................ no
  Using system zlib ...................... yes
  Zstandard support ...................... no
  Thread support ......................... yes
Common build options:
  Linker can resolve circular dependencies  yes
Qt Core:
  backtrace .............................. no
  DoubleConversion ....................... yes
    Using system DoubleConversion ........ yes
  GLib ................................... no
  ICU .................................... no
  Using system libb2 ..................... no
  Built-in copy of the MIME database ..... yes
  cpp/winrt base ......................... yes
  Tracing backend ........................ <none>
  Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
  PCRE2 .................................. yes
    Using system PCRE2 ................... yes
  Application permissions ................ no
Qt Sql:
  SQL item models ........................ yes
Qt Network:
  getifaddrs() ........................... no
  IPv6 ifname ............................ no
  libproxy ............................... no
  Schannel ............................... yes
  DTLS ................................... yes
  OCSP-stapling .......................... yes
  SCTP ................................... no
  Use system proxies ..................... yes
  GSSAPI ................................. no
  Brotli Decompression Support ........... no
  qIsEffectiveTLD() ...................... yes
    Built-in publicsuffix database ....... yes
    System publicsuffix database ......... no
Core tools:
  Android deployment tool ................ yes
  macOS deployment tool .................. no
  Windows deployment tool ................ yes
  qmake .................................. yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... yes
    Using system HarfBuzz ................ yes
  Fontconfig ............................. no
  Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
      Using system libjpeg ............... yes
    PNG .................................. yes
      Using system libpng ................ yes
  Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
      Using system libmd4c ............... yes
    MarkdownWriter ....................... yes
  EGL .................................... no
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    Dynamic OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no
  Vulkan ................................. no
  Session Management ..................... yes
Features used by QPA backends:
  evdev .................................. no
  libinput ............................... no
  HiRes wheel support in libinput ........ no
  INTEGRITY HID .......................... no
  mtdev .................................. no
  tslib .................................. no
  xkbcommon .............................. no
  X11 specific:
    XLib ................................. no
    XCB Xlib ............................. no
    EGL on X11 ........................... no
    xkbcommon-x11 ........................ no
    xcb-sm ............................... no
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. no
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... no
    EGLFS GBM ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ no
  LinuxFB ................................ no
  VNC .................................... no
  VK_KHR_display ......................... no
  QNX:
    lgmon ................................ no
    IMF .................................. no
  XCB:
    Using system-provided xcb-xinput ..... no
    GL integrations:
      GLX Plugin ......................... no
        XCB GLX .......................... no
      EGL-X11 Plugin ..................... no
  Windows:
    Direct 2D ............................ yes
    Direct 2D 1.1 ........................ yes
    DirectWrite .......................... yes
    DirectWrite 3 ........................ yes
Qt Testlib:
  Tester for item models ................. yes
  Batch tests ............................ no
Qt Sql Drivers:
  DB2 (IBM) .............................. no
  InterBase .............................. no
  MySql .................................. no
  OCI (Oracle) ........................... no
  ODBC ................................... no
  PostgreSQL ............................. no
  SQLite ................................. yes
    Using system provided SQLite ......... no
Qt QML:
  QML network support .................... yes
  QML debugging and profiling support .... yes
  QML just-in-time compiler .............. yes
  QML XML http request ................... yes
  QML Locale ............................. yes
Qt QML Models:
  QML list model ......................... yes
  QML delegate model ..................... yes
Qt Quick:
  AnimatedImage item ..................... yes
  Canvas item ............................ yes
  Support for Qt Quick Designer .......... yes
  Flipable item .......................... yes
  GridView item .......................... yes
  ListView item .......................... yes
  TableView item ......................... yes
  TreeView item .......................... yes
  Path support ........................... yes
  PathView item .......................... yes
  Positioner items ....................... yes
  Repeater item .......................... yes
  ShaderEffect item ...................... yes
  Sprite item ............................ yes
Qt Quick Templates 2:
  Hover support .......................... yes
  Multi-touch support .................... yes
  Calendar support ....................... yes
Qt Quick Controls 2:
  Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows
Qt Tools:
  Qt Assistant ........................... no
  QDoc ................................... no
  Clang-based lupdate parser ............. no
  Qt Designer ............................ no
  Qt Distance Field Generator ............ no
  Qt Linguist ............................ yes
  pixeltool .............................. no
  qdbus .................................. no
  Qt Attributions Scanner ................ yes
  qtdiag ................................. yes
  qtplugininfo ........................... yes


WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.

--

Qt is now configured for building. Just run 'cmake --build . --parallel'

Once everything is built, you must run 'cmake --install .'
Qt will be installed into 'C:/.conan/9a4828/1'

To configure and build other Qt modules, you can use the following convenience script:
        C:/.conan/9a4828/1/bin/qt-configure-module.bat

If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory
Alternatively, you can add the --fresh flag to your CMake flags.

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_POLICY_DEFAULT_CMP0091


-- Build files have been written to: C:/.conan/1ffc0a/1/build
qt/6.5.0@jenkins-clt/stable: CMake command: cmake --build "C:\.conan\1ffc0a\1\build" -- -j2
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.4.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
[3/4748] Compiling syncqt
ninja: no work to do.
[1360/4748] Generating .qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb
FAILED: qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_n
g/32bitcolortext.frag.qsb
cmd.exe /C "cd /D C:\.conan\1ffc0a\1\build\qtdeclarative\src\quick && C:\.conan\1ffc0a\1\build\qtbase\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b
-c -O -s -o C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb C:/.conan/7bf732/1/src/qtdeclarative/src/quic
k/scenegraph/shaders_ng/32bitcolortext.frag"
[1361/4748] Generating .qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb
FAILED: qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng
/24bittextmask.frag.qsb
cmd.exe /C "cd /D C:\.conan\1ffc0a\1\build\qtdeclarative\src\quick && C:\.conan\1ffc0a\1\build\qtbase\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b
-c -O -s -o C:/.conan/1ffc0a/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/24bittextmask.frag.qsb C:/.conan/7bf732/1/src/qtdeclarative/src/quick
/scenegraph/shaders_ng/24bittextmask.frag"
ninja: build stopped: subcommand failed.
qt/6.5.0@jenkins-clt/stable:
qt/6.5.0@jenkins-clt/stable: ERROR: Package 'd1b49572bc72ea7f89b7777f76d87bf588fab329' build failed
qt/6.5.0@jenkins-clt/stable: WARN: Build folder C:\.conan\1ffc0a\1\build
ERROR: qt/6.5.0@jenkins-clt/stable: Error in build() method, line 802
        cmake.build()
        ConanException: Error 1 while executing cmake --build "C:\.conan\1ffc0a\1\build" -- -j2
@szigetics szigetics added the bug Something isn't working label Jun 1, 2023
@szigetics
Copy link
Author

I tried and the compilation succeeds using these options :
conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s build_type=Release -o qt:qtdeclarative=True -o qt:qtshadertools=True

so the issue must be with one of the options that I am using. The list is quite long so advices are welcomed! 🙂

@szigetics
Copy link
Author

szigetics commented Jun 5, 2023

It turned out that this issue was caused by building the Qt conan package in a Docker image, which is based on Windows servercore : https://hub.docker.com/_/microsoft-windows-servercore .
This image doesn't have some UI libraries, eg.: C:\Windows\SysWOW64\dcomp.dll .

Doing

docker stop <image_name>
docker cp C:\Windows\SysWOW64\dcomp.dll <image_name>:C:\Windows\SysWOW64\dcomp.dll

fixed the issue.

Relevant threads :
https://kheresy.wordpress.com/2023/04/07/qt-6-5-build-failed-in-windows-docker/
https://www.appsloveworld.com/docker/100/80/use-qt-installer-framework-in-a-windows-docker-container

Still : the weird thing is that even without copying dcomp.dll into the docker image :
I don't have this qsb.exe issue when I execute :
conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s arch=x86_64 -s build_type=Release -o qt:qtdeclarative=True -o qt:qtshadertools=True

I see the issue when I execute :
conan create recipes/qt/6.x.x qt/6.5.0@jenkins-clt/stable --build=missing -s arch=x86_64 -s build_type=Release -o qt:qtdeclarative=True -o qt:qtshadertools=True --profile:build=default --profile:host=hostProfile

@szigetics
Copy link
Author

szigetics commented Jun 15, 2023

We are trying to use this docker image [mcr.microsoft.com/windows/servercore:ltsc2019](https://mcr.microsoft.com/windows/servercore:ltsc2019) for building Qt 6.5.0 .

https://hub.docker.com/_/microsoft-windows-servercore

We receive this build error :

FAILED: qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb C:/jenkins/w/x-tray/feature/dcet-1054-re_m64-arm64-debug/.cs/3dd873/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb

cmd.exe /C "cd /D C:\jenkins\w\x-tray\feature\dcet-1054-re_m64-arm64-debug\.cs\3dd873\1\build\qtdeclarative\src\quick && C:\jenkins\w\x-tray\feature\dcet-1054-re_m64-arm64-debug\.cs\3dd873\1\build\qtbase\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o C:/jenkins/w/x-tray/feature/dcet-1054-re_m64-arm64-debug/.cs/3dd873/1/build/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/32bitcolortext.frag.qsb C:/jenkins/w/x-tray/feature/dcet-1054-re_m64-arm64-debug/.cs/119e53/1/src/qtdeclarative/src/quick/scenegraph/shaders_ng/32bitcolortext.frag"

Looking around, I see that others are also experiencing the same issue :
https://kheresy.wordpress.com/2023/04/07/qt-6-5-build-failed-in-windows-docker/

So I tried 2 things :
1.: to continue using windowservercore and copy the necessary dlls from the full windows 20H2 image :

# Copy dcomp.dll from the full Windows image :
FROM [mcr.microsoft.com/windows:20H2](https://mcr.microsoft.com/windows:20H2) AS full
# Gather the system DLLs that we need from the full Windows base image
RUN xcopy /y C:\Windows\System32\avicap32.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\avrt.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\d3d10warp.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\D3DSCache.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\dsound.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\dxva2.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\glu32.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\mf.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\mfplat.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\mfplay.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\mfreadwrite.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\msdmo.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\msvfw32.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\opengl32.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\ResourcePolicyClient.dll C:\GatheredDlls\ && `
xcopy /y C:\Windows\System32\dcomp.dll C:\GatheredDlls\

FROM [mcr.microsoft.com/windows/servercore:ltsc2019](https://mcr.microsoft.com/windows/servercore:ltsc2019)
COPY --from=full C:\GatheredDlls\ C:\Windows\System32\

but I still have the same build issue (about qsb.exe) even with this change.

2.: to use mcr.microsoft.com/windows:20H2 instead of mcr.microsoft.com/windows/servercore:ltsc2019 .

Using this image, the build succeeds.

But : this image is much larger in size. We would prefer to keep using mcr.microsoft.com/windows/servercore:ltsc2019 .
What should we do to be able to build Qt 6.5.0 using the mcr.microsoft.com/windows/servercore:ltsc2019 image ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant