microsoft / vcpkg

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

[zlib] build failure using MinGW #16539

Closed HideakiAtsuyo closed 3 years ago

HideakiAtsuyo commented 3 years ago

Host Environment

To Reproduce Steps to reproduce the behavior:

Failure logs

$ vcpkg install zlib
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:x86-windows -> 1.2.11#9
Warning: The following VS instances are excluded because the English language pack is unavailable.
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
Please install the English language pack.
Detecting compiler hash for triplet x86-windows...
A suitable version of powershell-core was not found (required v7.1.0). Downloading portable powershell-core v7.1.0...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x86.zip -> C:\Dev\vcpkg\downloads\PowerShell-7.1.0-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
Downloading 7zip...
  https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> C:\Dev\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg
Extracting 7zip...
A suitable version of nuget was not found (required v5.5.1). Downloading portable nuget v5.5.1...
Downloading nuget...
  https://dist.nuget.org/win-x86-commandline/v5.5.1/nuget.exe -> C:\Dev\vcpkg\downloads\22ea847d-nuget.exe
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\15\1549ee9c95df87d77699229cca87f3b4c96f9053.zip
Starting package 1/1: zlib:x86-windows
Building package zlib[core]:x86-windows...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz -> zlib1211.tar.gz...
-- Extracting source C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Using source at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean
-- Configuring x86-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: ninja -v
    Working Directory: C:/Dev/vcpkg/buildtrees/zlib/x86-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Dev\vcpkg\buildtrees\zlib\config-x86-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:324 (vcpkg_execute_required_process)
  ports/zlib/portfile.cmake:22 (vcpkg_configure_cmake)
  scripts/ports.cmake:139 (include)

Error: Building package zlib:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: zlib:x86-windows
  Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e

Additionally, attach any relevant sections from the log files above.

Additional context Nothing more

duanqn commented 3 years ago

Just trying to help -- do you have ninja installed? https://ninja-build.org/

Also, although I don't know why, the log says you need to install English language pack for your Visual Studio.

HideakiAtsuyo commented 3 years ago

Just trying to help -- do you have ninja installed? https://ninja-build.org/

Also, although I don't know why, the log says you need to install English language pack for your Visual Studio.

I don't have ninja at all i just removed my vcpkg because i corrupted it when i removed all files/folders with size(0) so i cloned it again and now it looks broken, before it was perfect...

And i'm french that's why i think :)

duanqn commented 3 years ago

@HideakiAtsuyo I think you need to install Ninja. This "Command failed: ninja -v" in the log shows that vcpkg is trying to use Ninja as the build system.

And maybe install the English language pack :)

HideakiAtsuyo commented 3 years ago

@HideakiAtsuyo I think you need to install Ninja. This "Command failed: ninja -v" in the log shows that vcpkg is trying to use Ninja as the build system.

And maybe install the English language pack :)

1) The language pack isn't a problem at all i'm sure about it ;) 2) Ninja is downloaded automatically, and doesn't work at all:

$ ./ninja.exe ninja: error: loading 'build.ninja': The specified file can't be found :)

HideakiAtsuyo commented 3 years ago

I have an interesting error:

When i run ninja from the folder itself it's working, when i use it in a different path ninja: error: loading 'build.ninja': The specified file can't be found :)

JonLiu1993 commented 3 years ago

Hi @HideakiAtsuyo ,Thanks for posting this issue,Please send the error log

C:\Dev\vcpkg\buildtrees\zlib\config-x86-windows-out.log

and @duanqn Thanks for your help!

I have two suggestions for this problem:

  1. Please choose a non-C drive and try to recreate vcpkg
  2. If the Visual Studio you installed is a non-English package, please install the English package
HideakiAtsuyo commented 3 years ago

config-x86-windows-out.log

1) I can't my others drives are used for other things and before it was working i just removed vcpkg to reinstall it because i removed all "0" file/folder size! 2) Again it's a useless thing i installed it and it doesn't change anything, not surprised tbh.. 👍

duanqn commented 3 years ago

@HideakiAtsuyo Personally I don't think using C: is a problem. The error log you posted says that VS failed to compile a test program. Can you check your VS installation and see if it can compile simple, hello-world level programs? If it's not working, try fixing it with the VS installer. You can also send feedbacks in Visual Studio.

Your ninja.exe is working fine. Ninja is a build system like GNU Make. By default, when you run make it looks for a file named "Makefile" in the current folder. Likewise, the default build script file for Ninja is "ninja.build". If you run it in a folder without a "ninja.build" file, it would complain.

HideakiAtsuyo commented 3 years ago

