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

[bzip2] build failure in github actions #18678

Closed
0-wiz-0 opened this issue Jun 28, 2021 · 3 comments · Fixed by #18705
Closed

[bzip2] build failure in github actions #18678

0-wiz-0 opened this issue Jun 28, 2021 · 3 comments · Fixed by #18705
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Jun 28, 2021

I have a problem installing dependencies with github actions vcpkg, in particular bzip2.
It works fine with the tag from November 2020 (0bf3923) but fails with the May 2021 tag (5568f11).
I reported this as a run-vcpkg issue first, but there I was told it was a vcpkg issue:
lukka/run-vcpkg#85

There is a failure when installing the bzip2 package, which is why I report this as a bzip2 package failure.

Host Environment

To Reproduce
Use the following github actions:

jobs:
  all:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest]
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: install dependencies (Windows)
        if: ${{ runner.os == 'Windows' }}
        uses: lukka/run-vcpkg@v7
        id: runvcpkg
        with:
          vcpkgGitCommitId: 5568f110b509a9fd90711978a7cb76bae75bb092
          vcpkgTriplet: x64-windows
          vcpkgArguments: zlib bzip2 liblzma zstd

(full file at https://github.com/nih-at/libzip/blob/master/.github/workflows/build.yml)

Failure logs

  Running 'vcpkg remove --outdated --recurse ' in directory 'D:\a\libzip\libzip\vcpkg' ...
  There are no outdated packages.
  Using triplet 'x64-windows'.
  Set the environment variable 'RUNVCPKG_VCPKG_TRIPLET' to value: x64-windows
  Set the output variable 'RUNVCPKG_VCPKG_TRIPLET_OUT' to value: x64-windows
  Running 'vcpkg install --recurse zlib bzip2 liblzma zstd --triplet x64-windows --clean-after-build' in directory 'D:\a\libzip\libzip\vcpkg' ...
  Computing installation plan...
  The following packages will be built and installed:
      bzip2[core]:x64-windows -> 1.0.8#1
      liblzma[core]:x64-windows -> 5.2.5#2
      zlib[core]:x64-windows -> 1.2.11#10
      zstd[core]:x64-windows -> 1.4.9
  Detecting compiler hash for triplet x64-windows...
  Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\43\43b505470d324322516cdf2f8f95df303ec4da8e.zip
  Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\19\19e7a8b72f5b408a7a16139961f88f4430ebd788.zip
  Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\3d\3dba13f76ad5a5bd7b46fffcb031c1ed46d375be.zip
  Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\b8\b8ff9a9ecba3ccb5ada59896c90cdaab1a1d472d.zip
  Starting package 1/4: bzip2:x64-windows
  Building package bzip2[core]:x64-windows...
  -- Fetching https://sourceware.org/git/bzip2.git...
  CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:91 (file):
    file failed to open for reading (No such file or directory):
  
      D:/a/libzip/libzip/vcpkg/buildtrees/bzip2/git-init-x64-windows-out.log
  Call Stack (most recent call first):
    scripts/cmake/vcpkg_from_git.cmake:85 (vcpkg_execute_required_process)
    ports/bzip2/portfile.cmake:1 (vcpkg_from_git)
    scripts/ports.cmake:142 (include)
  
  
  Error: Building package bzip2:x64-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: bzip2:x64-windows
    Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9
  
  Additionally, attach any relevant sections from the log files above.

Additional context
I also tried running a separate 'vcpkg update' before, but that didn't help.

https://github.com/nih-at/libzip/blob/8f535a9a314eff0b6015ef098108e5ca1f8fe649/.github/workflows/build.yml

@NancyLi1013 NancyLi1013 self-assigned this Jun 28, 2021
@NancyLi1013 NancyLi1013 added the requires:repro The issue is not currently repro-able label Jun 29, 2021
@NancyLi1013
Copy link
Contributor

Hi @0-wiz-0

Thanks for posting this issue. I cannot reproduce this issue on my local. But there are several issues about bzip2 in vcpkg.

Seems like a vcpkg bug, related issue #18291. I will submit a PR to update the repository for bzip2 to avoid these problems.

@NancyLi1013
Copy link
Contributor

Please update vcpkg to the latest to rebuild this port.

@0-wiz-0
Copy link
Author

0-wiz-0 commented Jul 3, 2021

Thank you, with 8bb3f9e the github action completed successfully:
https://github.com/nih-at/libzip/runs/2980557451?check_suite_focus=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants