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

Error: Building package bzip2:x86-windows failed with: BUILD_FAILED #15648

Closed
alhaas opened this issue Jan 14, 2021 · 9 comments
Closed

Error: Building package bzip2:x86-windows failed with: BUILD_FAILED #15648

alhaas opened this issue Jan 14, 2021 · 9 comments
Assignees
Labels
category:question This issue is a question

Comments

@alhaas
Copy link

alhaas commented Jan 14, 2021

I am having issues with the bzip2 installation. Due to a proxy issue I manually downloaded the file and placed it in the download folder, vcpkg seems to find it and extracts it to the buildtree directory, however from there on the installation fails. Did I miss something when placing files manually in the downloads directory?

Starting package 1/1: bzip2:x86-windows
Building package bzip2[core]:x86-windows...
-- Using cached ***/bzip2-75a94bea3918e612b879d6a11ca64b8689526147.tar.gz
-- Extracting source ***/bzip2-75a94bea3918e612b879d6a11ca64b8689526147.tar.gz
-- Applying patch fix-import-export-macros.patch
CMake Error at scripts/cmake/vcpkg_apply_patches.cmake:63 (message):
Applying patch failed. Checking patch bzlib.h...

error: bzlib.h: No such file or directory

Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:145 (vcpkg_apply_patches)
scripts/cmake/vcpkg_from_git.cmake:132 (vcpkg_extract_source_archive_ex)
ports/bzip2/portfile.cmake:1 (vcpkg_from_git)
scripts/ports.cmake:136 (include)

Error: Building package bzip2: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: bzip2:x86-windows
Vcpkg version: 2020.11.12--unknownhash

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

@JackBoosY JackBoosY self-assigned this Jan 15, 2021
@NancyLi1013 NancyLi1013 assigned NancyLi1013 and unassigned JackBoosY Jan 15, 2021
@NancyLi1013 NancyLi1013 added the category:question This issue is a question label Jan 15, 2021
@JackBoosY
Copy link
Contributor

Can you make sure bzlib.h is in VCPKG_ROOT/buildtrees/bzip2/src/****?

@alhaas
Copy link
Author

alhaas commented Jan 15, 2021

bzlib.h is located here: VCPKG_ROOT\buildtrees\bzip2\src\8689526147-336d4794a3.tmp\bzip2-1.0.8\bzlib.h

@JackBoosY
Copy link
Contributor

Can you please remove the bzip2 archive and put this to VCPKG_ROOT/downloads then try again?

Thanks.

@alhaas
Copy link
Author

alhaas commented Jan 15, 2021

It worked, thank you very much!

@alhaas alhaas closed this as completed Jan 15, 2021
@2021se7en
Copy link

i delete bzip2 archive and put it to VCPKG_ROOT/downloads then failed

@JackBoosY
Copy link
Contributor

@2021se7en Can you please make sure your vcpkg is latest?

@2021se7en
Copy link

@2021se7en Can you please make sure your vcpkg is latest?

yes already update to latest version

@2021se7en
Copy link

@2021se7en Can you please make sure your vcpkg is latest?

need i set up nmake?

@JackBoosY
Copy link
Contributor

@2021se7en That's not needed. Can you please open a new issue to report that?
And please attach the failure logs.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

4 participants