@HideakiAtsuyo Personally I don't think using C: is a problem. The error log you posted says that VS failed to compile a test program. Can you check your VS installation and see if it can compile simple, hello-world level programs? If it's not working, try fixing it with the VS installer. You can also send feedbacks in Visual Studio.

Your ninja.exe is working fine. Ninja is a build system like GNU Make. By default, when you run make it looks for a file named "Makefile" in the current folder. Likewise, the default build script file for Ninja is "ninja.build". If you run it in a folder without a "ninja.build" file, it would complain.

Yes i can otherwhise I would have said that my visual studio was broken......

By the way when you clone vcpkg then install anything with it it's supposed to work! Because before it was just:

1) Clone https://github.com/microsoft/vcpkg 2) Use the bootstrap file 3) ENJOY VCPKG

I never had a problem with this famous "ninja" that I didn't know existed before this message spoke about him.

duanqn commented 3 years ago

Hmmmm so after you re-installed vcpkg, do you encounter errors like this when you install other packages with vcpkg? Or is it just zlib? I think this might help clarify the situation a bit.

I feel that this is getting beyond my knowledge. Might be a good idea to wait for the maintainers to respond.

HideakiAtsuyo commented 3 years ago

cpr, boost-build, curl, zlib, bzip2 and prolly a lot more will have the same issue for me

HideakiAtsuyo commented 3 years ago

It's an emergency i can't even compile any program that require the modules that i need without vcpkg it's so long to download everything manually..

HideakiAtsuyo commented 3 years ago

Btw errors are only when i want to install packages, when i use the bootstrap file i don't have any error

JackBoosY commented 3 years ago
Warning: The following VS instances are excluded because the English language pack is unavailable.
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools

Can you please provide full failure log C:\Dev\vcpkg\buildtrees\zlib\config-x86-windows-out.log?

Thanks.

HideakiAtsuyo commented 3 years ago
Warning: The following VS instances are excluded because the English language pack is unavailable.
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools

Can you please provide full failure log C:\Dev\vcpkg\buildtrees\zlib\config-x86-windows-out.log?

Thanks.

config-x86-windows-out.log

JackBoosY commented 3 years ago
CMake Error at C:/Dev/cmake/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Dev/vcpkg/buildtrees/zlib/x86-windows-rel/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Dev/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe cmTC_7bd38 && [1/2] Building C object CMakeFiles\cmTC_7bd38.dir\testCCompiler.c.obj
    [2/2] Linking C executable cmTC_7bd38.exe
    FAILED: cmTC_7bd38.exe 
    cmd.exe /C "cd . && C:\Dev\cmake\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_7bd38.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests  -- C:\PROGRA~2\MICROS~2\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x86\link.exe /nologo CMakeFiles\cmTC_7bd38.dir\testCCompiler.c.obj  /out:cmTC_7bd38.exe /implib:cmTC_7bd38.lib /pdb:cmTC_7bd38.pdb /version:0.0 /machine:X86  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
    LINK Pass 1: command "C:\PROGRA~2\MICROS~2\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x86\link.exe /nologo CMakeFiles\cmTC_7bd38.dir\testCCompiler.c.obj /out:cmTC_7bd38.exe /implib:cmTC_7bd38.lib /pdb:cmTC_7bd38.pdb /version:0.0 /machine:X86 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_7bd38.dir/intermediate.manifest CMakeFiles\cmTC_7bd38.dir/manifest.res" failed (exit code 1104) with the following output:
    LINK : fatal error LNK1104: cannot open file 'ucrtd.lib'
    ninja: build stopped: subcommand failed.

Please install the required Visual Studio components. If you need to use minGW, you should use the triplet x86-mingw-dynamic / x86-mingw-staitc using the following command: ./vcpkg install zlib:x86-mingw-dynamic.

Thanks.

HideakiAtsuyo commented 3 years ago

Dynamic:

C:\Users\Administrator>vcpkg install zlib:x86-mingw-dynamic
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:x86-mingw-dynamic -> 1.2.11#9
Detecting compiler hash for triplet x86-mingw-dynamic...
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\f0\f0c84b765bf3058216c500756e434480748579f3.zip
Starting package 1/1: zlib:x86-mingw-dynamic
Building package zlib[core]:x86-mingw-dynamic...
-- Using community triplet x86-mingw-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\vcpkg\triplets\community\x86-mingw-dynamic.cmake
-- Using cached C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Using source at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean
-- Configuring x86-mingw-dynamic
-- Building x86-mingw-dynamic-dbg
-- Building x86-mingw-dynamic-rel
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst...
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/50864d9fae363d6e
-- Fixing pkgconfig file: C:/Dev/vcpkg/packages/zlib_x86-mingw-dynamic/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig file: C:/Dev/vcpkg/packages/zlib_x86-mingw-dynamic/debug/lib/pkgconfig/zlib.pc
-- Installing: C:/Dev/vcpkg/packages/zlib_x86-mingw-dynamic/share/zlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Administrator\AppData\Local\vcpkg\archives\f0\f0c84b765bf3058216c500756e434480748579f3.zip
Building package zlib[core]:x86-mingw-dynamic... done
Installing package zlib[core]:x86-mingw-dynamic...
Installing package zlib[core]:x86-mingw-dynamic... done
Elapsed time for package zlib:x86-mingw-dynamic: 3.211 min

Total elapsed time: 3.266 min

The package zlib is compatible with built-in CMake targets:

    find_package(ZLIB REQUIRED)
    target_link_libraries(main PRIVATE ZLIB::ZLIB)

C:\Users\Administrator>

Static:

C:\Users\Administrator>vcpkg install zlib:x86-mingw-static
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:x86-mingw-static -> 1.2.11#9
Detecting compiler hash for triplet x86-mingw-static...
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\17\1727ef66740350f36f3b32c9f81272eeaf5787fc.zip
Starting package 1/1: zlib:x86-mingw-static
Building package zlib[core]:x86-mingw-static...
-- Using community triplet x86-mingw-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\vcpkg\triplets\community\x86-mingw-static.cmake
-- Using cached C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Using source at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean
-- Configuring x86-mingw-static
-- Building x86-mingw-static-dbg
-- Building x86-mingw-static-rel
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/50864d9fae363d6e
-- Fixing pkgconfig file: C:/Dev/vcpkg/packages/zlib_x86-mingw-static/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig file: C:/Dev/vcpkg/packages/zlib_x86-mingw-static/debug/lib/pkgconfig/zlib.pc
-- Installing: C:/Dev/vcpkg/packages/zlib_x86-mingw-static/share/zlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Administrator\AppData\Local\vcpkg\archives\17\1727ef66740350f36f3b32c9f81272eeaf5787fc.zip
Building package zlib[core]:x86-mingw-static... done
Installing package zlib[core]:x86-mingw-static...
Installing package zlib[core]:x86-mingw-static... done
Elapsed time for package zlib:x86-mingw-static: 9.737 s

Total elapsed time: 11.81 s

The package zlib is compatible with built-in CMake targets:

    find_package(ZLIB REQUIRED)
    target_link_libraries(main PRIVATE ZLIB::ZLIB)

C:\Users\Administrator>

Dynamic: Success Static: Success

But again when i want to install cpr for example:

C:\Users\Administrator>vcpkg install cpr
Computing installation plan...
The following packages will be built and installed:
    cpr[core]:x86-windows -> 1.5.2
  * curl[core,non-http,schannel,ssl,sspi,winssl]:x86-windows -> 7.74.0#3
  * zlib[core]:x86-windows -> 1.2.11#9
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\15\1549ee9c95df87d77699229cca87f3b4c96f9053.zip
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\51\51a0c3bcb058d9a52177939ffaa709c262cc52d4.zip
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\c0\c0d8f9312204d549afab14223e2d73611729534e.zip
Starting package 1/3: zlib:x86-windows
Building package zlib[core]:x86-windows...
-- Using cached C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Using source at C:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean
-- Configuring x86-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: ninja -v
    Working Directory: C:/Dev/vcpkg/buildtrees/zlib/x86-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Dev\vcpkg\buildtrees\zlib\config-x86-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:324 (vcpkg_execute_required_process)
  ports/zlib/portfile.cmake:22 (vcpkg_configure_cmake)
  scripts/ports.cmake:139 (include)

Error: Building package zlib:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: zlib:x86-windows
  Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e

Additionally, attach any relevant sections from the log files above.

C:\Users\Administrator>

And i don't have any missing vs component

JackBoosY commented 3 years ago

@HideakiAtsuyo Once you have selected a triplet, you need to use it to build all the ports, please use command ./vcpkg install cpr:x86-mingw-dynamic.

HideakiAtsuyo commented 3 years ago

@HideakiAtsuyo Once you have selected a triplet, you need to use it to build all the ports, please use command ./vcpkg install cpr:x86-mingw-dynamic.

Result:

