Host Environment
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
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)_._
*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.
It was a Linux build, actually.
Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10
De: zhl8223notifications@github.com
Enviado:quarta-feira, 4 de novembro de 2020 04:33
Para: microsoft/vcpkgvcpkg@noreply.github.com
Cc:MrBolt2005joao2ojf@hotmail.com; Authorauthor@noreply.github.com
Assunto: Re: [microsoft/vcpkg] [boringssl:x64-linux] build failure (#14164)
Just delete VCPKG_ROOT\installed\x64-windows\includeopenssl folder, solved my problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvcpkg%2Fissues%2F14164%23issuecomment-721563066&data=04%7C01%7C%7C5f982e1629424f325c2708d88093f585%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637400720247462191%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EjHkdvTZ7DR7DZy1g%2FSnQsOIuDX5Dd%2Bqb9Sf482SvvE%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQLMPXZOCVEOCIX3IZXU52TSOD7VPANCNFSM4S3CL7YA&data=04%7C01%7C%7C5f982e1629424f325c2708d88093f585%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637400720247462191%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BeEdVwR0h5AtjJ%2BkSgeg8KIMc3zOtdeY768K6uRSlMI%3D&reserved=0.
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
vcpkg remove openssl-unixvcpkg install folly will be okthx for you reply
So I think #14457 should fixed this issue.
Most helpful comment
Just delete _VCPKG_ROOT\installed\x64-windows\includeopenssl_ folder, solved my problem.