microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.34k stars 6.45k forks source link

[openssl] build failure x64 windows #39912

Open Ahmet1s2 opened 4 months ago

Ahmet1s2 commented 4 months ago

Operating system

Windows

Compiler

CMAKE

Steps to reproduce the behavior

./vcpkg install openssl

Failure logs

Computing installation plan... The following packages will be built and installed: openssl:x64-windows@3.3.1#1 Detecting compiler hash for triplet x64-windows... Compiler found: E:/VS/Community 2022/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\Administrator\AppData\Local\vcpkg\archives in 593 us. Use --debug to see more details. Installing 1/1 openssl:x64-windows@3.3.1#1... Building openssl:x64-windows@3.3.1#1... -- Using cached openssl-openssl-openssl-3.3.1.tar.gz. -- Cleaning sources at C:/Users/Administrator/Documents/vcpkg/buildtrees/openssl/src/nssl-3.3.1-1ae1909b44.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/Users/Administrator/Documents/vcpkg/downloads/openssl-openssl-openssl-3.3.1.tar.gz -- Applying patch cmake-config.patch -- Applying patch command-line-length.patch -- Applying patch script-prefix.patch -- Applying patch asm-armcap.patch -- Applying patch windows/install-layout.patch -- Applying patch windows/install-pdbs.patch -- Applying patch unix/android-cc.patch -- Applying patch unix/move-openssldir.patch -- Applying patch unix/no-empty-dirs.patch -- Applying patch unix/no-static-libs-for-shared.patch -- Using source at C:/Users/Administrator/Documents/vcpkg/buildtrees/openssl/src/nssl-3.3.1-1ae1909b44.clean -- Found external ninja('1.11.0'). -- Getting CMake variables for x64-windows -- Getting CMake variables for x64-windows -- Prerunning x64-windows-dbg -- Building x64-windows-dbg -- Restarting build without parallelism CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: "E:/VS/Community 2022/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/nmake.exe" /NOLOGO /G /U /F makefile install_dev install_modules INSTALL_PDBS=ON Working Directory: C:/Users/Administrator/Documents/vcpkg/buildtrees/openssl/x64-windows-dbg See logs for more information: C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-out.log C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-err.log

Call Stack (most recent call first): scripts/cmake/vcpkg_build_nmake.cmake:156 (vcpkg_execute_build_process) ports/openssl/windows/portfile.cmake:74 (vcpkg_build_nmake) ports/openssl/portfile.cmake:69 (include) scripts/ports.cmake:192 (include)

error: building openssl:x64-windows failed with: BUILD_FAILEDSee https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle openssl:x64-windows: 4.4 min Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+openssl You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[openssl]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2FAdministrator%2FDocuments%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

No response

jimwang118 commented 4 months ago

Please provide the error log.

C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-out.log
C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-err.log
Ahmet1s2 commented 4 months ago

C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-out.log: "E:\VS\Community 2022\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe" /LU depend "E:\VS\Community 2022\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe" /LU _build_libs "E:\VS\Community 2022\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c" cversion.c crypto\cversion.c(60): warning C4129: 'V': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'T': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'M': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'H': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'c': unrecognized character escape sequence crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'constant' crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'string'

C:\Users\Administrator\Documents\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-err.log: cl : Command line warning D9025 : overriding '/Zi' with '/Z7' NMAKE : fatal error U1077: '"E:\VS\Community 2022\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"C:\\Users\\Administrator\\Documents\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"E:\VS\Community 2022\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe" /LU _build_libs' : return code '0x2' Stop.

Perdixky commented 4 months ago

我遇到了一模一样的问题

jimwang118 commented 4 months ago

This should be a problem with the VS Community Edition compiler. It is recommended that you use the VS Enterprise Edition. You can refer to this problem solution.

Perdixky commented 3 months ago

This should be a problem with the VS Community Edition compiler. It is recommended that you use the VS Enterprise Edition. You can refer to this problem solution.

我觉得应该不是,因为只有OpenSSL包不能正常构建

alLiucb commented 2 months ago

nobody can solve this problem?I occurred the same problem tody 😢