C:\Users\Administrator>vcpkg install cpr:x86-mingw-dynamic
Computing installation plan...
The following packages will be built and installed:
    cpr[core]:x86-mingw-dynamic -> 1.5.2
  * curl[core,non-http,openssl,ssl]:x86-mingw-dynamic -> 7.74.0#3
  * openssl[core]:x86-mingw-dynamic -> 1.1.1i
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-mingw-dynamic...
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\49\49c4b68ceb8cc30214e2641bfe9560c1ad7f35f1.zip
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\1f\1f9cde7602132955f84f0bab5286d99bdeeee791.zip
Could not locate cached archive: C:\Users\Administrator\AppData\Local\vcpkg\archives\c1\c1feccc4763aefc4f9d9727ced4bf2096b3ccf90.zip
Starting package 1/3: openssl:x86-mingw-dynamic
Building package openssl[core]:x86-mingw-dynamic...
-- Using community triplet x86-mingw-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\vcpkg\triplets\community\x86-mingw-dynamic.cmake
-- Downloading https://www.openssl.org/source/openssl-1.1.1i.tar.gz -> openssl-1.1.1i.tar.gz...
-- Extracting source C:/Dev/vcpkg/downloads/openssl-1.1.1i.tar.gz
-- Using source at C:/Dev/vcpkg/buildtrees/openssl/src/1.1.1i-ae932e0835.clean
-- Downloading https://repo.msys2.org/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/diffutils-3.7-1-x86_64.pkg.tar.xz -> msys-diffutils-3.7-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/coreutils-8.32-1-x86_64.pkg.tar.xz -> msys-coreutils-8.32-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz -> msys-grep-3.0-2-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/sed-4.8-1-x86_64.pkg.tar.xz -> msys-sed-4.8-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/libpcre-8.44-1-x86_64.pkg.tar.xz -> msys-libpcre-8.44-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/gawk-5.1.0-1-x86_64.pkg.tar.xz -> msys-gawk-5.1.0-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/mpfr-4.1.0-1-x86_64.pkg.tar.zst -> msys-mpfr-4.1.0-1-x86_64.pkg.tar.zst...
-- Downloading https://repo.msys2.org/msys/x86_64/gmp-6.2.0-1-x86_64.pkg.tar.xz -> msys-gmp-6.2.0-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/libreadline-8.0.004-1-x86_64.pkg.tar.xz -> msys-libreadline-8.0.004-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/ncurses-6.2-1-x86_64.pkg.tar.xz -> msys-ncurses-6.2-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/perl-5.32.0-1-x86_64.pkg.tar.zst -> msys-perl-5.32.0-1-x86_64.pkg.tar.zst...
-- Downloading https://repo.msys2.org/msys/x86_64/libcrypt-2.1-2-x86_64.pkg.tar.xz -> msys-libcrypt-2.1-2-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/pkg-config-0.29.2-4-x86_64.pkg.tar.zst -> msys-pkg-config-0.29.2-4-x86_64.pkg.tar.zst...
-- Downloading https://repo.msys2.org/msys/x86_64/make-4.3-1-x86_64.pkg.tar.xz -> msys-make-4.3-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/libintl-0.19.8.1-1-x86_64.pkg.tar.xz -> msys-libintl-0.19.8.1-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/libiconv-1.16-2-x86_64.pkg.tar.zst -> msys-libiconv-1.16-2-x86_64.pkg.tar.zst...
-- Downloading https://repo.msys2.org/msys/x86_64/gcc-libs-9.3.0-1-x86_64.pkg.tar.xz -> msys-gcc-libs-9.3.0-1-x86_64.pkg.tar.xz...
-- Downloading https://repo.msys2.org/msys/x86_64/msys2-runtime-3.1.6-3-x86_64.pkg.tar.xz -> msys-msys2-runtime-3.1.6-3-x86_64.pkg.tar.xz...
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/f2545a16bdace010
-- Configuring x86-mingw-dynamic
-- Building x86-mingw-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:144 (message):
    Command failed: C:/Dev/cmake/bin/cmake.exe --build . --config Debug --target install -- -v -j17
    Working Directory: C:/Dev/vcpkg/buildtrees/openssl/x86-mingw-dynamic-dbg
    See logs for more information:
      C:\Dev\vcpkg\buildtrees\openssl\install-x86-mingw-dynamic-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:105 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:45 (vcpkg_build_cmake)
  ports/openssl/unix/portfile.cmake:33 (vcpkg_install_cmake)
  ports/openssl/portfile.cmake:21 (include)
  scripts/ports.cmake:139 (include)

Error: Building package openssl:x86-mingw-dynamic failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: openssl:x86-mingw-dynamic
  Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e
HideakiAtsuyo commented 3 years ago

Btw the logs

install-x86-mingw-dynamic-dbg-out.log

vicroms commented 3 years ago

@HideakiAtsuyo

Since zlib builds successfully I suggest to close this issue and create a new one OpenSSL fails to build on x86-mingw-dynamic and attach the relevant logs.

HideakiAtsuyo commented 3 years ago

@HideakiAtsuyo

Since zlib builds successfully I suggest to close this issue and create a new one OpenSSL fails to build on x86-mingw-dynamic and attach the relevant logs.

👍