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

Unable to install bzip2 #16282

Closed
kendfss opened this issue Feb 18, 2021 · 6 comments
Closed

Unable to install bzip2 #16282

kendfss opened this issue Feb 18, 2021 · 6 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@kendfss
Copy link

kendfss commented Feb 18, 2021

Host Environment

  • OS: Windows
  • Compiler: unsure, how do I check?

To Reproduce
vcpkg install tesseract:x64-windows

Failure logs

Computing installation plan...
The following packages will be built and installed:
  * bzip2[core]:x64-windows-static -> 1.0.8#1
  * giflib[core]:x64-windows-static -> 5.1.4-6
  * leptonica[core]:x64-windows-static -> 1.80.0#2
  * libarchive[bzip2,core,libxml2,lz4,lzma,lzo,openssl,zstd]:x64-windows-static -> 3.4.3#3
  * libiconv[core]:x64-windows-static -> 1.16#8
  * libjpeg-turbo[core]:x64-windows-static -> 2.0.6
  * liblzma[core]:x64-windows-static -> 5.2.5#2
  * libpng[core]:x64-windows-static -> 1.6.37#14
  * libwebp[core,nearlossless,simd,unicode]:x64-windows-static -> 1.1.0#1
  * libxml2[core]:x64-windows-static -> 2.9.10#2
  * lz4[core]:x64-windows-static -> 1.9.2-2
  * lzo[core]:x64-windows-static -> 2.10#6
  * openjpeg[core]:x64-windows-static -> 2.3.1#2
  * openssl[core]:x64-windows-static -> 1.1.1i
    tesseract[core]:x64-windows-static -> 4.1.1#6
  * tiff[core]:x64-windows-static -> 4.1.0#1
  * xxhash[core]:x64-windows-static -> 0.8.0#1
  * zlib[core]:x64-windows-static -> 1.2.11#9
  * zstd[core]:x64-windows-static -> 1.4.5#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static...
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\ea\ea602b278c47e23110fe08fa7505309595fd4160.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\f9\f904c203ca3313f3072f3a5a4acedd75cc31933f.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\05\05f6556cfd782f69bcc21e623ff434401fa15535.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\d9\d98423e1a394dbe204fdb072697c2c4b2fa33341.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\2d\2dde467fc38cba97fa4eeca230756a0e8ea753c8.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\4b\4b40a9c830d89c8f1377353892fe3ea78aed2958.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\6b\6b84b200c17a34596097c3955eb8dc3728949be7.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\37\379d3edd7a18b75470c0f12fc6efedf8330d3c4f.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\42\42ed7cfd17051838728bb23ca73a1267201064f6.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\c9\c9236bd2f08e39de232e5f9a13d3ab65db353cee.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\fa\fac21c3ba1ed96ef56981527dd3ba6d8775a4b80.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\07\07b7df67a75ec537fca7a601faf8615d671c5e48.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\72\7202c11698d2b42225900d9cf873c6f47c305c84.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\23\236662fa06d6d1eec99988c1c6f7b9728a3db09d.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\00\009abaf0bc84dfabc29c9bd7120c98eeb8c4f48f.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\2f\2f6f2c2c0b81adce3a58f144b0739711d38bb1a3.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\f8\f8117f9ba3ac56741d52957dafaf631ba25c73bd.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\9a\9add520a790b668d8531e16437d262a44913918f.zip
Could not locate cached archive: C:\Users\Kenneth\AppData\Local\vcpkg\archives\fc\fc6919fab6c744c7d54f7c4fa55e0a35d9aade6b.zip
Starting package 1/19: bzip2:x64-windows-static
Building package bzip2[core]:x64-windows-static...
-- Fetching https://sourceware.org/git/bzip2.git...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: C:/msys64/usr/bin/git.exe fetch https://sourceware.org/git/bzip2.git 75a94bea3918e612b879d6a11ca64b8689526147 --depth 1 -n
    Working Directory: C:/src/vcpkg/downloads/git-tmp
    Error code: 3328
    See logs for more information:
      C:\src\vcpkg\buildtrees\bzip2\git-fetch-x64-windows-static-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_git.cmake:91 (vcpkg_execute_required_process)
  ports/bzip2/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:131 (include)


Error: Building package bzip2:x64-windows-static 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: bzip2:x64-windows-static
  Vcpkg version: 2021-01-13-768d8f95c9e752603d2c5901c7a7c7fbdb08af35

Relevant sections from the log files above.

C:/msys64/usr/lib/git-core/git-remote-https.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

Additional context
I globbed for the missing git-remote-https.exe and found it at c:\msys64\usr\lib\git-core\git-remote-https.exe, among other places. So, if I've understood the logged error at all, it definitely shouldn't be creating an error.
I had also tried dynamic installation and installing bzip2 (static and dynamic, 64 and x86) alone, but without any idea what the missing archives were supposed to be I'm unsure on how to proceed.

@kendfss kendfss changed the title [<port name>] build failure Unable to install bzip2 Feb 18, 2021
@ras0219-msft ras0219-msft added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Feb 18, 2021
@ras0219-msft
Copy link
Contributor

ras0219-msft commented Feb 18, 2021

Thanks for posting this issue!

It looks like you have a partially functional copy of git on your path from C:\msys64\usr\bin. Could you try removing that directory from your path variable and re-run vcpkg?

@kendfss
Copy link
Author

kendfss commented Feb 20, 2021

That did the trick!
Thanks!

@unusual-aspect
Copy link

Can this be closed? As is sounds as solved ;)

@JackBoosY
Copy link
Contributor

No, I think we should handle this situation.

@GyrosGeier
Copy link

As written in #13602: the problem is that vcpkg cleans up the path for reproducibility, which breaks DLL loading for git helper programs for git installations on the path.

At least for Jenkins, the installation on the path is the correct one, because Jenkins prepares credentials and other configuration by calling various git commands from the path, so always replacing it might break subproject checkouts or merge-after-checkout.

@NancyLi1013
Copy link
Contributor

Since bzip2 has updated the URL as https://sourceware.org/pub/bzip2 instead of https://sourceware.org/git/bzip2.git.

vcpkg_from_git has also been refactored. So this issue should not exist now. Please try to update vcpkg to the latest via git pull to rebuild bzip2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

No branches or pull requests

6 participants