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

OpenSSL fails on Windows with VS16+ninja/nmake and MinGW and msys #591

Open
NeroBurner opened this issue Jul 4, 2022 · 0 comments
Open

Comments

@NeroBurner
Copy link

Found when @Dargun updated the OpenSSL schema to build with emscripten in #590


Previously https://cpp-pm.github.io/hunter/ shows that the nmake and ninja builds were skipped (marked blue). Only the VS16 windows build was reliably working (and still does work)

test matrix OpenSSL

The updated testmatrix (because the windows images containing VS15 compiler and older were removed by GitHub) show a few new failing pipelines.
The failing pipelines are related to VS16 with nmake and ninja, as well as mingw builds on Windows. I assume the schema for OpenSSL needs to be updated to handle the new compiler/environments

failing vs16 tests


mingw build fails with https://github.com/cpp-pm/hunter/runs/7181061079?check_suite_focus=true

 [ 62%] Performing configure step for 'OpenSSL'
cd /d D:\a\hunter\hunter\_testing\Hunter\_Base\d4c2b57\4ad9ab7\fff76ad\Build\OpenSSL\Source && . D:/a/hunter/hunter/_testing/Hunter/_Base/Download/Hunter/unknown/d4c2b57/Unpacked/scripts/clear-all.sh && MACHINE=AMD64 CC=C:/ProgramData/chocolatey/bin/gcc.exe ./Configure mingw64 threads no-shared --prefix=D:/a/hunter/hunter/_testing/Hunter/_Base/d4c2b57/4ad9ab7/fff76ad/Build/OpenSSL/Install
'.' is not recognized as an internal or external command,

I don't see the related error for msys build https://github.com/cpp-pm/hunter/runs/7181061204?check_suite_focus=true

[ 75%] Performing build step for 'OpenSSL'
cd /D/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Source && . D:/a/hunter/hunter/_testing/Hunter/_Base/Download/Hunter/unknown/63d477f/Unpacked/scripts/clear-all.sh && make
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory '/D/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Source'
make[1]: Leaving directory '/D/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Source'
make[1]: Entering directory '/D/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Source'
C:/ProgramData/chocolatey/bin/gcc.exe  -I. -Iinclude -m64 -Wall -O3 -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"C:/Program Files/Common Files/SSL\"" -DENGINESDIR="\"D:/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Install/lib/engines-1_1\"" -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -D_MT -DNDEBUG   -c -o apps/app_rand.o apps/app_rand.c
make[1]: *** [Makefile:695: apps/app_rand.o] Error 1
make[1]: Leaving directory '/D/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Source'
make: *** [Makefile:186: all] Error 2
make[2]: *** [CMakeFiles/OpenSSL.dir/build.make:89: OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-build] Error 2
make[2]: Leaving directory '/d/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Build'
make[1]: Leaving directory '/d/a/hunter/hunter/_testing/Hunter/_Base/63d477f/e90b15f/fff76ad/Build/OpenSSL/Build'
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/OpenSSL.dir/all] Error 2
make: *** [Makefile:94: all] Error 2

error for VS16+ninja build https://github.com/cpp-pm/hunter/runs/7181060761?check_suite_focus=true

 [3/8] cmd.exe /C "cd /D C:\__BIN\MnCcO\OpenSSL && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E echo_append && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-update"
[4/8] cmd.exe /C "cd /D C:\__BIN\MnCcO\OpenSSL && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E echo_append && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-patch"
[5/8] cmd.exe /C "cd /D D:\a\hunter\hunter\_testing\Hunter\_Base\a55d871\784ec42\d37c332\Build\OpenSSL\Source && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -P C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure"
FAILED: OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure
cmd.exe /C "cd /D D:\a\hunter\hunter\_testing\Hunter\_Base\a55d871\784ec42\d37c332\Build\OpenSSL\Source && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -P C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake && D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure"
CMake Error at C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake:49 (message):
  Command failed: 1
   'D:/a/hunter/hunter/_ci/cmake/bin/cmake.exe' '-Dmake=' '-Dconfig=' '-P' 'C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug-impl.cmake'
  See also
    C:/__BIN/MnCcO/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-*.log
ninja: build stopped: subcommand failed.
-- Configuring incomplete, errors occurred!

error for VS16+nmake build https://github.com/cpp-pm/hunter/runs/7181060882?check_suite_focus=true

   D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-download
  cd C:\__BIN\0YT9j\OpenSSL
[ 37%] No update step for 'OpenSSL'
  D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E echo_append
  D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-update
[ 50%] No patch step for 'OpenSSL'
  D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E echo_append
  D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -E touch C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-patch
[ 62%] Performing configure step for 'OpenSSL'
  cd D:\a\hunter\hunter\_testing\Hunter\_Base\f06a6d0\fa6f82c\d37c332\Build\OpenSSL\Source
  D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe -P C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake
CMake Error at C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake:49 (message):
  Command failed: 1
   'D:/a/hunter/hunter/_ci/cmake/bin/cmake.exe' '-Dmake=' '-Dconfig=' '-P' 'C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug-impl.cmake'
  See also
    C:/__BIN/0YT9j/OpenSSL/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-*.log
NMAKE : fatal error U1077: 'D:\a\hunter\hunter\_ci\cmake\bin\cmake.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
-- Configuring incomplete, errors occurred!
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

1 participant