dg0yt commented 2 months ago

IIRC it is a problem with handling space characters in VS path.

greenozon commented 2 months ago

@Ahmet1s2 there is new port version - 3.3.2 could you give it another try again?

but before -

git pull bootstrap-vcpkg.bat

greenozon commented 2 months ago

just for reference - it builds fine (MSVC2019, no spaces in PATH)

Details

c:\Dev\vcpkg>vcpkg install openssl Computing installation plan... The following packages will be built and installed: openssl:x64-windows@3.3.2#1 Detecting compiler hash for triplet x64-windows... Compiler found: C:/Dev/VS2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\user\AppData\Local\vcpkg\archives in 189 us. Use --debug to see more details. Installing 1/1 openssl:x64-windows@3.3.2#1... Building openssl:x64-windows@3.3.2#1... -- Using cached openssl-openssl-210dc9a50dfd99caa1cf7c3d2fa42850124b1bbc.patch. -- Using cached openssl-openssl-openssl-3.3.2.tar.gz. -- Cleaning sources at C:/Dev/vcpkg/buildtrees/openssl/src/nssl-3.3.2-515f0a0017.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/Dev/vcpkg/downloads/openssl-openssl-openssl-3.3.2.tar.gz -- Applying patch cmake-config.patch -- Applying patch command-line-length.patch -- Applying patch script-prefix.patch -- Applying patch asm-armcap.patch -- Applying patch windows/install-layout.patch -- Applying patch windows/install-pdbs.patch -- Applying patch unix/android-cc.patch -- Applying patch unix/move-openssldir.patch -- Applying patch unix/no-empty-dirs.patch -- Applying patch unix/no-static-libs-for-shared.patch -- Applying patch C:/Dev/vcpkg/downloads/openssl-openssl-210dc9a50dfd99caa1cf7c3d2fa42850124b1bbc.patch -- Using source at C:/Dev/vcpkg/buildtrees/openssl/src/nssl-3.3.2-515f0a0017.clean -- Getting CMake variables for x64-windows -- Getting CMake variables for x64-windows -- Prerunning x64-windows-dbg -- Building x64-windows-dbg -- Prerunning x64-windows-rel -- Building x64-windows-rel -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/libcrypto.pc -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/libssl.pc -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/openssl.pc -- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst. -- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst. -- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/1e74ca60daa10104 -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/libcrypto.pc -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/libssl.pc -- Fixing pkgconfig file: C:/Dev/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/openssl.pc -- Installing: C:/Dev/vcpkg/packages/openssl_x64-windows/share/openssl/usage -- Installing: C:/Dev/vcpkg/packages/openssl_x64-windows/share/openssl/copyright -- Performing post-build validation Stored binaries in 1 destinations in 3.1 s. Elapsed time to handle openssl:x64-windows: 7 min openssl:x64-windows package ABI: 68ae4d5b14429f5679b8a223923e884064f1439bb622c5cb5f68011f40ab106f Total install time: 7 min openssl is compatible with built-in CMake targets: find_package(OpenSSL REQUIRED) target_link_libraries(main PRIVATE OpenSSL::SSL) target_link_libraries(main PRIVATE OpenSSL::Crypto)

xurendong commented 2 months ago

I occurred the same problem openssl:x64-windows@3.3.2#1 MSVC 14.40.33807 VS Community 2022 Edition 17.10.5

Details

