Vcpkg: [boringssl:x64-linux] build failure

Created on 22 Oct 2020  Â·  13Comments  Â·  Source: microsoft/vcpkg

Host Environment

  • OS: Ubuntu 20.04 LTS @ WSL 2
  • Compiler: revision

To Reproduce
Steps to reproduce the behavior:
`mrbolt2005@DESKTOP-B8RVLOM:/mnt/d/src/vcpkg$ ./vcpkg install boringssl
Computing installation plan...
The following packages will be built and installed:
boringssl[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: boringssl:x64-linux
Building package boringssl[core]:x64-linux...
Could not locate cached archive: /home/mrbolt2005/.cache/vcpkg/archives/88/885a0b16b6a9d175ce831852a22492a499cf00d8.zip
CMake Error at ports/boringssl/portfile.cmake:4 (message):
Can't build BoringSSL if OpenSSL is installed. Please remove OpenSSL, and
try to install BoringSSL again if you need it. Build will continue since
BoringSSL is a drop-in replacement for OpenSSL
Call Stack (most recent call first):
scripts/ports.cmake:79 (include)

Error: Building package boringssl:x64-linux 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: boringssl:x64-linux
Vcpkg version: 2020.06.15-unknownhash

Additionally, attach any relevant sections from the log files above.
mrbolt2005@DESKTOP-B8RVLOM:/mnt/d/src/vcpkg$ ./vcpkg install openssl
Computing installation plan...
The following packages will be built and installed:
openssl[core]:x64-linux

  • openssl-unix[core]:x64-linux
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x64-linux...
    Starting package 1/2: openssl-unix:x64-linux
    Building package openssl-unix[core]:x64-linux...
    Could not locate cached archive: /home/mrbolt2005/.cache/vcpkg/archives/c2/c260f83f22744035ec6d64768fb080f33ddc9150.zip
    CMake Error at ports/openssl-unix/portfile.cmake:6 (message):
    Can't build openssl if libressl/boringssl is installed. Please remove
    libressl/boringssl, and try install openssl again if you need it.
    Call Stack (most recent call first):
    scripts/ports.cmake:79 (include)

Error: Building package openssl-unix:x64-linux 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-unix:x64-linux
Vcpkg version: 2020.06.15-unknownhash

Additionally, attach any relevant sections from the log files above.
mrbolt2005@DESKTOP-B8RVLOM:/mnt/d/src/vcpkg$

~`

Failure logs
-Cut and past the appropriate build messages from the console output.
-Please attach any additional failure logs mentioned in the console output.

Additional context
I had already installed BoringSSL, and then I wanted to install OpenSSL. It then asked me to uninstall BoringSSL first, which I tried, but didn't work, as vcpkg wasn't even seeing it _anymore_ (_(as)__ _installed)_._

question

Most helpful comment

Just delete _VCPKG_ROOT\installed\x64-windows\includeopenssl_ folder, solved my problem.

All 13 comments

*Compiler: GCC

Vcpkg version: 2020.06.15-unknownhash

Can't build openssl if libressl/boringssl is installed. Please remove
libressl/boringssl, and try install openssl again if you need it.

I already tried uninstalling, but ALWAYS that I try to uninstall either boring or openssl, it gives a message saying that it’s not installed. What gives!?

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10

De: Jack·Boos·Yunotifications@github.com
Enviado:quinta-feira, 22 de outubro de 2020 23:26
Para: microsoft/vcpkgvcpkg@noreply.github.com
Cc:MrBolt2005joao2ojf@hotmail.com; Authorauthor@noreply.github.com
Assunto: Re: [microsoft/vcpkg] [boringssl:x64-linux] build failure (#14164)

Can't build openssl if libressl/boringssl is installed. Please remove

libressl/boringssl, and try install openssl again if you need it.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvcpkg%2Fissues%2F14164%23issuecomment-714867140&data=04%7C01%7C%7Cb3ee25d50c24418d11e708d876fafb5b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637390167616852898%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WTTT9oVnv9kjMPBWko1WPCENEEAcWXIx4GiGnxSyOPw%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQLMPX7DA6AO7VXJ7PX5KTLSMDSTPANCNFSM4S3CL7YA&data=04%7C01%7C%7Cb3ee25d50c24418d11e708d876fafb5b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637390167616862893%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l25W8xqtmcFqa5103fDfXMJWn7VLmvUUUUTrk%2B66qkQ%3D&reserved=0.

Can you search for ssl.h in _VCPKG_ROOT/packages_ and give me the result?

Just delete _VCPKG_ROOT\installed\x64-windows\includeopenssl_ folder, solved my problem.

Just delete _VCPKG_ROOT\installed\x64-windows\includeopenssl_ folder, solved my problem.

after rm \includeopenssl folder, error happen as below

vcpkg/installed/x64-linux and are in conflict with openssl:x64-linux

Installed by openssl-unix:x64-linux

@westfly can you see my comments and reply?

OK, I'm gonna try that. Plz wait. ;-)

Enviado do tablet Samsung.

@westfly can you see my comments and reply?

find . -name ssl.h
./buildtrees/openssl/src/1.1.1h-09fb822c56.clean/include/openssl/ssl.h
./buildtrees/openssl/x64-linux-dbg/1.1.1h-09fb822c56.clean/include/openssl/ssl.h
./buildtrees/openssl/x64-linux-rel/1.1.1h-09fb822c56.clean/include/openssl/ssl.h
./packages/openssl_x64-linux/include/openssl/ssl.h

should I delete package as below?

packages/openssl_x64-linux/

@westfly Does _./installed/x64-linux/include/openssl/ssl.h_ exists on your machine?
I can't find this on your provided result.

And can you update vcpkg and try again?

Thanks.

Maybe related: #14440

@westfly Does _./installed/x64-linux/include/openssl/ssl.h_ exists on your machine?
I can't find this on your provided result.

And can you update vcpkg and try again?

Thanks.

Maybe related: #14440

this error happen when rebuilding folly for upgrading folly as below

vcpkg install folly 
Computing installation plan...
The following packages will be built and installed:
    folly[core,zlib]:x64-linux
  * openssl[core]:x64-linux
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Starting package 1/2: openssl:x64-linux
Building package openssl[core]:x64-linux...
Using cached binary package: /home/aresyang/.cache/vcpkg/archives/75/75cfc5c6640d04194f4e572531c72dbc88021e45.zip
Building package openssl[core]:x64-linux... done
Installing package openssl[core]:x64-linux...
The following files are already installed in /home/aresyang/vcpkg/installed/x64-linux and are in conflict with openssl:x64-linux

Installed by openssl-unix:x64-linux
   ....
    include/openssl/des.h

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:x64-linux
  Vcpkg version: 2020.06.15-unknownhash

so I remove openssl-unix and rebuild folly

vcpkg remove openssl-unix
The following packages will be removed:
    openssl-unix:x64-linux
Removing package openssl-unix:x64-linux...
Warning: $vcpkg/installed/x64-linux/include/openssl/: file not found

just solve it.
I think the reason as list

  1. old folly depends on openssl-unix:x64-linux
  2. new folly depends on openssl:x64-linux
  3. openssl:x64-linux install failed when detect openssl-unix:x64-linux installed
  4. remove includeopenssl folder should be removed by using command vcpkg remove openssl-unix
  5. rebuild package using command vcpkg install folly will be ok

thx for you reply

So I think #14457 should fixed this issue.

Was this page helpful?
0 / 5 - 0 ratings