You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main problem is, that there is a variable set: RC = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe"
The quotes are the problem there. Because this leads to the call inside of the build script: ""C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe"" /foapps\openssl-bin-openssl.res "apps\openssl.rc"
which leads to the failure: The system cannot find the path specified.
OpenSSL developers are claiming that this RC is set by the Conan script. Sadly just looking into the Conan script, I don't see where it is done.
Logs (Include/Attach if Applicable)
Click to expand log
Build log:
openssl/3.0.3: Applying build-requirement: strawberryperl/5.30.0.1
openssl/3.0.3: Applying build-requirement: nasm/2.15.05
openssl/3.0.3: WARN: Build folder is dirty, removing it: C:\Users\mathiaseggert\.conan\data\openssl\3.0.3\_\_\build\cdb6fd543ab5677fd09e2c988f468d700c5445bc
openssl/3.0.3: Copying sources to build folder
openssl/3.0.3: Building your package in C:\Users\mathiaseggert\.conan\data\openssl\3.0.3\_\_\build\cdb6fd543ab5677fd09e2c988f468d700c5445bc
openssl/3.0.3: Generator txt created conanbuildinfo.txt
openssl/3.0.3: Aggregating env generators
openssl/3.0.3: Calling build()
Conan:vcvars already set
openssl/3.0.3: using target: VC-conan-Release-Windows-x86_64-Visual Studio-17 -> VC-WIN64A
openssl/3.0.3: my %targets = (
"VC-conan-Release-Windows-x86_64-Visual Studio-17" => {
inherit_from => [ "VC-WIN64A" ],
cflags => add("-O2 -Ob2 -MD"),
cxxflags => add("-O2 -Ob2 -MD"),
defines => add("NDEBUG"),
includes => add("C:/Users/mathiaseggert/.conan/data/zlib/1.2.12/_/_/package/5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/include"),
lflags => add(""),
cxx => "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe",
},
);
WARN: replace_in_file didn't find pattern '/MTd ' in 'Configurations\10-main.conf' file.
WARN: replace_in_file didn't find pattern '/MTd"' in 'Configurations\10-main.conf' file.
Configuring OpenSSL version 3.0.3 for target VC-conan-Release-Windows-x86_64-Visual Studio-17
Using os-specific seed configuration
Creating configdata.pm
Running configdata.pm
Creating makefile.in
Creating makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** 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) ***
*** ***
**********************************************************************
Microsoft (R) Program Maintenance Utility Version 14.31.31107.0
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\bn_conf.h.in" > include\crypto\bn_conf.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\dso_conf.h.in" > include\crypto\dso_conf.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\asn1.h.in" > include\openssl\asn1.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\asn1t.h.in" > include\openssl\asn1t.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\bio.h.in" > include\openssl\bio.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\cmp.h.in" > include\openssl\cmp.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\cms.h.in" > include\openssl\cms.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\conf.h.in" > include\openssl\conf.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\configuration.h.in" > include\openssl\configuration.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\crmf.h.in" > include\openssl\crmf.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\crypto.h.in" > include\openssl\crypto.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ct.h.in" > include\openssl\ct.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\err.h.in" > include\openssl\err.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ess.h.in" > include\openssl\ess.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\fipskey.h.in" > include\openssl\fipskey.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\lhash.h.in" > include\openssl\lhash.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ocsp.h.in" > include\openssl\ocsp.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\opensslv.h.in" > include\openssl\opensslv.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\pkcs12.h.in" > include\openssl\pkcs12.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\pkcs7.h.in" > include\openssl\pkcs7.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\safestack.h.in" > include\openssl\safestack.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\srp.h.in" > include\openssl\srp.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ssl.h.in" > include\openssl\ssl.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\ui.h.in" > include\openssl\ui.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\x509.h.in" > include\openssl\x509.h
"C:\.conan\fcf9d5\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\x509_vfy.h.in" > include\openssl\x509_vfy.h
"C:\.conan\fcf9d5\1\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.31.31103\bin\HostX64\x64\nmake.exe" / depend
Microsoft (R) Program Maintenance Utility Version 14.31.31107.0
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe" / _build_sw
Microsoft (R) Program Maintenance Utility Version 14.31.31107.0
Copyright (C) Microsoft Corporation. All rights reserved.
... BUILD processing ...
x509.c
cmd /C """cl"" /Zs /showIncludes /Zi /Fdapp.pdb /MD /Gs0 /GF /Gy -O2 -Ob2 -MD /W3 /wd4090 /nologo /O2 -I"apps" -I"." -I"include" -I"apps\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"NDEBUG" -D"NDEBUG" -I"C:/Users/mathiaseggert/.conan/data/zlib/1.2.12/_/_/package/5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/include" -I"C:/Users/mathiaseggert/.conan/data/zlib/1.2.12/_/_/package/5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/include" "apps\x509.c" > apps\openssl-bin-x509.d 2>&1"
"C:\.conan\fcf9d5\1\bin\perl.exe" util\mkrc.pl openssl > apps\openssl.rc
""C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe"" /foapps\openssl-bin-openssl.res "apps\openssl.rc"
The system cannot find the path specified.
NMAKE : fatal error U1077: '""C:\Program' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
openssl/3.0.3: openssl/3.0.3: ERROR: Package 'cdb6fd543ab5677fd09e2c988f468d700c5445bc' build failed
Trafo
changed the title
[package] <openssl>/<3.0.3>: can not be built under Windows 11 (Visual Studio 11)
[package] openssl/3.0.3: can not be built under Windows 11 (Visual Studio 11)
May 12, 2022
@Trafo Did you happen to get a successful build? I ran into the same issue with Visual Studio 2022 on Windows 11 with OpenSSL 3.0.7 recently. Is there a workaround?
Package and Environment Details
Conan profile
Steps to reproduce (Include if Applicable)
My description
I opened already a bug ticket in OpenSSL: openssl/openssl#18299
The main problem is, that there is a variable set:
RC = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe"
The quotes are the problem there. Because this leads to the call inside of the build script:
""C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe"" /foapps\openssl-bin-openssl.res "apps\openssl.rc"
which leads to the failure:
The system cannot find the path specified.
OpenSSL developers are claiming that this RC is set by the Conan script. Sadly just looking into the Conan script, I don't see where it is done.
Logs (Include/Attach if Applicable)
Click to expand log
Build log:
OpenSSL Config data:
The text was updated successfully, but these errors were encountered: