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

[libpq] Build error on x64-windows #42378

Open
hh790918 opened this issue Nov 27, 2024 · 2 comments
Open

[libpq] Build error on x64-windows #42378

hh790918 opened this issue Nov 27, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@hh790918
Copy link

Package: libpq[core,lz4,openssl,zlib]:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.41.34123.0
  • vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
    vcpkg-scripts version: f523208 2024-11-26 (4 hours ago)

To Reproduce

vcpkg install libpq:x64-windows

Failure logs

-- Using cached postgresql-16.4.tar.bz2.
-- Cleaning sources at D:/src/vcpkg/buildtrees/libpq/src/tgresql-16-0b2040c781.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/src/vcpkg/downloads/postgresql-16.4.tar.bz2
-- Applying patch unix/installdirs.patch
-- Applying patch unix/fix-configure.patch
-- Applying patch unix/single-linkage.patch
-- Applying patch unix/no-server-tools.patch
-- Applying patch unix/mingw-install.patch
-- Applying patch unix/python.patch
-- Applying patch windows/macro-def.patch
-- Applying patch windows/win_bison_flex.patch
-- Applying patch windows/msbuild.patch
-- Applying patch windows/spin_delay.patch
-- Applying patch android/unversioned_so.patch
-- Using source at D:/src/vcpkg/buildtrees/libpq/src/tgresql-16-0b2040c781.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/src/vcpkg/downloads/tools/perl/5.40.0.1/perl/bin/perl.exe build.pl DEBUG libpq
    Working Directory: D:/src/vcpkg/buildtrees/libpq/x64-windows-dbg/src/tools/msvc
    Error code: 255
    See logs for more information:
      D:\src\vcpkg\buildtrees\libpq\build-libpq-x64-windows-dbg-out.log
      D:\src\vcpkg\buildtrees\libpq\build-libpq-x64-windows-dbg-err.log

Call Stack (most recent call first):
  ports/libpq/build-msvc.cmake:67 (vcpkg_execute_required_process)
  ports/libpq/portfile.cmake:74 (build_msvc)
  scripts/ports.cmake:196 (include)



D:\src\vcpkg\buildtrees\libpq\build-libpq-x64-windows-dbg-err.log
The determined version of Visual Studio is newer than the latest supported version. Returning the latest supported version instead. at D:/src/vcpkg/buildtrees/libpq/x64-windows-dbg/src/tools/msvc/Mkvcbuild.pm line 97.


   由于 Exception.ToString() 失败,因此无法打印异常字符串。
Can't spawn "msbuild libpq.vcxproj /verbosity:normal         /p:Platform=x64         /p:PlatformToolset=v143         /p:VCPkgLocalAppDataDisabled=true         /p:UseIntelMKL=No         /p:WindowsTargetPlatformVersion=10.0.22621.0         /p:VcpkgConfiguration=Debug         -m         /p:ForceImportBeforeCppTargets="D:/src/vcpkg/scripts/buildsystems/msbuild/vcpkg.targets;D:/src/vcpkg/buildtrees/libpq/x64-windows-dbg/vcpkg-libs.props"         /p:VcpkgTriplet=x64-windows         /p:VcpkgCurrentInstalledDir="D:/src/vcpkg/installed/x64-windows"         /p:ForceImportAfterCppTargets="D:/src/vcpkg/buildtrees/libpq/x64-windows-dbg/libpq.props"      /p:Configuration=Debug": Inappropriate I/O control operation at build.pl line 77.
D:\src\vcpkg\buildtrees\libpq\build-libpq-x64-windows-dbg-out.log
@Mengna-Li
Copy link
Contributor

Can you please confirm that you've installed the English Language package using Visual Studio Installer?

Thanks.

@Mengna-Li Mengna-Li added the category:question This issue is a question label Nov 27, 2024
@Mengna-Li Mengna-Li self-assigned this Nov 27, 2024
@hh790918
Copy link
Author

yes

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

2 participants