microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.18k stars 6.16k forks source link

[libpq] build failure in arm64-linux #37590

Open WangHHY19931001 opened 3 months ago

WangHHY19931001 commented 3 months ago

Operating system

Ubuntu 22.04.1 LTS

Compiler

aarch64-linux-gnu-gcc

Steps to reproduce the behavior

./vcpkg install libpq:arm64-linux

Failure logs

see zip package vcpkgbugreport.zip

Additional context

No response

geiseri commented 2 months ago

I see a build error on x64-linux. In my case the dying wish is:

configure: WARNING: unrecognized options: --without-nls, --without-xml, --without-xslt, --disable-silent-rules, --disable-shared, --enable-static
configure: WARNING: using cross tools not prefixed with host triplet
configure: error: 
When cross-compiling, either use the option --with-system-tzdata to use
existing time-zone data, or set the environment variable ZIC to a zic
program to use during the build.

I am on debian 12.5 and I noticed that /usr/sbin is not included in the path if you are not root. If that is added to the path it will compile correctly.

mcraveiro commented 1 week ago

I've had exactly the same problem with the same distro and arch as @geiseri, and adding /usr/sbin to the path also fixed my issue. Thanks.