Vcpkg: openssl-windows cmake error

Created on 28 Mar 2019  路  7Comments  路  Source: microsoft/vcpkg

Hi,
I have just cloned the vcpkg repo and set it up by the REAMDE.md file.
My machine has Windows 10 and Visual Studio 2017.
I tried installing cpprestsdk package running: vcpkg install cpprestsdk cpprestsdk:x64-windows
( It successfully installed some boost components and zlib )

I got this error message in the cmd:

PS C:\projects\build_wr_davaj\VCPKG_manager\vcpkg> .\vcpkg install openssl-windows
The following packages will be built and installed:
    openssl-windows[core]:x86-windows
Starting package 1/1: openssl-windows:x86-windows
Building package openssl-windows[core]:x86-windows...
-- Using cached C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/downloads/openssl-1.0.2q.tar.gz
-- Applying patch C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/ports/openssl-windows/ConfigureIncludeQuotesFix.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/ports/openssl-windows/STRINGIFYPatch.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/ports/openssl-windows/EnableWinARM32.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/ports/openssl-windows/EmbedSymbolsInStaticLibsZ7.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Configure x86-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: C:/Windows/PERL;Configure;enable-static-engine;enable-capieng;no-ssl2;-utf-8;VC-WIN32;--prefix=C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/packages/openssl-windows_x86-windows;--openssldir=C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/packages/openssl-windows_x86-windows;-FS
    Working Directory: C:/projects/build_wr_davaj/VCPKG_manager/vcpkg/buildtrees/openssl-windows/x86-windows-rel/openssl-1.0.2q
    Error code: %1 is not a valid Win32 application
    See logs for more information:

Call Stack (most recent call first):
  ports/openssl-windows/portfile.cmake:74 (vcpkg_execute_required_process)
  scripts/ports.cmake:71 (include)


Error: Building package openssl-windows: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: openssl-windows:x86-windows
  Vcpkg version: 2018.11.23-nohash

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

I get the same error when trying to install openssl as standalone package by executing:
.\vcpkg install openssl-windows

The logs inside vcpkg\buildtrees\openssl-windows are mostly empty:
configure-perl-x86-windows--rel-err.log (empty)
configure-perl-x86-windows--rel-out.log (empty)
extract-err.log (empty)
extract-out.log (empty)
patch-x86-windows-0-err.log :
Checking patch Configure...
Applied patch Configure cleanly.

patch-x86-windows-0-out.log (empty)
patch-x86-windows-1-err.log:
Checking patch crypto/cversion.c...
Applied patch crypto/cversion.c cleanly.

patch-x86-windows-1-out.log (empty)
patch-x86-windows-2-err.log:
Checking patch util/pl/VC-32.pl...
Applied patch util/pl/VC-32.pl cleanly.

patch-x86-windows-2-out.log (empty)
patch-x86-windows-3-err.log:
Checking patch util/pl/VC-32.pl...
Applied patch util/pl/VC-32.pl cleanly.

patch-x86-windows-3-out.log (empty)

The problem seems to be within calling the C:/Windows/PERL -
this seems like a configuration text file, not an executable

repro

All 7 comments

open cmd.exe
where perl

?

running where perl

  • in cmd:
    C:\Windows\PERL
  • in powershell it gives nothing

  • in git bash
    C:\Windows\PERL
    C:\Program Files (x86)\Git\usr\bin\perl.exe

That's strange, PERL should be in <path_to_vcpkg>\downloads\tools\perl.

rename C:\Windows\PERL

Remove the directory from the env PATH
C:\Program Files (x86)\Git\usr\bin

renaming C:\Windows\PERL did the job, I don't know what kind of file it is - as I said earlier, it is not perl executable, but some configuration file

should I close the issue?

should I close the issue?

Personally I would =)

Why close this ticket? It seems as though its a problem on all Windows 10 machines using vcpkg to install cpprestsdk. I am having the same issue on multiple computers.

Was this page helpful?
0 / 5 - 0 ratings