PS I:\> vcpkg install openssl:x64-windows Computing installation plan... The following packages will be built and installed: openssl:x64-windows@3.3.2#1 Detecting compiler hash for triplet x64-windows... -- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890". Compiler found: D:/VS 2022/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\xrd\AppData\Local\vcpkg\archives in 229 us. Use --debug to see more details. Installing 1/1 openssl:x64-windows@3.3.2#1... Building openssl:x64-windows@3.3.2#1... -- Using cached openssl-openssl-210dc9a50dfd99caa1cf7c3d2fa42850124b1bbc.patch. -- Using cached openssl-openssl-openssl-3.3.2.tar.gz. -- Cleaning sources at D:/vcpkg/buildtrees/openssl/src/nssl-3.3.2-515f0a0017.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source D:/vcpkg/downloads/openssl-openssl-openssl-3.3.2.tar.gz -- Applying patch cmake-config.patch -- Applying patch command-line-length.patch -- Applying patch script-prefix.patch -- Applying patch asm-armcap.patch -- Applying patch windows/install-layout.patch -- Applying patch windows/install-pdbs.patch -- Applying patch unix/android-cc.patch -- Applying patch unix/move-openssldir.patch -- Applying patch unix/no-empty-dirs.patch -- Applying patch unix/no-static-libs-for-shared.patch -- Applying patch D:/vcpkg/downloads/openssl-openssl-210dc9a50dfd99caa1cf7c3d2fa42850124b1bbc.patch -- Using source at D:/vcpkg/buildtrees/openssl/src/nssl-3.3.2-515f0a0017.clean -- Found external ninja('1.11.0'). -- Getting CMake variables for x64-windows -- Getting CMake variables for x64-windows -- Prerunning x64-windows-dbg -- Building x64-windows-dbg -- Restarting build without parallelism CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: "D:/VS 2022/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/nmake.exe" /NOLOGO /G /U /F makefile install_dev install_modules INSTALL_PDBS=ON Working Directory: D:/vcpkg/buildtrees/openssl/x64-windows-dbg See logs for more information: D:\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-out.log D:\vcpkg\buildtrees\openssl\install-x64-windows-dbg-nmake-err.log Call Stack (most recent call first): scripts/cmake/vcpkg_build_nmake.cmake:156 (vcpkg_execute_build_process) ports/openssl/windows/portfile.cmake:74 (vcpkg_build_nmake) ports/openssl/portfile.cmake:76 (include) scripts/ports.cmake:192 (include) error: building openssl:x64-windows failed with: BUILD_FAILED See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle openssl:x64-windows: 3.9 min Please ensure you're using the latest port files with `git pull` and `vcpkg update`. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+openssl You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[openssl]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Details

cl : Command line warning D9025 : overriding '/Zi' with '/Z7' NMAKE : fatal error U1077: '"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU _build_libs' : return code '0x2' Stop.

Details

"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU depend "D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU _build_libs "D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c" cversion.c crypto\cversion.c(60): warning C4129: 'V': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'T': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'M': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'H': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'c': unrecognized character escape sequence crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'constant' crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'string'

xurendong commented 2 months ago

VS Enterprise 2022 Edition 17.10.5 has same problem, not only Community Edition. maybe the issue is up to spaces in the path?

install-x64-windows-dbg-nmake-err.log

cl : Command line warning D9025 : overriding '/Zi' with '/Z7' NMAKE : fatal error U1077: '"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU _build_libs' : return code '0x2' Stop.

install-x64-windows-dbg-nmake-out.log

"D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU depend "D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LU _build_libs "D:\VS 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MDd -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -I"crypto" -I"." -I"include" -I"providers\common\include" -I"providers\implementations\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\"" -D"ENGINESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\lib\\engines-3\"" -D"MODULESDIR=\"D:\\vcpkg\\packages\\openssl_x64-windows\\debug\\bin\"" -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"DEBUG" -D"_DEBUG" -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_USE_APPLINK -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -c /Focrypto\libcrypto-shlib-cversion.obj "crypto\cversion.c" cversion.c crypto\cversion.c(60): warning C4129: 'V': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'T': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'M': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'H': unrecognized character escape sequence crypto\cversion.c(60): warning C4129: 'c': unrecognized character escape sequence crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'constant' crypto\cversion.c(60): error C2143: syntax error: missing ';' before 'string'

greenozon commented 2 months ago

could you give it a try in to space-less dir?

dg0yt commented 2 months ago

maybe the issue is up to spaces in the path?

This has been confirmed many times...

xurendong commented 2 months ago

Successfully compiled using space-less VS path D:\VS_2022

Perdixky commented 6 days ago

我的文件夹下确实有空格,但是重新安装来去除空格也太过麻烦了,我想知道是否有更好的解决办法?