conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
954 stars 1.75k forks source link

[package] openssl/3.1.1: Cross-compilation 'Windows:x86_64' to 'Windows:armv8' (ARM64) with zlib fails using MSVC #17846

Open zenden2k opened 1 year ago

zenden2k commented 1 year ago

Description

Cross-compilation 'Windows:x86_64' to 'Windows:armv8' (ARM64) with default options fails using MSVC compiler.

libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflate referenced in function bio_zlib_write
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflateEnd referenced in function bio_zlib_free
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflate referenced in function bio_zlib_read
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflateEnd referenced in function bio_zlib_free
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflateInit_ referenced in function bio_zlib_write
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflateInit_ referenced in function bio_zlib_read
libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol zError referenced in function bio_zlib_read
providers\legacy.dll : fatal error LNK1120: 7 unresolved externals

If I add the openssl:no_zlib=True option then compilation succeeds.

Package and Environment Details

Conan profile

Host profile (vs2022_arm64_release):

[settings]
os=Windows
os_build=Windows
arch=armv8
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
compiler.runtime=MT
build_type=Release
[options]
[build_requires]
[env]

Build profile (vs2022_x64):

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
compiler.runtime=MT
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce

conanfile.txt:

[requires]
openssl/3.1.1

[generators]
CMakeDeps
CMakeToolchain

[options]
openssl:shared=False

Run command:

conan install .  --build=missing -pr:h=vs2022_arm64_release -pr:b=vs2022_x64

Logs

