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

[bug] Creating zlib-ng package for WindowsStore and armv8 #17589

Open
karel-tomanec opened this issue Jan 17, 2025 · 2 comments
Open

[bug] Creating zlib-ng package for WindowsStore and armv8 #17589

karel-tomanec opened this issue Jan 17, 2025 · 2 comments

Comments

@karel-tomanec
Copy link

karel-tomanec commented Jan 17, 2025

Describe the bug

Hi,

I am working on creating a zlib-ng package for os=WindowsStore and arch=armv8. I modified the official zlib-ng recipe in this PR.

Below is the command I used to create the package and the following log:

Click to expand log
C:\dev\ConanRecipes\recipes\zlib-ng\all>conan create . --version 2.2.2 --profile:host=profile_hololens --profile:build=default --build=missing

======== Exporting recipe to the cache ========
zlib-ng/2.2.2: Exporting package recipe: C:\dev\ConanRecipes\recipes\zlib-ng\all\conanfile.py
zlib-ng/2.2.2: exports: File 'conandata.yml' found. Exporting it...
zlib-ng/2.2.2: Copied 1 '.yml' file: conandata.yml
zlib-ng/2.2.2: Copied 1 '.py' file: conanfile.py
zlib-ng/2.2.2: Exported to cache folder: C:\Users\User\.conan2\p\zlib-fade8a7165b95\e
zlib-ng/2.2.2: Exported: zlib-ng/2.2.2#d277974d14aded143c5b8039e89c62fd (2025-01-17 12:08:20 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=WindowsStore
os.version=10.0
[options]
openssl/*:no_zlib=True
zlib-ng/*:zlib_compat=True
[replace_requires]
zlib/*: zlib-ng/2.2.2

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows


======== Computing dependency graph ========
Graph root
    cli
Requirements
    zlib-ng/2.2.2#d277974d14aded143c5b8039e89c62fd - Cache

======== Computing necessary packages ========
Requirements
    zlib-ng/2.2.2#d277974d14aded143c5b8039e89c62fd:9eb306a0b0a7225f9435f39c028df62e4ee58999 - Build

======== Installing packages ========
zlib-ng/2.2.2: Calling source() in C:\Users\User\.conan2\p\zlib-fade8a7165b95\s\src
zlib-ng/2.2.2: Unzipping 2.2.2.tar.gz to .

-------- Installing package zlib-ng/2.2.2 (1 of 1) --------
zlib-ng/2.2.2: Building from source
zlib-ng/2.2.2: Package zlib-ng/2.2.2:9eb306a0b0a7225f9435f39c028df62e4ee58999
zlib-ng/2.2.2: Copying sources to build folder
zlib-ng/2.2.2: Building your package in C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b
zlib-ng/2.2.2: Calling generate()
zlib-ng/2.2.2: Generators folder: C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\generators
zlib-ng/2.2.2: WARN: Both cmake_system_version conf and os.version defined, prioritizing cmake_system_version
zlib-ng/2.2.2: CMakeToolchain generated: conan_toolchain.cmake
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\generators\CMakePresets.json
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\src\CMakeUserPresets.json
zlib-ng/2.2.2: Generating aggregated env files
zlib-ng/2.2.2: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
zlib-ng/2.2.2: Calling build()
zlib-ng/2.2.2: Running CMake.configure()
zlib-ng/2.2.2: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/b/src"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Using CMake version 3.31.4
-- ZLIB_HEADER_VERSION: 1.3.1
-- ZLIBNG_HEADER_VERSION: 2.2.2
-- Using Conan toolchain: C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_PLATFORM=ARM64,version=10.0
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/b/build/CMakeFiles/CMakeScratch/TryCompile-4kffug'

    Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_b933d.vcxproj /p:Configuration=Debug /p:Platform=ARM64 /p:VisualStudioVersion=17.0 /v:n
    MSBuild version 17.12.12+1cce77968 for .NET Framework
    Build started 1/17/2025 1:08:24 PM.

    Project "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj" on node 1 (default targets).
    PrepareForBuild:
      Creating directory "cmTC_b933d.dir\Debug\".
      Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
      Creating directory "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\".
      Creating directory "cmTC_b933d.dir\Debug\cmTC_b933d.tlog\".
      Creating directory "Generated Files\".
    GetInstalledSDKLocations:
      Searching for SDKs targeting "UAP, 10.0.26100.0".
      Searching for SDKs targeting "Windows, 8.1".
    ResolveSDKReferences:
        Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
        Targeted configuration and architecture "Debug|ARM64"
        Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-ARM64" in the SDK manifest.
        Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.33519.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx" in the SDK manifest.
    ExpandSDKReferences:
      Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
    InitializeBuildStatus:
      Creating "cmTC_b933d.dir\Debug\cmTC_b933d.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
      Touching "cmTC_b933d.dir\Debug\cmTC_b933d.tlog\unsuccessfulbuild".
    ClCompile:
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\HostX64\arm64\CL.exe /c /I"C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\\" /I"Generated Files\\" /IcmTC_b933d.dir\Debug\ /Zi /W3 /WX- /diagnostics:column /sdl /MP32 /Od /Ob0 /Oy- /D _UNICODE /D UNICODE /D _DEBUG /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /std:c11 /Fo"cmTC_b933d.dir\Debug\\" /Fd"cmTC_b933d.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /FU"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\testCCompiler.c"
      Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34435 for ARM64
      Copyright (C) Microsoft Corporation.  All rights reserved.
      cl /c /I"C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\\" /I"Generated Files\\" /IcmTC_b933d.dir\Debug\ /Zi /W3 /WX- /diagnostics:column /sdl /MP32 /Od /Ob0 /Oy- /D _UNICODE /D UNICODE /D _DEBUG /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /std:c11 /Fo"cmTC_b933d.dir\Debug\\" /Fd"cmTC_b933d.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /FU"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\testCCompiler.c"
      testCCompiler.c
    Link:
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\HostX64\arm64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.exe" /INCREMENTAL /ILK:"cmTC_b933d.dir\Debug\cmTC_b933d.ilk" /NOLOGO WindowsApp.lib /MANIFEST /ManifestFile:"cmTC_b933d.dir\Debug\cmTC_b933d.exe.intermediate.manifest" /MANIFESTUAC:NO /DEBUG /PDB:"C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/b/build/CMakeFiles/CMakeScratch/TryCompile-4kffug/Debug/cmTC_b933d.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /APPCONTAINER /WINMD:NO /WINMDFILE:"C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.winmd" /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/User/.conan2/p/b/zlib-1b48bb1558f95/b/build/CMakeFiles/CMakeScratch/TryCompile-4kffug/Debug/cmTC_b933d.lib" /MACHINE:ARM64  /machine:ARM64 cmTC_b933d.dir\Debug\testCCompiler.obj
      cmTC_b933d.vcxproj -> C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.exe
    Manifest:
      C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe /nologo /verbose /out:"C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.manifest" /manifest cmTC_b933d.dir\Debug\cmTC_b933d.exe.intermediate.manifest
    ComputeProcessXamlFiles:
      (Out) ProcessedXamlFiles ==
    CustomOutputGroupForPackaging:
      (Out) Project='cmTC_b933d' ProcessedXamlFiles ==
      (Out) XamlPackagingRootFolder == C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\\
      (Out) ProcessedXamlFilesFullPath ==
      (Out) Project='cmTC_b933d' CustomOutputGroupForPackagingOutput ==
    _AddVCLibs140UniversalCrtDebugReference:
        Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.UniversalCRT.Debug\10.0.26100.0\SDKManifest.xml".
        Targeted configuration and architecture "Debug|ARM64"
        No FrameworkIdentity attributes were found in the SDK manifest, treating this SDK as a non-framework SDK.
        No "APPX" attributes indicating app package locations were found in the SDK manifest. If an app package is required at runtime the project may not run.
    _GenerateProjectPriFileCore:
      C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\MakePri.exe New -ProjectRoot C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\ -ConfigXml cmTC_b933d.dir\Debug\priconfig.xml -OutputFile C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.dir\resources.pri -IndexName D7C6AA3D-DC7B-3A0E-A755-53013624D09E -Verbose -Overwrite
    C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(2829,5): warning : Publisher name (CN=CMake) does not match signing certificate subject: CN=CMake Test Cert. Updating Publisher name. [C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj]
      cmTC_b933d -> C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.dir\AppxManifest.xml
    C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.dir\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 18, Column 50, Reason: '10.0' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'MinVersion' with value '10.0' failed to parse. [C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj]
    Done Building Project "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj" (default target) (1) ->
    (_GenerateCurrentProjectAppxManifest target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(2829,5): warning : Publisher name (CN=CMake) does not match signing certificate subject: CN=CMake Test Cert. Updating Publisher name. [C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj]


    "C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj" (default target) (1) ->
    (_ValidateAppxManifest target) ->
      C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\Debug\cmTC_b933d.dir\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 18, Column 50, Reason: '10.0' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'MinVersion' with value '10.0' failed to parse. [C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build\CMakeFiles\CMakeScratch\TryCompile-4kffug\cmTC_b933d.vcxproj]

        1 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:01.74





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)


-- Configuring incomplete, errors occurred!

zlib-ng/2.2.2: ERROR:
Package '9eb306a0b0a7225f9435f39c028df62e4ee58999' build failed
zlib-ng/2.2.2: WARN: Build folder C:\Users\User\.conan2\p\b\zlib-1b48bb1558f95\b\build
ERROR: zlib-ng/2.2.2: Error in build() method, line 96
        cmake.configure()
        ConanException: Error 1 while executing

Initially, the process failed due to an error in the compiler check. I updated the generate method to include the following workaround:

Click to expand recipe
    def generate(self):
        tc = CMakeToolchain(self)
        tc.variables["ZLIB_ENABLE_TESTS"] = False
        tc.variables["ZLIBNG_ENABLE_TESTS"] = False

        tc.variables["ZLIB_COMPAT"] = self.options.zlib_compat
        tc.variables["WITH_GZFILEOP"] = self.options.with_gzfileop
        tc.variables["WITH_OPTIM"] = self.options.with_optim
        tc.variables["WITH_NEW_STRATEGIES"] = self.options.with_new_strategies
        tc.variables["WITH_NATIVE_INSTRUCTIONS"] = self.options.with_native_instructions
        if Version(self.version) >= "2.1.0":
            tc.variables["WITH_REDUCED_MEM"] = self.options.with_reduced_mem
        if Version(self.version) >= "2.2.1":
            tc.variables["WITH_RUNTIME_CPU_DETECTION"] = self.options.with_runtime_cpu_detection
        tc.generate()

        if self.settings.os == "WindowsStore" and self.settings.arch == "armv8":
            # Force CMP0149 policy to OLD before 'generic_system' 'Cross building' block to fix compiler check for hololens compilation
            # 
            # Policy could be applied in user_toolchain ([conf]tools.cmake.cmaketoolchain:user_toolchain) directly but it currently doesn't seem to resolve relative paths,
            # additionaly user_toolchain would have to be loaded with include(... NO_POLICY_SCOPE) so we wouldn't avoid modifying toolchain file anyway
            content = load(self, "conan_toolchain.cmake")
            toolchain_block = content.find("'generic_system'")
            if toolchain_block != -1:
                newline = content.rfind("\n", 0, toolchain_block)
                if newline != -1:
                    newcontent = content[:newline]
                    newcontent += "cmake_policy(SET CMP0149 OLD)\n\n"
                    newcontent += content[newline:]
                    save(self, "conan_toolchain.cmake", newcontent)

and tried to create a package as before:

Click to expand log

C:\dev\ConanRecipes\recipes\zlib-ng\all>conan create . --version 2.2.2 --profile:host=profile_hololens --profile:build=default --build=missing

======== Exporting recipe to the cache ========
zlib-ng/2.2.2: Exporting package recipe: C:\dev\ConanRecipes\recipes\zlib-ng\all\conanfile.py
zlib-ng/2.2.2: exports: File 'conandata.yml' found. Exporting it...
zlib-ng/2.2.2: Copied 1 '.yml' file: conandata.yml
zlib-ng/2.2.2: Copied 1 '.py' file: conanfile.py
zlib-ng/2.2.2: Exported to cache folder: C:\Users\User\.conan2\p\zlib-8a0c1c1221061\e
zlib-ng/2.2.2: Exported: zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4 (2025-01-17 12:04:21 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=WindowsStore
os.version=10.0
[options]
openssl/*:no_zlib=True
zlib-ng/*:zlib_compat=True
[replace_requires]
zlib/*: zlib-ng/2.2.2

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows


======== Computing dependency graph ========
Graph root
    cli
Requirements
    zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4 - Cache

======== Computing necessary packages ========
Requirements
    zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4:9eb306a0b0a7225f9435f39c028df62e4ee58999 - Build

======== Installing packages ========
zlib-ng/2.2.2: Calling source() in C:\Users\User\.conan2\p\zlib-8a0c1c1221061\s\src
zlib-ng/2.2.2: Unzipping 2.2.2.tar.gz to .

-------- Installing package zlib-ng/2.2.2 (1 of 1) --------
zlib-ng/2.2.2: Building from source
zlib-ng/2.2.2: Package zlib-ng/2.2.2:9eb306a0b0a7225f9435f39c028df62e4ee58999
zlib-ng/2.2.2: Copying sources to build folder
zlib-ng/2.2.2: Building your package in C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b
zlib-ng/2.2.2: Calling generate()
zlib-ng/2.2.2: Generators folder: C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build\generators
zlib-ng/2.2.2: WARN: Both cmake_system_version conf and os.version defined, prioritizing cmake_system_version
zlib-ng/2.2.2: CMakeToolchain generated: conan_toolchain.cmake
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build\generators\CMakePresets.json
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\src\CMakeUserPresets.json
zlib-ng/2.2.2: Generating aggregated env files
zlib-ng/2.2.2: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
zlib-ng/2.2.2: Calling build()
zlib-ng/2.2.2: Running CMake.configure()
zlib-ng/2.2.2: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/src"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Using CMake version 3.31.4
-- ZLIB_HEADER_VERSION: 1.3.1
-- ZLIBNG_HEADER_VERSION: 2.2.2
-- Using Conan toolchain: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_PLATFORM=ARM64
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Arch detected: 'aarch64'
-- Basearch of 'aarch64' has been detected as: 'arm'
-- Using CMake toolchain: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/build/generators/conan_toolchain.cmake
-- Looking for arm_acle.h
-- Looking for arm_acle.h - not found
-- Looking for sys/auxv.h
-- Looking for sys/auxv.h - not found
-- Looking for sys/sdt.h
-- Looking for sys/sdt.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for linux/auxvec.h
-- Looking for linux/auxvec.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Check size of _off64_t
-- Check size of _off64_t - failed
-- Check size of __off64_t
-- Check size of __off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for aligned_alloc
-- Looking for aligned_alloc - not found
-- Performing Test HAVE_NO_INTERPOSITION
-- Performing Test HAVE_NO_INTERPOSITION - Failed
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN - Failed
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL - Failed
-- Performing Test HAVE_ATTRIBUTE_ALIGNED
-- Performing Test HAVE_ATTRIBUTE_ALIGNED - Failed
-- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED
-- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED - Success
-- Performing Test HAVE_BUILTIN_CTZ
-- Performing Test HAVE_BUILTIN_CTZ - Failed
-- Performing Test HAVE_BUILTIN_CTZLL
-- Performing Test HAVE_BUILTIN_CTZLL - Failed
-- Performing Test HAVE_PTRDIFF_T
-- Performing Test HAVE_PTRDIFF_T - Success
-- Performing Test HAVE_ACLE_FLAG
-- Performing Test HAVE_ACLE_FLAG - Success
-- Performing Test NEON_AVAILABLE
-- Performing Test NEON_AVAILABLE - Success
-- Performing Test NEON_HAS_LD4
-- Performing Test NEON_HAS_LD4 - Success
-- Architecture-specific source files: arch/arm/arm_features.c;arch/arm/crc32_acle.c;arch/arm/adler32_neon.c;arch/arm/chunkset_neon.c;arch/arm/compare256_neon.c;arch/arm/slide_hash_neon.c
-- The following features have been enabled:

 * ACLE_CRC, Support ACLE optimized CRC hash generation, using ""
 * NEON_ADLER32, Support NEON instructions in adler32, using ""
 * NEON_SLIDEHASH, Support NEON instructions in slide_hash, using ""
 * WITH_GZFILEOP, Compile with support for gzFile related functions
 * ZLIB_COMPAT, Compile with zlib compatible API
 * WITH_SANITIZER, Enable sanitizer support
 * WITH_GTEST, Build gtest_zlib
 * WITH_OPTIM, Build with optimisation
 * WITH_NEW_STRATEGIES, Use new strategies
 * WITH_RUNTIME_CPU_DETECTION, Build with runtime CPU detection
 * WITH_ACLE, Build with ACLE
 * WITH_NEON, Build with NEON intrinsics

-- The following features have been disabled:

 * ZLIB_SYMBOL_PREFIX, Publicly exported symbols DO NOT have a custom prefix
 * ZLIB_ENABLE_TESTS, Build test binaries
 * ZLIBNG_ENABLE_TESTS, Test zlib-ng specific API
 * WITH_FUZZERS, Build test/fuzz
 * WITH_BENCHMARKS, Build test/benchmarks
 * WITH_BENCHMARK_APPS, Build application benchmarks
 * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang -march=native)
 * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings
 * WITH_CODE_COVERAGE, Enable code coverage reporting
 * WITH_INFLATE_STRICT, Build with strict inflate distance checking
 * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances
 * WITH_ARMV6, Build with ARMv6 SIMD
 * INSTALL_UTILS, Copy minigzip and minideflate during install

-- Configuring done (40.1s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/build

zlib-ng/2.2.2: Running CMake.build()
zlib-ng/2.2.2: RUN: cmake --build "C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build" --config Release
MSBuild version 17.12.12+1cce77968 for .NET Framework

  1>Checking Build System
  Building Custom Rule C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/src/CMakeLists.txt
  adler32_c.c
  adler32_fold_c.c
  chunkset_c.c
  compare256_c.c
  crc32_braid_c.c
  crc32_fold_c.c
  slide_hash_c.c
  adler32.c
  compress.c
  crc32.c
  crc32_braid_comb.c
  deflate.c
  deflate_fast.c
  deflate_huff.c
  deflate_medium.c
  deflate_quick.c
  deflate_rle.c
  deflate_slow.c
  deflate_stored.c
  functable.c
  infback.c
  inflate.c
  inftrees.c
  insert_string.c
  insert_string_roll.c
  trees.c
  uncompr.c
  zutil.c
  cpu_features.c
  arm_features.c
  crc32_acle.c
  adler32_neon.c
  chunkset_neon.c
  compare256_neon.c
  slide_hash_neon.c
  gzlib.c
  gzread.c
  gzwrite.c
  zlib.vcxproj -> C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build\Release\zlibstatic.lib
  Building Custom Rule C:/Users/User/.conan2/p/b/zlib-5ac055394026f/b/src/CMakeLists.txt

zlib-ng/2.2.2: Package '9eb306a0b0a7225f9435f39c028df62e4ee58999' built
zlib-ng/2.2.2: Build folder C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build
zlib-ng/2.2.2: Generating the package
zlib-ng/2.2.2: Packaging in folder C:\Users\User\.conan2\p\b\zlib-5ac055394026f\p
zlib-ng/2.2.2: Calling package()
zlib-ng/2.2.2: Running CMake.install()
zlib-ng/2.2.2: RUN: cmake --install "C:\Users\User\.conan2\p\b\zlib-5ac055394026f\b\build" --config Release --prefix "C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p"
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/zlibstatic.lib
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/include/zlib.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/include/zlib_name_mangling.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/include/zconf.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/pkgconfig/zlib.pc
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/cmake/ZLIB/ZLIB.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/cmake/ZLIB/ZLIB-release.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/cmake/ZLIB/zlib-config.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-5ac055394026f/p/lib/cmake/ZLIB/zlib-config-version.cmake

zlib-ng/2.2.2: package(): Packaged 3 '.h' files: zconf.h, zlib.h, zlib_name_mangling.h
zlib-ng/2.2.2: package(): Packaged 1 '.lib' file: zlibstatic.lib
zlib-ng/2.2.2: package(): Packaged 1 '.md' file: LICENSE.md
zlib-ng/2.2.2: Created package revision a6ab97be4eb20b366e72fa4c9f91e024
zlib-ng/2.2.2: Package '9eb306a0b0a7225f9435f39c028df62e4ee58999' created
zlib-ng/2.2.2: Full package reference: zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4:9eb306a0b0a7225f9435f39c028df62e4ee58999#a6ab97be4eb20b366e72fa4c9f91e024
zlib-ng/2.2.2: Package folder C:\Users\User\.conan2\p\b\zlib-5ac055394026f\p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: zlib-ng/2.2.2

======== Launching test_package ========

======== Computing dependency graph ========
Graph root
    zlib-ng/2.2.2 (test package): C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\conanfile.py
Requirements
    zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4 - Cache

======== Computing necessary packages ========
Requirements
    zlib-ng/2.2.2#671e88c31e80d6551fad2d34ba7201f4:9eb306a0b0a7225f9435f39c028df62e4ee58999#a6ab97be4eb20b366e72fa4c9f91e024 - Cache

======== Installing packages ========
zlib-ng/2.2.2: Already installed! (1 of 1)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: zlib-ng/2.2.2

======== Testing the package ========
Removing previously existing 'test_package' build folder: C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Test package build: build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Test package build folder: C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Writing generators to C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators
zlib-ng/2.2.2 (test package): Generator 'CMakeDeps' calling 'generate()'
zlib-ng/2.2.2 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(ZLIB)
    target_link_libraries(... ZLIB::ZLIB)
zlib-ng/2.2.2 (test package): Generator 'VirtualRunEnv' calling 'generate()'
zlib-ng/2.2.2 (test package): Calling generate()
zlib-ng/2.2.2 (test package): Generators folder: C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators
zlib-ng/2.2.2 (test package): WARN: Both cmake_system_version conf and os.version defined, prioritizing cmake_system_version
zlib-ng/2.2.2 (test package): CMakeToolchain generated: conan_toolchain.cmake
zlib-ng/2.2.2 (test package): CMakeToolchain generated: C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators\CMakePresets.json
zlib-ng/2.2.2 (test package): CMakeToolchain generated: C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\CMakeUserPresets.json
zlib-ng/2.2.2 (test package): Generating aggregated env files
zlib-ng/2.2.2 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']

======== Testing the package: Building ========
zlib-ng/2.2.2 (test package): Calling build()
zlib-ng/2.2.2 (test package): Running CMake.configure()
zlib-ng/2.2.2 (test package): RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Using Conan toolchain: C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package/build/msvc-193-armv8-14-release/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_PLATFORM=ARM64
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: C++ Standard 14 with extensions OFF
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package/build/msvc-193-armv8-14-release/CMakeFiles/CMakeScratch/TryCompile-3cfdkn'

    Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_62734.vcxproj /p:Configuration=Debug /p:Platform=ARM64 /p:VisualStudioVersion=17.0 /v:n
    MSBuild version 17.12.12+1cce77968 for .NET Framework
    Build started 1/17/2025 1:05:08 PM.

    Project "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj" on node 1 (default targets).
    PrepareForBuild:
      Creating directory "cmTC_62734.dir\Debug\".
      Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
      Creating directory "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\".
      Creating directory "cmTC_62734.dir\Debug\cmTC_62734.tlog\".
      Creating directory "Generated Files\".
    GetInstalledSDKLocations:
      Searching for SDKs targeting "UAP, 10.0.26100.0".
      Searching for SDKs targeting "Windows, 8.1".
    ResolveSDKReferences:
        Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
        Targeted configuration and architecture "Debug|ARM64"
        Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-ARM64" in the SDK manifest.
        Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.33519.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx" in the SDK manifest.
        Found "APPX" location attribute "AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx" in the SDK manifest.
    ExpandSDKReferences:
      Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
    InitializeBuildStatus:
      Creating "cmTC_62734.dir\Debug\cmTC_62734.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
      Touching "cmTC_62734.dir\Debug\cmTC_62734.tlog\unsuccessfulbuild".
    ClCompile:
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\HostX64\arm64\CL.exe /c /I"C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\\" /I"Generated Files\\" /IcmTC_62734.dir\Debug\ /Zi /W3 /WX- /diagnostics:column /sdl /MP32 /Od /Ob0 /Oy- /D _UNICODE /D UNICODE /D _DEBUG /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_62734.dir\Debug\\" /Fd"cmTC_62734.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /FU"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\testCCompiler.c"
      Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34435 for ARM64
      Copyright (C) Microsoft Corporation.  All rights reserved.
      cl /c /I"C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\\" /I"Generated Files\\" /IcmTC_62734.dir\Debug\ /Zi /W3 /WX- /diagnostics:column /sdl /MP32 /Od /Ob0 /Oy- /D _UNICODE /D UNICODE /D _DEBUG /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_62734.dir\Debug\\" /Fd"cmTC_62734.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /FU"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\testCCompiler.c"
      testCCompiler.c
    Link:
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\HostX64\arm64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.exe" /INCREMENTAL /ILK:"cmTC_62734.dir\Debug\cmTC_62734.ilk" /NOLOGO WindowsApp.lib /MANIFEST /ManifestFile:"cmTC_62734.dir\Debug\cmTC_62734.exe.intermediate.manifest" /MANIFESTUAC:NO /DEBUG /PDB:"C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package/build/msvc-193-armv8-14-release/CMakeFiles/CMakeScratch/TryCompile-3cfdkn/Debug/cmTC_62734.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /APPCONTAINER /WINMD:NO /WINMDFILE:"C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.winmd" /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/dev/ConanRecipes/recipes/zlib-ng/all/test_package/build/msvc-193-armv8-14-release/CMakeFiles/CMakeScratch/TryCompile-3cfdkn/Debug/cmTC_62734.lib" /MACHINE:ARM64  /machine:ARM64 cmTC_62734.dir\Debug\testCCompiler.obj
      cmTC_62734.vcxproj -> C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.exe
    Manifest:
      C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe /nologo /verbose /out:"C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.manifest" /manifest cmTC_62734.dir\Debug\cmTC_62734.exe.intermediate.manifest
    ComputeProcessXamlFiles:
      (Out) ProcessedXamlFiles ==
    CustomOutputGroupForPackaging:
      (Out) Project='cmTC_62734' ProcessedXamlFiles ==
      (Out) XamlPackagingRootFolder == C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\\
      (Out) ProcessedXamlFilesFullPath ==
      (Out) Project='cmTC_62734' CustomOutputGroupForPackagingOutput ==
    _AddVCLibs140UniversalCrtDebugReference:
        Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.UniversalCRT.Debug\10.0.26100.0\SDKManifest.xml".
        Targeted configuration and architecture "Debug|ARM64"
        No FrameworkIdentity attributes were found in the SDK manifest, treating this SDK as a non-framework SDK.
        No "APPX" attributes indicating app package locations were found in the SDK manifest. If an app package is required at runtime the project may not run.
    _GenerateProjectPriFileCore:
      C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\MakePri.exe New -ProjectRoot C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\ -ConfigXml cmTC_62734.dir\Debug\priconfig.xml -OutputFile C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.dir\resources.pri -IndexName B0F3C13E-40F7-3C5B-83B6-B3296178F5EE -Verbose -Overwrite
    C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(2829,5): warning : Publisher name (CN=CMake) does not match signing certificate subject: CN=CMake Test Cert. Updating Publisher name. [C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj]
      cmTC_62734 -> C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.dir\AppxManifest.xml
    C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.dir\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 18, Column 50, Reason: '10.0' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'MinVersion' with value '10.0' failed to parse. [C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj]
    Done Building Project "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj" (default target) (1) ->
    (_GenerateCurrentProjectAppxManifest target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(2829,5): warning : Publisher name (CN=CMake) does not match signing certificate subject: CN=CMake Test Cert. Updating Publisher name. [C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj]


    "C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj" (default target) (1) ->
    (_ValidateAppxManifest target) ->
      C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\Debug\cmTC_62734.dir\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 18, Column 50, Reason: '10.0' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'MinVersion' with value '10.0' failed to parse. [C:\dev\ConanRecipes\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\CMakeFiles\CMakeScratch\TryCompile-3cfdkn\cmTC_62734.vcxproj]

        1 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:01.58





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!

ERROR: zlib-ng/2.2.2 (test package): Error in build() method, line 25
        cmake.configure()
        ConanException: Error 1 while executing

After applying this change, the package was created successfully. However, the test package failed, which I assume is due to cross-compilation limitations. This was expected.

Question:

Is there a better way to address this issue without modifying the generate method of every recipe? The current workaround involves injecting a custom CMake policy (CMP0149) into the toolchain file, which feels cumbersome and error-prone, especially when applied to multiple recipes.

Thank you for your assistance!

Package and Environment Details

  • Package Name/Version: zlib-ng/2.2.2
  • Operating System+version: Windows 11
  • Compiler+version: msvc 193
  • Conan version: conan 2.9.1
  • Python version: Python 3.7.4
@karel-tomanec karel-tomanec changed the title [bug] zlib-ng Recipe for WindowsStore and armv8 [bug] Creating zlib-ng package for WindowsStore and armv8 Jan 17, 2025
@jcar87
Copy link
Contributor

jcar87 commented Jan 17, 2025

Hi @karel-tomanec - if I understand correctly, the question is how to set that policy such that CMake avoids choosing the most recent Windows SDK version?

Could you post a log of the successful creation of the zlib-ng package with those settings and your changes? the log you've pasted shows the package as being downloaded from a remote

Additionally,

Below is the command I used to create the package (run from Developer Command Prompt for VS 2022, targeting arm64) and the following log:

I would advise to not invoke Conan from an already initialised visual studio developr command prompt - this means that the windows SDK version is already chosen and activated in the environment, and those environment variables are exposed to anything Conan invokes (cmake, msbuild), which can cause issues - doing this is not necessary:

  • for CMake projects and the Visual Studio generators - Conan will pass the right flags to CMake so that the generated visual studio projects honour your settings
  • for command line projects (or CMake with a generator like Ninja) - Conan will initialise vcvars in a way that it honours your Conan profile

@karel-tomanec
Copy link
Author

Hi @jcar87,

Apologies for the confusion earlier. I’ve updated the logs to reflect the situation where the package is not downloaded from the remote.

Regarding my workaround, it forces CMake to select the toolchain without including the version field, as the version field seems to cause issues for some reason. Here’s the relevant snippet:

if(POLICY CMP0149)
    cmake_policy(GET CMP0149 _POLICY_WINSDK_VERSION)
endif()
if(_POLICY_WINSDK_VERSION STREQUAL "NEW")
    message(STATUS "Conan toolchain: CMAKE_GENERATOR_PLATFORM=ARM64,version=10.0")
    set(CMAKE_GENERATOR_PLATFORM "ARM64,version=10.0" CACHE STRING "" FORCE)
else()
    # winsdk_version will be taken from above CMAKE_SYSTEM_VERSION
    message(STATUS "Conan toolchain: CMAKE_GENERATOR_PLATFORM=ARM64")
    set(CMAKE_GENERATOR_PLATFORM "ARM64" CACHE STRING "" FORCE)
endif()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants