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

zlib build failure #18606

Closed
johnmichaloski opened this issue Jun 23, 2021 · 6 comments
Closed

zlib build failure #18606

johnmichaloski opened this issue Jun 23, 2021 · 6 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@johnmichaloski
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: msvc 2019 community

To Reproduce
Steps to reproduce the behavior:
vcpkg install zlib

Failure logs
Error: Building package zlib:x64-windows failed with: BUILD_FAILED

c:\opt\ros\noetic\ariac_ws>more C:\opt\ros\noetic\x64\tools\vcpkg\buildtrees\zlib\msys-pacman-x64-windows-err.log
error: pkg-config: signature from "David Macek <[email protected]>" is unknown trust error: failed to commit transaction (invalid or corrupted package (PGP signature))

Additional context

Add any other context about the problem here, such as what you have already tried to resolve the issue.
Was trying to install libxml2 and it requires zlib, and it stops on this error. Using vcpkg from ROS1 noetic on Windows found in C:\opt\ros\noetic\x64\tools\vcpkg\ports.

TIA.

@JonLiu1993 JonLiu1993 self-assigned this Jun 24, 2021
@JonLiu1993 JonLiu1993 added category:question This issue is a question requires:repro The issue is not currently repro-able and removed category:question This issue is a question labels Jun 24, 2021
@JonLiu1993
Copy link
Member

@johnmichaloski ,Thanks for posting this issue.

msys-pacman-x64-windows-err.log

It seems that your error is related to MSYS2-packages. According to the official comments, it may be related to the old version. You can try to update the version.
The following issue is the same as your error and has been successfully resolved, you can refer to it
#2058

@johnmichaloski
Copy link
Author

Ok thanks. I played around but couldn't get it to work - there was no windows compatible pacman-key and I'm really a newbie to a lot of this stuff. Wasn't looking promising. Plus vcpkg,msys2, and pacman are embedded deeply in the MS deployment of ROS and since there is no pacman-key, so I will ask the MS ROS for windows git issues for help.

@JonLiu1993
Copy link
Member

Ok thanks. I played around but couldn't get it to work - there was no windows compatible pacman-key and I'm really a newbie to a lot of this stuff. Wasn't looking promising. Plus vcpkg,msys2, and pacman are embedded deeply in the MS deployment of ROS and since there is no pacman-key, so I will ask the MS ROS for windows git issues for help.

Okay, I will continue to track and investigate the solution

@JonLiu1993
Copy link
Member

@johnmichaloski ,You can update vcpkg and try again. If it doesn’t work, you can try to clone vcpkg again, which may solve your problem.

@JonLiu1993
Copy link
Member

@johnmichaloski ,Is this still a problem for you?

@johnmichaloski
Copy link
Author

So, reinstalling vcpkg did install libxml2.

Steps to Install libxml2

Problem: ROS1 used old open source packages in the bundled vcpkg. So had to download and clone vcpkg that had the latest packagers for zlib (David Macek with signing key 0x9078f532) required by libxml2, which is the package used in a ROS1 workspace.

Step 1: Clone the vcpkg repo (From vcpkg windows install instructions)

cd C:\opt
git clone https://github.com/Microsoft/vcpkg.git

Make sure you are in the directory you want the tool installed to before doing this.

Step 2: Run the bootstrap script to build vcpkg

.\vcpkg\bootstrap-vcpkg.bat

Step 3: Setup use of VC 2019 community

Previously had downloaded VC 2019 community to be used aa command line build tool for ROS1. Note: had bundled ROS1 and VC 2019 in PATH environment variable. So created separate command terminal: and then
C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
Just assumed it was needed.

Step 4: Install libxml2

C:\opt\vcpkg>.\vcpkg install libxml2
This worked with the new packager download hash credentials.

Packages installed in C:\opt\vcpkg\installed\x86-windows Have not tested.

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

No branches or pull requests

2 participants