Click to expand log ``` Configuration (profile_host): [settings] arch=armv8 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MT compiler.version=17 os=Windows os_build=Windows [options] [build_requires] [env] [conf] tools.microsoft.bash:path=C:\msys64\usr\bin\bash.exe tools.microsoft.bash:subsystem=msys2 Configuration (profile_build): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MT compiler.version=17 os=Windows os_build=Windows [options] [build_requires] [env] [conf] tools.microsoft.bash:path=C:\msys64\usr\bin\bash.exe tools.microsoft.bash:subsystem=msys2 conanfile.txt: Installing package Requirements openssl/3.1.1 from 'conancenter' - Cache zlib/1.2.13 from 'conancenter' - Cache Packages openssl/3.1.1:36f6d895b79920ba3a2e406847a599b1e0428881 - Build zlib/1.2.13:1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d - Build Build requirements nasm/2.15.05 from 'conancenter' - Cache strawberryperl/5.32.1.1 from 'conancenter' - Cache Build requirements packages nasm/2.15.05:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache strawberryperl/5.32.1.1:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache Cross-build from 'Windows:x86_64' to 'Windows:armv8' Installing (downloading, building) binaries... nasm/2.15.05: Already installed! nasm/2.15.05: Appending PATH environment variable: C:\Users\user\.conan\data\nasm\2.15.05\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin strawberryperl/5.32.1.1: Already installed! zlib/1.2.13: Copying sources to build folder zlib/1.2.13: Building your package in C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d zlib/1.2.13: Generator txt created conanbuildinfo.txt zlib/1.2.13: Calling generate() zlib/1.2.13: Preset 'default' added to CMakePresets.json. Invoke it manually using 'cmake --preset default' zlib/1.2.13: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\build\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW' zlib/1.2.13: Aggregating env generators zlib/1.2.13: Calling build() zlib/1.2.13: CMake command: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\src" -- Using Conan toolchain: C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/build/generators/conan_toolchain.cmake -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- Selecting Windows SDK version 10.0.22000.0 to target Windows . -- The C compiler identification is MSVC 19.36.32532.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/arm64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- 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 -- Looking for fseeko -- Looking for fseeko - not found -- Looking for unistd.h -- Looking for unistd.h - not found -- Renaming -- C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/src/zconf.h -- to 'zconf.h.included' because this file is included with zlib -- but CMake generates it automatically in the build directory. -- Configuring done (9.3s) -- Generating done (0.0s) -- Build files have been written to: C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/build zlib/1.2.13: CMake command: cmake --build "C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\build" --config Release MSBuild version 17.6.3+07e294721 for .NET Framework Checking Build System Building Custom Rule C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/src/CMakeLists.txt adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c inflate.c infback.c inftrees.c inffast.c trees.c uncompr.c zutil.c zlib.vcxproj -> C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\build\Release\zlib.lib Building Custom Rule C:/Users/user/.conan/data/zlib/1.2.13/_/_/build/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/src/CMakeLists.txt zlib/1.2.13: Package '1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d' built zlib/1.2.13: Build folder C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\build zlib/1.2.13: Generated conaninfo.txt zlib/1.2.13: Generated conanbuildinfo.txt zlib/1.2.13: Generating the package zlib/1.2.13: Package folder C:\Users\user\.conan\data\zlib\1.2.13\_\_\package\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d zlib/1.2.13: Calling package() zlib/1.2.13: CMake command: cmake --install "C:\Users\user\.conan\data\zlib\1.2.13\_\_\build\1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d\build" --config Release --prefix "C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d" -- Installing: C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/lib/zlib.lib -- Installing: C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include/zconf.h -- Installing: C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include/zlib.h zlib/1.2.13 package(): Packaged 2 '.h' files: zconf.h, zlib.h zlib/1.2.13 package(): Packaged 1 '.lib' file: zlib.lib zlib/1.2.13 package(): Packaged 1 file: LICENSE zlib/1.2.13: Package '1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d' created zlib/1.2.13: Created package revision 87a4c2ed10a327dbda6e6b8fce67d9ea openssl/3.1.1: Applying build-requirement: nasm/2.15.05 openssl/3.1.1: Applying build-requirement: strawberryperl/5.32.1.1 openssl/3.1.1: Copying sources to build folder openssl/3.1.1: Building your package in C:\Users\user\.conan\data\openssl\3.1.1\_\_\build\36f6d895b79920ba3a2e406847a599b1e0428881 openssl/3.1.1: Generator txt created conanbuildinfo.txt openssl/3.1.1: Calling generate() openssl/3.1.1: using target: VC-conan-Release-Windows-armv8-Visual Studio-17 -> VC-WIN64-ARM openssl/3.1.1: my %targets = ( "VC-conan-Release-Windows-armv8-Visual Studio-17" => { inherit_from => [ "VC-WIN64-ARM" ], cflags => add("-MT -O2 -Ob2"), cxxflags => add("-MT -O2 -Ob2"), defines => add("NDEBUG"), lflags => add(""), }, ); openssl/3.1.1: Aggregating env generators openssl/3.1.1: Calling build() openssl/3.1.1: WARN: replace_in_file didn't find pattern '/MTd ' in 'Configurations\10-main.conf' file. openssl/3.1.1: WARN: replace_in_file didn't find pattern '/MTd"' in 'Configurations\10-main.conf' file. ********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.6.2 ** Copyright (c) 2022 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64_arm64' Configuring OpenSSL version 3.1.1 for target VC-conan-Release-Windows-armv8-Visual Studio-17 Using os-specific seed configuration Created configdata.pm Running configdata.pm Created makefile.in Created makefile Created include\openssl\configuration.h ********************************************************************** *** *** *** OpenSSL has been successfully configured *** *** *** *** If you encounter a problem while building, please open an *** *** issue on GitHub *** *** and include the output from the following command: *** *** *** *** perl configdata.pm --dump *** *** *** *** (If you are new to OpenSSL, you might want to consult the *** *** 'Troubleshooting' section in the INSTALL.md file first) *** *** *** ********************************************************************** ********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.6.2 ** Copyright (c) 2022 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64_arm64' Microsoft (R) Program Maintenance Utility Version 14.36.32532.0 Copyright (C) Microsoft Corporation. All rights reserved. "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\bn_conf.h.in" > include\crypto\bn_conf.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\dso_conf.h.in" > include\crypto\dso_conf.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\asn1.h.in" > include\openssl\asn1.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\asn1t.h.in" > include\openssl\asn1t.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\bio.h.in" > include\openssl\bio.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\cmp.h.in" > include\openssl\cmp.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\cms.h.in" > include\openssl\cms.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\conf.h.in" > include\openssl\conf.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\crmf.h.in" > include\openssl\crmf.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\crypto.h.in" > include\openssl\crypto.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ct.h.in" > include\openssl\ct.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\err.h.in" > include\openssl\err.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ess.h.in" > include\openssl\ess.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\fipskey.h.in" > include\openssl\fipskey.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\lhash.h.in" > include\openssl\lhash.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ocsp.h.in" > include\openssl\ocsp.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\opensslv.h.in" > include\openssl\opensslv.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\pkcs12.h.in" > include\openssl\pkcs12.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\pkcs7.h.in" > include\openssl\pkcs7.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\safestack.h.in" > include\openssl\safestack.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\srp.h.in" > include\openssl\srp.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ssl.h.in" > include\openssl\ssl.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ui.h.in" > include\openssl\ui.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\x509.h.in" > include\openssl\x509.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\x509_vfy.h.in" > include\openssl\x509_vfy.h "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\x509v3.h.in" > include\openssl\x509v3.h "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\ARM64\nmake.exe" / depend Microsoft (R) Program Maintenance Utility Version 14.36.32532.0 Copyright (C) Microsoft Corporation. All rights reserved. "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\ARM64\nmake.exe" / _build_sw Microsoft (R) Program Maintenance Utility Version 14.36.32532.0 Copyright (C) Microsoft Corporation. All rights reserved. "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"include" -I"apps\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foapps\lib\libapps-lib-app_libctx.obj "apps\lib\app_libctx.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. app_libctx.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"include" -I"apps\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "apps\lib\app_libctx.c" > apps\lib\libapps-lib-app_libctx.d 2>&1" "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"include" -I"apps\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foapps\lib\libapps-lib-app_params.obj "apps\lib\app_params.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. mdc2_prov.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\implementations\digests\mdc2_prov.c" > providers\implementations\digests\liblegacy-lib-mdc2_prov.d 2>&1" "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foproviders\implementations\digests\liblegacy-lib-ripemd_prov.obj "providers\implementations\digests\ripemd_prov.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. ripemd_prov.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\implementations\digests\ripemd_prov.c" > providers\implementations\digests\liblegacy-lib-ripemd_prov.d 2>&1" "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foproviders\implementations\digests\liblegacy-lib-wp_prov.obj "providers\implementations\digests\wp_prov.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. wp_prov.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\implementations\digests\wp_prov.c" > providers\implementations\digests\liblegacy-lib-wp_prov.d 2>&1" "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foproviders\implementations\kdfs\liblegacy-lib-pbkdf1.obj "providers\implementations\kdfs\pbkdf1.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. pbkdf1.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\implementations\kdfs\pbkdf1.c" > providers\implementations\kdfs\liblegacy-lib-pbkdf1.d 2>&1" "cl" /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foproviders\liblegacy-lib-prov_running.obj "providers\prov_running.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. prov_running.c cmd /C ""cl" /Zs /showIncludes /Zi /Fdossl_static.pdb /MT /Zl /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"." -I"crypto" -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\user\\.conan\\data\\openssl\\3.1.1\\_\\_\\package\\36f6d895b79920ba3a2e406847a599b1e0428881\\res\"" -D"ENGINESDIR=\"\\lib\\engines-3\"" -D"MODULESDIR=\"\\lib\\ossl-modules\"" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\prov_running.c" > providers\liblegacy-lib-prov_running.d 2>&1" "lib" /nologo /out:providers\liblegacy.lib @C:\Users\user\AppData\Local\Temp\nmAB3F.tmp "cl" /Zi /Fddso.pdb /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG -c /Foproviders\legacy-dso-legacyprov.obj "providers\legacyprov.c" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. legacyprov.c cmd /C ""cl" /Zs /showIncludes /Zi /Fddso.pdb /Gs0 /GF /Gy -MT -O2 -Ob2 -MT -O2 -Ob2 -I"include" -I"providers\implementations\include" -I"providers\common\include" -D"OPENSSL_BUILDING_OPENSSL" -D"ZLIB" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE" -D"OPENSSL_SYS_WIN_CORE" -D"NDEBUG" -D"NDEBUG" -I"C:/Users/user/.conan/data/zlib/1.2.13/_/_/package/1fb9d78b5a74adf9ed4c877012efb33bc83d5f7d/include" -DNDEBUG "providers\legacyprov.c" > providers\legacy-dso-legacyprov.d 2>&1" "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "util\mkrc.pl" legacy > providers\legacy.rc "rc" /foproviders\legacy-dso-legacy.res "providers\legacy.rc" Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 Copyright (C) Microsoft Corporation. All rights reserved. "C:/Users/user/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" "util\mkdef.pl" --type dso --ordinals util\providers.num --name legacy --OS windows > providers\legacy.def IF EXIST providers\legacy.dll.manifest DEL /F /Q providers\legacy.dll.manifest cmd /C ""link" /nologo /debug /dll /NODEFAULTLIB:kernel32.lib /APPCONTAINER /nologo /debug @C:\Users\user\AppData\Local\Temp\nmAF48.tmp || (DEL /Q legacy.* providers\legacy.* & EXIT 1)" Creating library providers\legacy.lib and object providers\legacy.exp libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflate referenced in function bio_zlib_write libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflateEnd referenced in function bio_zlib_free libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflate referenced in function bio_zlib_read libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflateEnd referenced in function bio_zlib_free libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol deflateInit_ referenced in function bio_zlib_write libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol inflateInit_ referenced in function bio_zlib_read libcrypto.lib(libcrypto-lib-c_zlib.obj) : error LNK2019: unresolved external symbol zError referenced in function bio_zlib_read providers\legacy.dll : fatal error LNK1120: 7 unresolved externals Cannot find C:\Users\user\.conan\data\openssl\3.1.1\_\_\build\36f6d895b79920ba3a2e406847a599b1e0428881\src\legacy.* NMAKE : fatal error U1077: 'cmd /C ""link" /nologo /debug /dll /NODEFAULTLIB:kernel32.lib /APPCONTAINER /nologo /debug @C:\Users\user\AppData\Local\Temp\nmAF48.tmp || (DEL /Q legacy.* providers\legacy.* & EXIT 1)"' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\ARM64\nmake.exe" / _build_sw' : return code '0x2' Stop. openssl/3.1.1: openssl/3.1.1: ERROR: Package '36f6d895b79920ba3a2e406847a599b1e0428881' build failed openssl/3.1.1: WARN: Build folder C:\Users\user\.conan\data\openssl\3.1.1\_\_\build\36f6d895b79920ba3a2e406847a599b1e0428881\build-release ERROR: openssl/3.1.1: Error in build() method, line 519 self._make() while calling '_make', line 512 self._run_make() while calling '_run_make', line 489 self.run(" ".join(command), env="conanbuild") ConanException: Error 2 while executing nmake ```
zhizhi-dev commented 1 year ago

https://github.com/conan-io/conan-center-index/issues/17912#issue-1752608542

Maybe same bug!

add under to my profile problem solved


[tool_requres]
android_ndk/xxxx
```txt
szigetics commented 9 months ago

We are having the same issue with OpenSSL 3.2.0 . Is there an update on this issue?