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 failure [android] #30327

Closed
WangHHY19931001 opened this issue Mar 21, 2023 · 16 comments · Fixed by #31314 or #31228
Closed

[libpq] build failure [android] #30327

WangHHY19931001 opened this issue Mar 21, 2023 · 16 comments · Fixed by #31314 or #31228
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@WangHHY19931001
Copy link

WangHHY19931001 commented Mar 21, 2023

vcpkg install libpq:arm-android --debug
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from C:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: C:\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Using scripts-root: C:\vcpkg\scripts
[DEBUG] Using builtin-ports: C:\vcpkg\ports
[DEBUG] Using installed-root: C:\vcpkg\installed
[DEBUG] Using buildtrees-root: C:\vcpkg\buildtrees
[DEBUG] Using packages-root: C:\vcpkg\packages
[DEBUG] Using vcpkg-root: C:\vcpkg
[DEBUG] Using scripts-root: C:\vcpkg\scripts
[DEBUG] Using builtin-registry: C:\vcpkg\versions
[DEBUG] Using downloads-root: C:\vcpkg\downloads
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] Default binary cache path is: C:\Users\dell\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1000: cmd_execute_and_stream_data() returned 0 after 31670 us
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe" -DVCPKG_ROOT_DIR=C:/vcpkg -DPACKAGES_DIR=C:/vcpkg/packages -DBUILDTREES_DIR=C:/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=C:/vcpkg/installed -DDOWNLOADS=C:/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\vcpkg\buildtrees\0.vcpkg_dep_info.cmake")
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1001: cmd_execute_and_stream_data() returned 0 after 24231 us
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe" -DVCPKG_ROOT_DIR=C:/vcpkg -DPACKAGES_DIR=C:/vcpkg/packages -DBUILDTREES_DIR=C:/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=C:/vcpkg/installed -DDOWNLOADS=C:/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1002: cmd_execute_and_stream_data() returned 0 after 24556 us
The following packages will be built and installed:
libpq[core,lz4,openssl,zlib]:arm-android -> 15.2#1
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] Trying to hash C:\vcpkg\scripts\toolchains/android.cmake
[DEBUG] C:\vcpkg\scripts\toolchains/android.cmake has hash 4e1baa1a21b183d2ac6a852af84a3b06964cba5ea439fc3efdf9c47faf774189
[DEBUG] Trying to hash C:\vcpkg\triplets\community\arm-android.cmake
[DEBUG] C:\vcpkg\triplets\community\arm-android.cmake has hash cf4a61eae40ed809b09276e552cf0a1a50de49f31bacb899dce95efcaf915ab1
Detecting compiler hash for triplet arm-android...
[DEBUG] Found path: C:\Program Files\Git\cmd\git.exe
[DEBUG] CreateProcessW("C:\Program Files\Git\cmd\git.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1003: cmd_execute_and_stream_data() returned 0 after 28070 us
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\powershell-core-7.2.8-windows\pwsh.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1004: cmd_execute_and_stream_data() returned 0 after 157868 us
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe" -DCURRENT_PORT_DIR=C:/vcpkg/scripts/detect_compiler -DCURRENT_BUILDTREES_DIR=C:/vcpkg/buildtrees/detect_compiler -DCURRENT_PACKAGES_DIR=C:/vcpkg/packages/detect_compiler_arm-android -D_HOST_TRIPLET=arm-android -DCMD=BUILD -DDOWNLOADS=C:/vcpkg/downloads -DTARGET_TRIPLET=arm-android -DTARGET_TRIPLET_FILE=C:/vcpkg/triplets/community/arm-android.cmake -DVCPKG_BASE_VERSION=2023-03-14 -DVCPKG_CONCURRENCY=13 -DVCPKG_PLATFORM_TOOLSET=external "-DGIT=C:/Program Files/Git/cmd/git.exe" -DVCPKG_ROOT_DIR=C:/vcpkg -DPACKAGES_DIR=C:/vcpkg/packages -DBUILDTREES_DIR=C:/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=C:/vcpkg/installed -DDOWNLOADS=C:/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\vcpkg\scripts\ports.cmake")
[DEBUG] -- Configuring arm-android
[DEBUG] [1/1] "C:/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/vcpkg/scripts/detect_compiler" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/vcpkg/packages/detect_compiler_arm-android" "-DCMAKE_MAKE_PROGRAM=C:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/vcpkg/scripts/toolchains/android.cmake" "-DVCPKG_TARGET_TRIPLET=arm-android" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=static" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/vcpkg" "-DZ_VCPKG_ROOT_DIR=C:/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF"
[DEBUG] -- Android: Targeting API '21' with architecture 'arm', ABI 'armeabi-v7a', and processor 'armv7-a'
[DEBUG] -- Android: Selected unified Clang toolchain
[DEBUG] -- The C compiler identification is Clang 12.0.8
[DEBUG] -- Detecting C compiler ABI info
[DEBUG] -- Detecting C compiler ABI info - done
[DEBUG] -- Check for working C compiler: C:/Users/dell/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
[DEBUG] -- Detecting C compile features
[DEBUG] -- Detecting C compile features - done
[DEBUG] -- The CXX compiler identification is Clang 12.0.8
[DEBUG] -- Detecting CXX compiler ABI info
[DEBUG] -- Detecting CXX compiler ABI info - done
[DEBUG] -- Check for working CXX compiler: C:/Users/dell/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
[DEBUG] -- Detecting CXX compile features
[DEBUG] -- Detecting CXX compile features - done
[DEBUG] #COMPILER_HASH#f0c88fcdd4d1c47ad77c6fecc1f71cb87c556b0f
[DEBUG] #COMPILER_C_HASH#88b401d2828eeaf732a2d1c3aca68af576bf8a6e
[DEBUG] #COMPILER_C_VERSION#12.0.8
[DEBUG] #COMPILER_C_ID#Clang
[DEBUG] #COMPILER_CXX_HASH#88b401d2828eeaf732a2d1c3aca68af576bf8a6e
[DEBUG] #COMPILER_CXX_VERSION#12.0.8
[DEBUG] #COMPILER_CXX_ID#Clang
[DEBUG] -- Configuring done
[DEBUG] -- Generating done
[DEBUG] CMake Warning:
[DEBUG] Manually-specified variables were not used by the project:
[DEBUG]
[DEBUG] BUILD_SHARED_LIBS
[DEBUG] CMAKE_INSTALL_BINDIR
[DEBUG] CMAKE_INSTALL_LIBDIR
[DEBUG] VCPKG_PLATFORM_TOOLSET
[DEBUG] VCPKG_SET_CHARSET_FLAG
[DEBUG] _VCPKG_ROOT_DIR
[DEBUG]
[DEBUG]
[DEBUG] -- Build files have been written to: C:/vcpkg/buildtrees/detect_compiler/arm-android-rel
[DEBUG]
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1005: cmd_execute_and_stream_data() returned 0 after 1532082 us
[DEBUG]
[DEBUG] Detected compiler hash for triplet arm-android: f0c88fcdd4d1c47ad77c6fecc1f71cb87c556b0f
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\config.pl
[DEBUG] C:\vcpkg\ports\libpq\config.pl has hash e0e67285eea48cd08365cb5db442746059d93d2fd2664c5d4e4af03536f6c27a
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\libpq.props.in
[DEBUG] C:\vcpkg\ports\libpq\libpq.props.in has hash 91c8699bbad7ce0cf45dba55c4837de75a7ea16e07b3ec6335c3a61cda4eef40
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\Makefile
[DEBUG] C:\vcpkg\ports\libpq\Makefile has hash caa4ac26a62f2e552477a405cf1466344af508862abf9e389294065f199b4ea9
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\fix-configure.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\fix-configure.patch has hash 8429df3c8f8202d878f32fd607a4e51cb642fa49d226dad4f23bbe5ace06364b
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\arm.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\arm.patch has hash abdf2117f15634cc45fa3a12ff8cb3902121ad407bc5b4d6c8483bd9757b65f6
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\fix-compile-flag-Zi.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\fix-compile-flag-Zi.patch has hash bf17e4aa62bd20726fed9b9f75cf9fe847d1504da0e115d9c752eea7dfb79a78
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\install.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\install.patch has hash 0e8e368d87ae63f1afde4d2f4db329b88bd06928d9bc0f35ae6f71642a57b440
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\macro-def.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\macro-def.patch has hash 5eee809348f5c0fd6f9dce75ed0f5827702a1917df94b857ffeae00b7d6304b9
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\minimize_install.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\minimize_install.patch has hash 664f6b0d693eb16f537be6fb48c2aa4fdc43c59d835907b214777512ddcc8b1c
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\Mkvcbuild-static-lib.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\Mkvcbuild-static-lib.patch has hash 137a878048fb18cedf8e06608506878dcdf50dcf4e4dde6eb9889aac81f38d37
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\MSBuildProject-static-crt.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\MSBuildProject-static-crt.patch has hash 4d3d6e85e587e66ee0d8e8cb22ca3ddb9cfbdf948c66dac28b17fc5ad32c3338
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\MSBuildProject-static-lib.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\MSBuildProject-static-lib.patch has hash f9899cbc9d891fdd2f5d3450ea79830ce6cdd878c90b63f3f6c4b799387c4180
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\MSBuildProject_fix_gendef_perl.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\MSBuildProject_fix_gendef_perl.patch has hash 6f39d4b6977fa37f3119f769e138a7924079d9f9aeca50dab2d1194d3cf1a89b
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\msgfmt.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\msgfmt.patch has hash d054eca0b9793716ac0919d63e8441c4f8f93e6826bb5f4387a0b6ad8a3a443f
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\openssl-version.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\openssl-version.patch has hash fcfddef8bb7970b5b083d6ef7102cfa9aded025bf4bb7b13e19e7385d2db1fc3
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\python3_build_DEBUG.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\python3_build_DEBUG.patch has hash bb6ce9dc2bc81b42425041a86b900aaa1bd0ee6c2432bc4558ce8a8b920b0646
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\python3_build_RELEASE.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\python3_build_RELEASE.patch has hash 31645bbd857232e7712d764b4baae6027aba670ec43d77a2b118b3cf1eea57b9
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\python_lib.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\python_lib.patch has hash ac6e02887d8ae46ac451efda57fdc2e7b4885304ef7320230c4d37e6b1b0f1ad
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\Solution.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\Solution.patch has hash ab023cff16988ba8626225820fbb0128ba150e2e64efb21b782146debcf5029f
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\Solution_DEBUG.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\Solution_DEBUG.patch has hash 3fcf967b4cae7b9457453eae1813433546348e9925821c5744b03942cc46e20f
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\Solution_RELEASE.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\Solution_RELEASE.patch has hash 7ee401b9d21625caaa751ef467f77069500f9f803b2c75f3a30081287c937aed
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\tcl_version.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\tcl_version.patch has hash fcc0d905347e4bf9796d6ebc520ffa031adc08f8587eaa286432cce6e0314223
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\patches\windows\win_bison_flex.patch
[DEBUG] C:\vcpkg\ports\libpq\patches\windows\win_bison_flex.patch has hash 126c4c53e3fde5c0543e148a9b0a1de0e136068d08d9ee45ceea154d125a3010
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\portfile.cmake
[DEBUG] C:\vcpkg\ports\libpq\portfile.cmake has hash c04efb6458b3fda3a55c530831f4413f85cf1c6b71433f107d80ec2f41b54216
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\usage
[DEBUG] C:\vcpkg\ports\libpq\usage has hash 5233b2f78eb60be9804daf1b0e75dae9ee137f25dd5f4e811c2c6243d38b86fa
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\vcpkg-cmake-wrapper.cmake
[DEBUG] C:\vcpkg\ports\libpq\vcpkg-cmake-wrapper.cmake has hash 1693cd9bbf7894001fe615479f3ac9c375af436e1f00eff9e2f55e5faa700355
[DEBUG] Trying to hash C:\vcpkg\ports\libpq\vcpkg.json
[DEBUG] C:\vcpkg\ports\libpq\vcpkg.json has hash e180b4acaf0830bdca5917fe9326a99e04973a36d3916caf8b668a15862477f9
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\execute_process.cmake
[DEBUG] C:\vcpkg\scripts\cmake\execute_process.cmake has hash 66a937b9c074422643135c319d1abadaa45484a664f1b160d4c163efb444a446
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_acquire_msys.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_acquire_msys.cmake has hash c199c5da1224abed0b5adab5ee5de812891c45e1d0a320df3ca3ba5a19bb4818
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_add_to_path.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_add_to_path.cmake has hash 5f5ae75cf37b2a58d1a8561ca96496b64cd91ec9a0afab0b976c3e5d59030bfe
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_apply_patches.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_apply_patches.cmake has hash 4c123ce6f9bf0c46adc8287b7bd6a40b5f5e8daa83623dd21bb8c568ad4421fc
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_backup_restore_env_vars.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_backup_restore_env_vars.cmake has hash 5621f3b6a9586ffc02d49a5032560a48ad291de1cce553b904588f0108648904
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_buildpath_length_warning.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_buildpath_length_warning.cmake has hash fa440f3734e34b462ef96f3e89f0a9c5a11b609110a15a162d24da9218693fd1
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_cmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_cmake.cmake has hash 5201d6149d85fff414f3fbbdc4c793e0b2aeeb6d249a5ae8cf15e39fef66b7e6
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_make.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_make.cmake has hash 665ce441da618e4270950034db2912f6a863689c260a8a889d4ad41ff84367ba
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_msbuild.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_msbuild.cmake has hash 9a8367ac19733fc51b8e7edc77968725d2efe1400aaf1fdd767bb329a7b04532
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_ninja.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_ninja.cmake has hash 9bafdd942fe41be20a868e0a41ea6f983895bacba2f257921b53d789c7ad8092
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_nmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_nmake.cmake has hash 918422e54a328b9dce1be8c06916d612de9cc24a18c65cc47f26d78e8c487440
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_build_qmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_build_qmake.cmake has hash cd00146eb665b004c527cf74986e392d2419610ace073bd6abb79d55a7912004
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_check_features.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_check_features.cmake has hash 3cdc889b7e6965ad5ddab803060aed2019c0177b6f314c7a5a947c01efa4db60
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_check_linkage.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_check_linkage.cmake has hash 2236edfea13af20524c17d73214e0e5111bf1c13a2fc46c7f2912a46abd0c1a8
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_clean_executables_in_bin.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_clean_executables_in_bin.cmake has hash 5f7427ddf120583cf1f429861989e937858ee7a8c4deb419dca6f3f2fee86a65
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_clean_msbuild.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_clean_msbuild.cmake has hash 67007e54dee8a38487b43228573d877ad270fc6bac7bf8849783d0c2a78ce501
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_common_definitions.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_common_definitions.cmake has hash 64d24d2932776775ff536638e2df3df2fa208fcb57dfe29ade22058ec984796f
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_common_functions.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_common_functions.cmake has hash 5f07e6f6184a02dcd8fc058eed1747a6bb65ee4a8f524e717651674f0bd7904c
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_configure_cmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_configure_cmake.cmake has hash ac8c9920c3ea9613615144c771fe797013d5dc8cc03a25d97c92e167a692af24
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_configure_gn.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_configure_gn.cmake has hash c6637dbdb7c20b2e067c924eeb50605f7e3cc9e7c8c1434e53c9280134df11ba
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_configure_make.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_configure_make.cmake has hash 68319bbe437c9440a91963011a3b6d7c206f65776c33a1a08eecf0bb43efb244
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_configure_meson.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_configure_meson.cmake has hash 23c481b5e1bb9d7a4877608fd327d7289601331c8a10259922a90aec5addf8a2
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_configure_qmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_configure_qmake.cmake has hash 54d2123ecd337643ce9f3b0e4ef48f092bee5aea84d0372d12d1cc5f209a6437
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_copy_pdbs.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_copy_pdbs.cmake has hash d57e4f196c82dc562a9968c6155073094513c31e2de475694143d3aa47954b1c
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_copy_tools.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_copy_tools.cmake has hash 3d45ff761bddbabe8923b52330168dc3abd295fa469d3f2e47cb14dce85332d5
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_copy_tool_dependencies.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_copy_tool_dependencies.cmake has hash 66eef4116a52fd8cba76d274f44904846df943a3fc52317871cf255733b2efc4
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_download_distfile.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_download_distfile.cmake has hash 2d57e1336ae9daab2f04c0623217094b026080d19bdca3a92396d68ea3e729c7
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_execute_build_process.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_execute_build_process.cmake has hash 4145b3b23fcc2dd94a0fe3c818b63fcea40854e5aa94d08dc83ddcc09727cedf
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_execute_in_download_mode.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_execute_in_download_mode.cmake has hash 75a3cabe04d6bbaf1f73555516dd3c492edbed22cea204835c3620db5d948851
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_execute_required_process.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_execute_required_process.cmake has hash 0c6f52ca848715efd88acfec9bdb2ed3b5f38a650baa6a614bf23ccc3eec150a
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_execute_required_process_repeat.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_execute_required_process_repeat.cmake has hash 4863f71de8d0fd53ed799c6a5d15795156ae0606ecb61489b7636a050e029e2b
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_extract_source_archive.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_extract_source_archive.cmake has hash a25e0132b36c30e9675f934042fb1164128864eeefa064ab8eabb1eb347aa381
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_extract_source_archive_ex.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_extract_source_archive_ex.cmake has hash ab9f5bd71a8e1ca4a56d5c09f248c2bc10ff8df3b600c3efb6cca34cba9ec3b7
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_fail_port_install.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_fail_port_install.cmake has hash aef80df96f7c83d79e7b03d132161d8071228e0f1c9eb61ba8b16354f0c9496c
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_find_acquire_program.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_find_acquire_program.cmake has hash fdd8d8e0bf5217df8f40239e826c6f37c0c052ee2024c265a5916e8f7eef4107
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_find_fortran.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_find_fortran.cmake has hash e43ba68b0d03cf221797f0d63e6512123fb6a9365bf92f595b2bbe8898f23885
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_fixup_cmake_targets.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_fixup_cmake_targets.cmake has hash 7f777f83ca76540ed573d986ee53d1b3da1e45f49f3856c44c0773fec71cb49f
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_fixup_pkgconfig.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_fixup_pkgconfig.cmake has hash 588d833ff057d3ca99c14616c7ecfb5948b5e2a9e4fc02517dceb8b803473457
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_from_bitbucket.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_from_bitbucket.cmake has hash e875eb81fb8b06b08d0c97aed211b161dca3d1b7da8e562aa5ee8a8809e9e3d0
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_from_git.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_from_git.cmake has hash 8f27bff0d01c6d15a3e691758df52bfbb0b1b929da45c4ebba02ef76b54b1881
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_from_github.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_from_github.cmake has hash b743742296a114ea1b18ae99672e02f142c4eb2bef7f57d36c038bedbfb0502f
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_from_gitlab.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_from_gitlab.cmake has hash 656b2e2f210c6607908ae03771b049648b55213ef0a782135f90e44edb271fc5
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_from_sourceforge.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_from_sourceforge.cmake has hash 99f72faf1e7611ac9c367677457e29599d81bb86f204ec68a3f0df87a62f0922
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_get_program_files_platform_bitness.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_get_program_files_platform_bitness.cmake has hash 0c21ce7e9fcf7828f2e06f488f4675816b87942cfbf828c183f5bbcba8ae5fc7
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_get_windows_sdk.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_get_windows_sdk.cmake has hash 9fe97b3807d78c81b54b9512e920112baf68c2b4f5ce483b2764edada074b4ec
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_host_path_list.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_host_path_list.cmake has hash 1e8382b3a80fc7458293fce1659077dcacda9892eb63d911ae0330fdb1aedc2d
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_cmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_cmake.cmake has hash 6119891902c6ad9e9ed1d9b073eb9969159b553f9d6f5bee529cde91769355ff
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_copyright.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_copyright.cmake has hash ba6c169ab4e59fa05682e530cdeb883767de22c8391f023d4e6844a7ec5dd3d2
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_gn.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_gn.cmake has hash 18f1e80697fca670452e1ff181850e546764cc7c5fa8cb5d6442266523af9806
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_make.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_make.cmake has hash 8d8145837ce718ef60778b50fea1af272146c9efa42367ec2d7726332ef29ab5
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_meson.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_meson.cmake has hash 715cf59e78124dcc0823803544dc12ca4ced4f46ebc43681f4f6cd23d3e99d92
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_msbuild.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_msbuild.cmake has hash d770323312cc635d641183bfa4a0c073f919c8a37b7d9b3576700b1e934f8cd4
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_nmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_nmake.cmake has hash e5540f04f33bc8eee3417da64e2c9a9aa2bc3dee62031238d7eb795ec31cb0b7
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_install_qmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_install_qmake.cmake has hash e9eedf4e8a942dbae43e25d0f7a38a8c3afe7761c5d9e042d1a52017e3dcebe6
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_list.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_list.cmake has hash f5de3ebcbc40a4db90622ade9aca918e2cf404dc0d91342fcde457d730e6fa29
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_minimum_required.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_minimum_required.cmake has hash 4da8ab803b83c8f1c7b6272298108b9f62a7cd0618e563242c8e584692534171
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_replace_string.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_replace_string.cmake has hash d43c8699ce27e25d47367c970d1c546f6bc36b6df8fb0be0c3986eb5830bd4f1
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\vcpkg_test_cmake.cmake
[DEBUG] C:\vcpkg\scripts\cmake\vcpkg_test_cmake.cmake has hash 8117a509de7f30dd5c1f4c35134c1b3180c0825ea03480aa4625e98ddd5476e6
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_apply_patches.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_apply_patches.cmake has hash 1ddc151897aa15415dab3f222c1cac1a4056c8ddff9e63b5b3fde1bb8e06ddb4
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_escape_regex_control_characters.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_escape_regex_control_characters.cmake has hash 439c52c6ea37cecad4474528fb3b8019f2538380b3771d986e3d7811d8e274b5
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_fixup_rpath.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_fixup_rpath.cmake has hash 9efca0dc9594c2c2f094444cfbdc777cdcb9639a01435628d551127f4f4d735e
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_forward_output_variable.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_forward_output_variable.cmake has hash ae3440b77321516f29f0b51e26b8ecb05fd31f63d33949dc406a502c300b04ff
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_function_arguments.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_function_arguments.cmake has hash 11721a8a42a2aa2f6f285d485b21aed55834c2029140661bd8e2f0b709288d77
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_get_cmake_vars.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_get_cmake_vars.cmake has hash ce74da978727f15cc4eab6fa8a9c27023f0b51ef654cfbf7df8f3409fb950c43
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_prettify_command_line.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_prettify_command_line.cmake has hash 97e4e92ac6e9da544fc7b9a6695e0d491c2c095ec265d8c0a90bcb8168873ca3
[DEBUG] Trying to hash C:\vcpkg\scripts\cmake\z_vcpkg_setup_pkgconfig_path.cmake
[DEBUG] C:\vcpkg\scripts\cmake\z_vcpkg_setup_pkgconfig_path.cmake has hash 9bdbca9a026715b07908bca9786799b200c704ae826e7eb52f8bdcd5ca697254
[DEBUG] Trying to hash C:\vcpkg\scripts\ports.cmake
[DEBUG] C:\vcpkg\scripts\ports.cmake has hash 47a3510fcec56fae26f4fb082afd972a70a04e26efa73e2de69123139500f02d
[DEBUG]
[DEBUG] Makefile|caa4ac26a62f2e552477a405cf1466344af508862abf9e389294065f199b4ea9
[DEBUG] cmake|3.25.1
[DEBUG] config.pl|e0e67285eea48cd08365cb5db442746059d93d2fd2664c5d4e4af03536f6c27a
[DEBUG] features|core;lz4;openssl;zlib
[DEBUG] libpq.props.in|91c8699bbad7ce0cf45dba55c4837de75a7ea16e07b3ec6335c3a61cda4eef40
[DEBUG] lz4|6436a2c3d5c087419d1ce97c2158615aa9a07921e4f3f8a2e1b665fe72e4dbb3
[DEBUG] openssl|40f91c2b7b43b25b9dad8a517421d70816469ec408b8a7e7adf707b281e47567
[DEBUG] patches\fix-configure.patch|8429df3c8f8202d878f32fd607a4e51cb642fa49d226dad4f23bbe5ace06364b
[DEBUG] patches\windows\MSBuildProject-static-crt.patch|4d3d6e85e587e66ee0d8e8cb22ca3ddb9cfbdf948c66dac28b17fc5ad32c3338
[DEBUG] patches\windows\MSBuildProject-static-lib.patch|f9899cbc9d891fdd2f5d3450ea79830ce6cdd878c90b63f3f6c4b799387c4180
[DEBUG] patches\windows\MSBuildProject_fix_gendef_perl.patch|6f39d4b6977fa37f3119f769e138a7924079d9f9aeca50dab2d1194d3cf1a89b
[DEBUG] patches\windows\Mkvcbuild-static-lib.patch|137a878048fb18cedf8e06608506878dcdf50dcf4e4dde6eb9889aac81f38d37
[DEBUG] patches\windows\Solution.patch|ab023cff16988ba8626225820fbb0128ba150e2e64efb21b782146debcf5029f
[DEBUG] patches\windows\Solution_DEBUG.patch|3fcf967b4cae7b9457453eae1813433546348e9925821c5744b03942cc46e20f
[DEBUG] patches\windows\Solution_RELEASE.patch|7ee401b9d21625caaa751ef467f77069500f9f803b2c75f3a30081287c937aed
[DEBUG] patches\windows\arm.patch|abdf2117f15634cc45fa3a12ff8cb3902121ad407bc5b4d6c8483bd9757b65f6
[DEBUG] patches\windows\fix-compile-flag-Zi.patch|bf17e4aa62bd20726fed9b9f75cf9fe847d1504da0e115d9c752eea7dfb79a78
[DEBUG] patches\windows\install.patch|0e8e368d87ae63f1afde4d2f4db329b88bd06928d9bc0f35ae6f71642a57b440
[DEBUG] patches\windows\macro-def.patch|5eee809348f5c0fd6f9dce75ed0f5827702a1917df94b857ffeae00b7d6304b9
[DEBUG] patches\windows\minimize_install.patch|664f6b0d693eb16f537be6fb48c2aa4fdc43c59d835907b214777512ddcc8b1c
[DEBUG] patches\windows\msgfmt.patch|d054eca0b9793716ac0919d63e8441c4f8f93e6826bb5f4387a0b6ad8a3a443f
[DEBUG] patches\windows\openssl-version.patch|fcfddef8bb7970b5b083d6ef7102cfa9aded025bf4bb7b13e19e7385d2db1fc3
[DEBUG] patches\windows\python3_build_DEBUG.patch|bb6ce9dc2bc81b42425041a86b900aaa1bd0ee6c2432bc4558ce8a8b920b0646
[DEBUG] patches\windows\python3_build_RELEASE.patch|31645bbd857232e7712d764b4baae6027aba670ec43d77a2b118b3cf1eea57b9
[DEBUG] patches\windows\python_lib.patch|ac6e02887d8ae46ac451efda57fdc2e7b4885304ef7320230c4d37e6b1b0f1ad
[DEBUG] patches\windows\tcl_version.patch|fcc0d905347e4bf9796d6ebc520ffa031adc08f8587eaa286432cce6e0314223
[DEBUG] patches\windows\win_bison_flex.patch|126c4c53e3fde5c0543e148a9b0a1de0e136068d08d9ee45ceea154d125a3010
[DEBUG] portfile.cmake|c04efb6458b3fda3a55c530831f4413f85cf1c6b71433f107d80ec2f41b54216
[DEBUG] ports.cmake|47a3510fcec56fae26f4fb082afd972a70a04e26efa73e2de69123139500f02d
[DEBUG] post_build_checks|2
[DEBUG] powershell|7.2.8
[DEBUG] triplet|arm-android
[DEBUG] triplet_abi|cf4a61eae40ed809b09276e552cf0a1a50de49f31bacb899dce95efcaf915ab1-4e1baa1a21b183d2ac6a852af84a3b06964cba5ea439fc3efdf9c47faf774189-f0c88fcdd4d1c47ad77c6fecc1f71cb87c556b0f
[DEBUG] usage|5233b2f78eb60be9804daf1b0e75dae9ee137f25dd5f4e811c2c6243d38b86fa
[DEBUG] vcpkg-cmake-get-vars|4272a4787e138d0be0b9341fcb37a94e056e0a4143d2d31a5eaf600d02bbe2b6
[DEBUG] vcpkg-cmake-wrapper.cmake|1693cd9bbf7894001fe615479f3ac9c375af436e1f00eff9e2f55e5faa700355
[DEBUG] vcpkg.json|e180b4acaf0830bdca5917fe9326a99e04973a36d3916caf8b668a15862477f9
[DEBUG] vcpkg_acquire_msys|c199c5da1224abed0b5adab5ee5de812891c45e1d0a320df3ca3ba5a19bb4818
[DEBUG] vcpkg_add_to_path|5f5ae75cf37b2a58d1a8561ca96496b64cd91ec9a0afab0b976c3e5d59030bfe
[DEBUG] vcpkg_apply_patches|4c123ce6f9bf0c46adc8287b7bd6a40b5f5e8daa83623dd21bb8c568ad4421fc
[DEBUG] vcpkg_configure_make|68319bbe437c9440a91963011a3b6d7c206f65776c33a1a08eecf0bb43efb244
[DEBUG] vcpkg_copy_tool_dependencies|66eef4116a52fd8cba76d274f44904846df943a3fc52317871cf255733b2efc4
[DEBUG] vcpkg_download_distfile|2d57e1336ae9daab2f04c0623217094b026080d19bdca3a92396d68ea3e729c7
[DEBUG] vcpkg_execute_required_process|0c6f52ca848715efd88acfec9bdb2ed3b5f38a650baa6a614bf23ccc3eec150a
[DEBUG] vcpkg_extract_source_archive|a25e0132b36c30e9675f934042fb1164128864eeefa064ab8eabb1eb347aa381
[DEBUG] vcpkg_find_acquire_program|fdd8d8e0bf5217df8f40239e826c6f37c0c052ee2024c265a5916e8f7eef4107
[DEBUG] vcpkg_fixup_pkgconfig|588d833ff057d3ca99c14616c7ecfb5948b5e2a9e4fc02517dceb8b803473457
[DEBUG] vcpkg_get_windows_sdk|9fe97b3807d78c81b54b9512e920112baf68c2b4f5ce483b2764edada074b4ec
[DEBUG] vcpkg_install_make|8d8145837ce718ef60778b50fea1af272146c9efa42367ec2d7726332ef29ab5
[DEBUG] vcpkg_replace_string|d43c8699ce27e25d47367c970d1c546f6bc36b6df8fb0be0c3986eb5830bd4f1
[DEBUG] zlib|55d186a1bda22ccdafdc10f7d61e666af0e760b21f8c0b959a46e549d45acf8e
[DEBUG]
[DEBUG] Trying to hash C:\vcpkg\buildtrees\libpq\arm-android.vcpkg_abi_info.txt
[DEBUG] C:\vcpkg\buildtrees\libpq\arm-android.vcpkg_abi_info.txt has hash da77971108aaf668faf5299cab1fe8a5b56e66532c412cd33633d63df71204c1
Restored 0 package(s) from C:\Users\dell\AppData\Local\vcpkg\archives in 172.3 us. Use --debug to see more details.
Installing 1/1 libpq:arm-android...
Building libpq[core,lz4,openssl,zlib]:arm-android...
warning: -- Using community triplet arm-android. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\vcpkg\triplets\community\arm-android.cmake
[DEBUG] CreateProcessW("C:\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe" "-DALL_FEATURES=bonjour;client;icu;lz4;nls;openssl;python;readline;tcl;xml;xslt;zlib;zstd;" -DCURRENT_PORT_DIR=C:/vcpkg/ports/libpq -D_HOST_TRIPLET=x64-windows "-DFEATURES=core;lz4;openssl;zlib" -DPORT=libpq -DVERSION=15.2 -DVCPKG_USE_HEAD_VERSION=0 -D_VCPKG_DOWNLOAD_TOOL=BUILT_IN -D_VCPKG_EDITABLE=0 -D_VCPKG_NO_DOWNLOADS=0 -DZ_VCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/vcpkg/scripts/toolchains/android.cmake -DCMD=BUILD -DDOWNLOADS=C:/vcpkg/downloads -DTARGET_TRIPLET=arm-android -DTARGET_TRIPLET_FILE=C:/vcpkg/triplets/community/arm-android.cmake -DVCPKG_BASE_VERSION=2023-03-14 -DVCPKG_CONCURRENCY=13 -DVCPKG_PLATFORM_TOOLSET=external "-DGIT=C:/Program Files/Git/cmd/git.exe" "-DVCPKG_PORT_CONFIGS=C:\vcpkg\installed\x64-windows\share\vcpkg-cmake-get-vars\vcpkg-port-config.cmake" -DVCPKG_ROOT_DIR=C:/vcpkg -DPACKAGES_DIR=C:/vcpkg/packages -DBUILDTREES_DIR=C:/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=C:/vcpkg/installed -DDOWNLOADS=C:/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\vcpkg\scripts\ports.cmake")
-- Using cached postgresql-15.2.tar.bz2.
-- Extracting source C:/vcpkg/downloads/postgresql-15.2.tar.bz2
-- Applying patch patches/windows/install.patch
-- Applying patch patches/windows/win_bison_flex.patch
-- Applying patch patches/windows/openssl-version.patch
-- Applying patch patches/windows/Solution.patch
-- Applying patch patches/windows/MSBuildProject_fix_gendef_perl.patch
-- Applying patch patches/windows/msgfmt.patch
-- Applying patch patches/windows/python_lib.patch
-- Applying patch patches/windows/fix-compile-flag-Zi.patch
-- Applying patch patches/windows/tcl_version.patch
-- Applying patch patches/windows/macro-def.patch
-- Applying patch patches/fix-configure.patch
-- Applying patch patches/windows/MSBuildProject-static-lib.patch
-- Applying patch patches/windows/Mkvcbuild-static-lib.patch
-- Applying patch patches/windows/MSBuildProject-static-crt.patch
-- Applying patch patches/windows/arm.patch
-- Applying patch patches/windows/minimize_install.patch
-- Using source at C:/vcpkg/buildtrees/libpq/src/tgresql-15-057d4e9cb3.clean
-- Getting CMake variables for arm-android
-- Getting CMake variables for arm-android
-- Using cached msys-gzip-1.11-1-x86_64.pkg.tar.zst.
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
-- Using cached msys-autoconf-2.71-3-any.pkg.tar.zst.
-- Using cached msys-diffutils-3.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-binutils-2.37-5-x86_64.pkg.tar.zst.
-- Using cached msys-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys-file-5.41-2-x86_64.pkg.tar.zst.
-- Using cached msys-zlib-1.2.11-1-x86_64.pkg.tar.xz.
-- Using cached msys-libbz2-1.0.8-3-x86_64.pkg.tar.zst.
-- Using cached msys-coreutils-8.32-2-x86_64.pkg.tar.zst.
-- Using cached msys-grep-3.0-2-x86_64.pkg.tar.xz.
-- Using cached msys-sed-4.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-libpcre-8.45-1-x86_64.pkg.tar.zst.
-- Using cached msys-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake-wrapper-11-4-any.pkg.tar.zst.
-- Using cached msys-gawk-5.1.0-2-x86_64.pkg.tar.zst.
-- Using cached msys-mpfr-4.1.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-gmp-6.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys-libreadline-8.1.001-1-x86_64.pkg.tar.zst.
-- Using cached msys-ncurses-6.2-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake1.16-1.16.3-3-any.pkg.tar.zst.
-- Using cached msys-perl-5.32.1-2-x86_64.pkg.tar.zst.
-- Using cached msys-libcrypt-2.1-3-x86_64.pkg.tar.zst.
-- Using cached msys-pkg-config-0.29.2-4-x86_64.pkg.tar.zst.
-- Using cached msys-make-4.3-3-x86_64.pkg.tar.zst.
-- Using cached msys-findutils-4.8.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-libintl-0.21-1-x86_64.pkg.tar.zst.
-- Using cached msys-libiconv-1.16-2-x86_64.pkg.tar.zst.
-- Using cached msys-gcc-libs-11.2.0-3-x86_64.pkg.tar.zst.
-- Using cached msys-msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst.
-- Using cached msys-which-2.21-4-x86_64.pkg.tar.zst.
-- Using msys root at C:/vcpkg/downloads/tools/msys2/ca907ea16f6f2ba5
-- Generating configure for arm-android
-- Finished generating configure for arm-android
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at C:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Configuring arm-android-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/vcpkg/downloads/tools/msys2/ca907ea16f6f2ba5/usr/bin/bash.exe --noprofile --norc --debug -c "V=1 ././configure --host=armv7a-linux-androideabi "--disable-nls" "--with-openssl" "--with-zlib" "--without-zstd" "--without-icu" "--with-lz4" "--without-readline" "--without-libxml" "--without-libxslt" "--without-python" "ac_cv_header_langinfo_h=no" "--disable-silent-rules" "--verbose" "--disable-shared" "--enable-static" "--enable-debug" "DYLD_FALLBACK_LIBRARY_PATH=C:/vcpkg/installed/arm-android/debug/lib:C:/vcpkg/installed/arm-android/lib" "--prefix=/C/vcpkg/installed/arm-android/debug" "--bindir=\${prefix}/../tools/libpq/debug/bin" "--sbindir=\${prefix}/../tools/libpq/debug/sbin" "--libdir=\${prefix}/lib" "--includedir=\${prefix}/../include" "--datarootdir=\${prefix}/share/libpq""
Working Directory: C:/vcpkg/buildtrees/libpq/arm-android-dbg
Error code: 77
See logs for more information:
C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-config.log
C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-out.log
C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:829 (vcpkg_execute_required_process)
ports/libpq/portfile.cmake:305 (vcpkg_configure_make)
scripts/ports.cmake:147 (include)

[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1006: cmd_execute_and_stream_data() returned 1 after 24830074 us
error: building libpq:arm-android failed with: BUILD_FAILED
[DEBUG] CreateProcessW("C:\Program Files\Git\cmd\git.exe" "--git-dir=C:\vcpkg.git" "--work-tree=C:\vcpkg.git" -c core.autocrlf=false show "--pretty=format:%h %cd (%cr)" -s --date=short HEAD)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1007: cmd_execute_and_stream_data() returned 0 after 33027 us
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] CreateProcessW("C:\Program Files\Git\cmd\git.exe" "--git-dir=C:\vcpkg.git" "--work-tree=C:\vcpkg.git" -c core.autocrlf=false show "--pretty=format:%h %cd (%cr)" -s --date=short HEAD)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 1008: cmd_execute_and_stream_data() returned 0 after 33447 us
error: Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libpq
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libpq]+Build+error
Include '[libpq] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454
vcpkg-scripts version: e249dfb 2023-03-20 (13 hours ago)

Please use the prefilled template from C:\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
[DEBUG] D:\a_work\1\s\src\vcpkg\install.cpp(559):
[DEBUG] Time in subprocesses: 26695025us
[DEBUG] Time in parsing JSON: 939us
[DEBUG] Time in JSON reader: 662us
[DEBUG] Time in filesystem: 4489us
[DEBUG] Time in loading ports: 3904us
[DEBUG] Exiting after 26.7994382 s (26791027us)

libpq.zip

@WangHHY19931001 WangHHY19931001 added the category:port-bug The issue is with a library, which is something the port should already support label Mar 21, 2023
@WangHHY19931001
Copy link
Author

in linux use cmd:
perl ./configure --host armv7a-linux-androideabi --prefix=$BASHDIR/$BUILD_TARGET/lib --disable-shared --disable-rpath --without-readline --enable-shared=no --enable-static=yes

it build success, read log
fund this:
checking for armv7a-linux-androideabi-gcc... /home/celebi/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang

may be C compiler define error?

@WangHHY19931001
Copy link
Author

log.txt

#!/bin/bash
BASHDIR="$(pwd)"
export NDK=/home/celebi/Android/Sdk/ndk/23.1.7779620
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export API=21
export MINSDKVERSION=$API

export TARGET_ARRCH64=aarch64-linux-android
export ABI_ARRCH64=arm64-v8a
export TARGET_ARMV7A=armv7a-linux-androideabi
export ABI_ARMV7A=armeabi-v7a
export TARGET_X86=i686-linux-android
export ABI_X86=x86
export TARGET_X64=x86_64-linux-android
export ABI_X64=x86_64

arm64=$(echo $TYPE | grep "arm64")
armv7a=$(echo $TYPE | grep "armv7a")
x86=$(echo $TYPE | grep "x86")
x86_64=$(echo $TYPE | grep "x64")

if [ "$arm64" != "" ]
then
export TARGET=$TARGET_ARRCH64
export ABI=$ABI_ARRCH64
echo $arm64
elif [ "$armv7a" != "" ]
then
export TARGET=$TARGET_ARMV7A
export ABI=$ABI_ARMV7A
echo $armv7a
elif [ "$x86" != "" ]
then
export TARGET=$TARGET_X86
export ABI=$ABI_X86
echo $x86
elif [ "$x86_64" != "" ]
then
export TARGET=$TARGET_X64
export ABI=$ABI_X64
echo $x86_64
else
return
fi

export BUILD_TARGET=$TARGET

export AR=$TOOLCHAIN/bin/llvm-ar
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
export AS=$CC
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
export LD=$TOOLCHAIN/bin/ld
export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
export STRIP=$TOOLCHAIN/bin/llvm-strip

rm -rf $BUILD_TARGET
mkdir -p $BUILD_TARGET
mkdir -p $BUILD_TARGET/src
mkdir -p $BUILD_TARGET/lib

cd $BASHDIR/src
cp ./postgresql-15.2.tar.bz2 $BASHDIR/$BUILD_TARGET/src
cp ./libpqxx-7.7.4.zip $BASHDIR/$BUILD_TARGET/src

cd $BASHDIR/$BUILD_TARGET/src
tar xvf ./postgresql-15.2.tar.bz2
cd postgresql-15.2
cp $BASHDIR/$BUILD_TARGET/src/Makefile.shlib ./src/Makefile.shlib
perl ./configure --host $TARGET --prefix=$BASHDIR/$BUILD_TARGET/lib --disable-shared --disable-rpath --without-readline --enable-shared=no --enable-static=yes
make -C ./src/interfaces/libpq -j16
make install -C ./src/interfaces/libpq
export PQ_BUILD_INCLUDE_DIR=$BASHDIR/$BUILD_TARGET/src/postgresql-15.2/src/include
cp $PQ_BUILD_INCLUDE_DIR/postgres_ext.h $BASHDIR/$BUILD_TARGET/lib/include
cp $PQ_BUILD_INCLUDE_DIR/pg_config_ext.h $BASHDIR/$BUILD_TARGET/lib/include
cp $PQ_BUILD_INCLUDE_DIR/pg_config.h $BASHDIR/$BUILD_TARGET/lib/include

#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/.so
#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/
.so*
#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/pkgconfig

cd $BASHDIR/$BUILD_TARGET/src
unzip libpqxx-7.7.4.zip
cd libpqxx-7.7.4
#cp $BASHDIR/src/config.guess $BASHDIR/$BUILD_TARGET/src/libpqxx-7.7.4/config/config.guess
#cp $BASHDIR/src/config.sub $BASHDIR/$BUILD_TARGET/src/libpqxx-7.7.4/config/config.sub
#perl ./configure --host $TARGET --prefix=$BASHDIR/$BUILD_TARGET/lib --disable-rpath --enable-static --with-postgres-include=$BASHDIR/$BUILD_TARGET/lib/include --with-postgres-lib=$BASHDIR/$BUILD_TARGET/lib/lib
#make
#make install

rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DANDROID_STL=c++_static -DSKIP_BUILD_TEST=ON -DCMAKE_INSTALL_PREFIX=$BASHDIR/$BUILD_TARGET/lib -DCMAKE_GENERATOR=Ninja -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=$ABI -DANDROID_PLATFORM=android-$MINSDKVERSION -DPostgreSQL_LIBRARY=$BASHDIR/$BUILD_TARGET/lib/lib/ -DPostgreSQL_INCLUDE_DIR=$BASHDIR/$BUILD_TARGET/lib/include

#cmake .. -DUSER_DEF_PG=ON -DUSER_DEF_PG_ROOT_DIR=$BASHDIR/$BUILD_TARGET/lib -DCMAKE_BUILD_TYPE=Release -DANDROID_STL=c++_static -DSKIP_BUILD_TEST=ON -DCMAKE_INSTALL_PREFIX=$BASHDIR/$BUILD_TARGET/lib -DCMAKE_GENERATOR=Ninja -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=$ABI -DANDROID_PLATFORM=android-$MINSDKVERSION

cmake --build .
cmake --install .

#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/.so
#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/
.so*
#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/pkgconfig
#rm -rf $BASHDIR/$BUILD_TARGET/lib/lib/cmake

rm -rf $BASHDIR/$BUILD_TARGET/src

@WangHHY19931001
Copy link
Author

Makefile.shlib:

#-------------------------------------------------------------------------

Makefile.shlib

Common rules for building shared libraries

Copyright (c) 1998, Regents of the University of California

IDENTIFICATION

src/Makefile.shlib

#-------------------------------------------------------------------------

This file should be included by any Postgres module Makefile that

wants to build a shared library (if possible for the current

platform). A static library is also built from the same object

files. Only one library can be built per makefile.

Before including this file, the module Makefile must define these

variables:

NAME Name of library to build (no suffix nor "lib" prefix)

OBJS List of object files to include in library

SHLIB_LINK Stuff to append to library's link command

(typically, -L and -l switches for external libraries)

SHLIB_LINK_INTERNAL -L and -l switches for Postgres-supplied libraries

SHLIB_PREREQS Order-only prerequisites for library build target

SHLIB_EXPORTS (optional) Name of file containing list of symbols to

export, in the format "function_name number"

Don't use SHLIB_LINK for references to files in the build tree, or the

wrong things will happen --- use SHLIB_LINK_INTERNAL for those!

When building a shared library, the following version information

must also be set. It should be omitted when building a dynamically

loadable module.

SO_MAJOR_VERSION Major version number to use for shared library

SO_MINOR_VERSION Minor version number to use for shared library

(If you want a patchlevel, include it in SO_MINOR_VERSION, e.g., "6.2".)

The module Makefile must also include

$(top_builddir)/src/Makefile.global before including this file.

(Makefile.global sets PORTNAME and other needed symbols.)

This makefile provides the following (phony) targets:

all-lib build the static and shared (if applicable) libraries

install-lib install the libraries into $(libdir)

installdirs-lib create installation directory $(libdir)

uninstall-lib remove the libraries from $(libdir)

clean-lib delete the static and shared libraries from the build dir

Typically you would add all-lib' to the all' target so that `make all'

builds the libraries. In the most simple case it would look like this:

all: all-lib

Similarly, the install rule might look like

install: install-lib

plus any additional things you want to install. Et cetera.

Got that? Look at src/interfaces/libpq/Makefile for an example.

COMPILER = $(CC) $(CFLAGS)
LINK.static = $(AR) $(AROPT)

LDFLAGS_INTERNAL += $(SHLIB_LINK_INTERNAL)

ifdef SO_MAJOR_VERSION

Default library naming convention used by the majority of platforms

shlib = lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)
shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
shlib_bare = lib$(NAME)$(DLSUFFIX)

Testing the soname variable is a reliable way to determine whether a

linkable library is being built.

soname = $(shlib_major)
pkgconfigdir = $(libdir)/pkgconfig
else

Naming convention for dynamically loadable modules

shlib = $(NAME)$(DLSUFFIX)
endif
stlib = lib$(NAME).a

ifndef soname

additional flags for backend modules

SHLIB_LINK += $(BE_DLLLIBS)
endif

For each platform we support shared libraries on, set shlib to the

name of the library (if default above is not right), set

LINK.shared to the command to link the library,

and adjust SHLIB_LINK if necessary.

Try to keep the sections in some kind of order, folks...

override CFLAGS += $(CFLAGS_SL)
override CXXFLAGS += $(CFLAGS_SL)
ifdef SO_MAJOR_VERSION

libraries ought to use this to refer to versioned gettext domain names

override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION)
endif

ifeq ($(PORTNAME), aix)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
endif
haslibarule = yes

$(exports_file) is also usable as an import file

exports_file = lib$(NAME).exp
endif

ifeq ($(PORTNAME), darwin)
ifdef soname
# linkable library
DLSUFFIX = .dylib
ifneq ($(SO_MAJOR_VERSION), 0)
version_link = -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
endif
LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link) $(exported_symbols_list) -multiply_defined suppress
shlib = lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)
shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
else
# loadable module
DLSUFFIX = .so
LINK.shared = $(COMPILER) -bundle -multiply_defined suppress
endif
BUILD.exports = $(AWK) '/^[^\#]/ {printf "_%s\n",$$1}' $< >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
exported_symbols_list = -exported_symbols_list $(exports_file)
endif
endif

ifeq ($(PORTNAME), openbsd)
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-x,-soname,$(soname)
endif
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
LINK.shared += -Wl,--version-script=$(exports_file)
endif
SHLIB_LINK += -lc
endif

ifeq ($(PORTNAME), freebsd)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
endif
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-x,-soname,$(soname)
endif
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
LINK.shared += -Wl,--version-script=$(exports_file)
endif
endif

ifeq ($(PORTNAME), netbsd)
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-x,-soname,$(soname)
endif
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
LINK.shared += -Wl,--version-script=$(exports_file)
endif
endif

ifeq ($(PORTNAME), hpux)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
endif
ifeq ($(with_gnu_ld), yes)
LINK.shared = $(CC) -shared -Wl,-Bsymbolic
ifdef soname
LINK.shared += -Wl,-h -Wl,$(soname)
endif
else
LINK.shared = $(LD) -b -Bsymbolic
ifdef soname
LINK.shared += +h $(soname)
endif
# can't use the CC-syntax rpath pattern here, so instead:
rpath =
ifeq ($(enable_rpath), yes)
LINK.shared += +s +b '$(rpathdir)'
endif
# On HPUX platforms, gcc is usually configured to search for libraries
# in /usr/local/lib, but ld won't do so. Add an explicit -L switch so
# ld can find the same libraries gcc does. Make sure it goes after any
# -L switches provided explicitly.
ifeq ($(GCC), yes)
SHLIB_LINK += -L/usr/local/lib
endif
endif

And we need to link with libgcc, too

ifeq ($(GCC), yes)
SHLIB_LINK += $(CC) $(LDFLAGS) -print-libgcc-file-name
endif
endif

ifeq ($(PORTNAME), linux)
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-soname,$(soname)
endif
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
LINK.shared += -Wl,--version-script=$(exports_file)
endif
endif

ifeq ($(PORTNAME), solaris)
ifeq ($(GCC), yes)
LINK.shared = $(COMPILER) -shared -Wl,-Bsymbolic
else
LINK.shared = $(COMPILER) -G -Bsymbolic
endif
ifdef soname
ifeq ($(with_gnu_ld), yes)
LINK.shared += -Wl,-soname,$(soname)
else
LINK.shared += -h $(soname)
endif
endif
endif

ifeq ($(PORTNAME), cygwin)
LINK.shared = $(CC) -shared
ifdef SO_MAJOR_VERSION
shlib = cyg$(NAME)$(DLSUFFIX)
endif
haslibarule = yes
endif

ifeq ($(PORTNAME), win32)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX)
endif
haslibarule = yes
endif

BUILD

.PHONY: all-lib all-static-lib all-shared-lib

all-lib: all-shared-lib
ifdef soname

no static library when building a dynamically loadable module

all-lib: all-static-lib
all-lib: lib$(NAME).pc
endif

all-static-lib: $(stlib)

all-shared-lib: $(shlib)

In this rule, "touch $@" works around a problem on some platforms wherein

ranlib updates the library file's mod time with a value calculated to

seconds precision. If the filesystem has sub-second timestamps, this can

cause the library file to appear older than its input files, triggering

parallel-make problems.

ifndef haslibarule
$(stlib): $(OBJS) | $(SHLIB_PREREQS)
rm -f $@
$(LINK.static) $@ $^
$(RANLIB) $@
touch $@
endif #haslibarule

ifeq (,$(filter cygwin win32,$(PORTNAME)))
ifneq ($(PORTNAME), aix)

Normal case

$(shlib): $(OBJS) | $(SHLIB_PREREQS)
$(LINK.shared) -o $@ $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK)
ifdef shlib_major

If we're using major and minor versions, then make a symlink to major-version-only.

ifneq ($(shlib), $(shlib_major))
rm -f $(shlib_major)
$(LN_S) $(shlib) $(shlib_major)
endif

Make sure we have a link to a name without any version numbers

ifneq ($(shlib), $(shlib_bare))
rm -f $(shlib_bare)
$(LN_S) $(shlib) $(shlib_bare)
endif
endif # shlib_major

Where possible, restrict the symbols exported by the library to just the

official list, so as to avoid unintentional ABI changes. On recent macOS

this also quiets multiply-defined-symbol warnings in programs that use

libpgport along with libpq.

ifneq (,$(SHLIB_EXPORTS))
ifdef BUILD.exports
$(shlib): $(SHLIB_EXPORTS:%.txt=%.list)

$(SHLIB_EXPORTS:%.txt=%.list): %.list: %.txt
$(BUILD.exports)
endif
endif

else # PORTNAME == aix

AIX case

See notes in src/backend/parser/Makefile about the following two rules

$(stlib): $(shlib)
touch $@

$(shlib): $(OBJS) | $(SHLIB_PREREQS)
rm -f $(stlib)
$(LINK.static) $(stlib) $^
$(RANLIB) $(stlib)
ifeq (,$(SHLIB_EXPORTS))
$(MKLDEXPORT) $(stlib) $(shlib) >$(exports_file)
else
( echo '#! $(shlib)'; $(AWK) '/^[^#]/ {printf "%s\n",$$1}' $(SHLIB_EXPORTS) ) >$(exports_file)
endif
$(COMPILER) -o $(shlib) $(stlib) -Wl,-bE:$(exports_file) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK)
rm -f $(stlib)
$(AR) $(AROPT) $(stlib) $(shlib)

endif # PORTNAME == aix

else # PORTNAME == cygwin || PORTNAME == win32

ifeq ($(PORTNAME), cygwin)

Cygwin case

$(shlib): $(OBJS) | $(SHLIB_PREREQS)
$(CC) $(CFLAGS) -shared -o $@ -Wl,--out-implib=$(stlib) $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) $(LDAP_LIBS_BE)

see notes in src/backend/parser/Makefile about use of this type of rule

$(stlib): $(shlib)
touch $@

else

Win32 case

See notes in src/backend/parser/Makefile about the following two rules

$(stlib): $(shlib)
touch $@

XXX A backend that loads a module linked with libgcc_s_dw2-1.dll will exit

uncleanly, hence -static-libgcc. (Last verified with MinGW-w64 compilers

from i686-4.9.1-release-win32-dwarf-rt_v3-rev1.) Shared libgcc has better

support for C++/Java exceptions; while core PostgreSQL does not use them, it

would be nice to support shared libgcc for the benefit of extensions.

If SHLIB_EXPORTS is set, the rules below will build a .def file from that.

Else we just use --export-all-symbols.

ifeq (,$(SHLIB_EXPORTS))
$(shlib): $(OBJS) | $(SHLIB_PREREQS)
$(CC) $(CFLAGS) -shared -static-libgcc -o $@ $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--export-all-symbols -Wl,--out-implib=$(stlib)
else
DLL_DEFFILE = lib$(NAME)dll.def

$(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
$(CC) $(CFLAGS) -shared -static-libgcc -o $@ $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)

UC_NAME = $(shell echo $(NAME) | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')

$(DLL_DEFFILE): $(SHLIB_EXPORTS)
echo 'LIBRARY LIB$(UC_NAME).dll' >$@
echo 'EXPORTS' >>$@
sed -e '/^#/d' -e 's/^(.[ ])([0-9][0-9])/ \1@ \2/' $< >>$@
endif

endif # PORTNAME == cygwin
endif # PORTNAME == cygwin || PORTNAME == win32

%.pc: $(MAKEFILE_LIST)
echo 'prefix=$(prefix)' >$@
echo 'exec_prefix=$(patsubst $(prefix),$${prefix},$(exec_prefix))' >>$@
echo 'libdir=$(patsubst $(exec_prefix)/%,$${exec_prefix}/%,$(libdir))' >>$@
echo 'includedir=$(patsubst $(prefix)/%,$${prefix}/%,$(includedir))' >>$@
echo >>$@
echo 'Name: lib$(NAME)' >>$@
echo 'Description: PostgreSQL lib$(NAME) library' >>$@
echo 'Url: $(PACKAGE_URL)' >>$@
echo 'Version: $(VERSION)' >>$@
echo 'Requires: ' >>$@
echo 'Requires.private: $(PKG_CONFIG_REQUIRES_PRIVATE)' >>$@
echo 'Cflags: -I$${includedir}' >>$@
echo 'Libs: -L$${libdir} -l$(NAME)' >>$@

Record -L flags that the user might have passed in to the PostgreSQL

build to locate third-party libraries (e.g., ldap, ssl). Filter out

those that point inside the build or source tree. Use sort to

remove duplicates. Also record the -l flags necessary for static

linking, but not those already covered by Requires.private.

echo 'Libs.private: $(sort $(filter-out -L.% -L$(top_srcdir)/%,$(filter -L%,$(LDFLAGS) $(SHLIB_LINK)))) $(filter-out $(PKG_CONFIG_REQUIRES_PRIVATE:lib%=-l%),$(filter -l%,$(SHLIB_LINK_INTERNAL:%_shlib=%) $(SHLIB_LINK)))' >>$@

INSTALL

.PHONY: install-lib install-lib-static install-lib-shared installdirs-lib
install-lib: install-lib-shared
ifdef soname
install-lib: install-lib-static
install-lib: install-lib-pc
endif

install-lib-pc: lib$(NAME).pc installdirs-lib
$(INSTALL_DATA) $< '$(DESTDIR)$(pkgconfigdir)/lib$(NAME).pc'

install-lib-static: $(stlib) installdirs-lib
$(INSTALL_STLIB) $< '$(DESTDIR)$(libdir)/$(stlib)'
ifeq ($(PORTNAME), darwin)
cd '$(DESTDIR)$(libdir)' &&
$(RANLIB) $(stlib)
endif

install-lib-shared: $(shlib) installdirs-lib
ifdef soname

we don't install $(shlib) on AIX

(see http://archives.postgresql.org/message-id/52EF20B2E3209443BC37736D00C3C1380A6E79FE@EXADV1.host.magwien.gv.at)

ifneq ($(PORTNAME), aix)
$(INSTALL_SHLIB) $< '$(DESTDIR)$(libdir)/$(shlib)'
ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), win32)
ifneq ($(shlib), $(shlib_major))
cd '$(DESTDIR)$(libdir)' &&
rm -f $(shlib_major) &&
$(LN_S) $(shlib) $(shlib_major)
endif
ifneq ($(shlib), $(shlib_bare))
cd '$(DESTDIR)$(libdir)' &&
rm -f $(shlib_bare) &&
$(LN_S) $(shlib) $(shlib_bare)
endif
endif # not win32
endif # not cygwin
endif # not aix
ifneq (,$(findstring $(PORTNAME),win32 cygwin))
$(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'
endif
else # no soname
$(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'
endif

installdirs-lib:
ifdef soname
$(MKDIR_P) '$(DESTDIR)$(libdir)' '$(DESTDIR)$(pkgconfigdir)' $(if $(findstring $(PORTNAME),win32 cygwin),'$(DESTDIR)$(bindir)')
else
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
endif

UNINSTALL

.PHONY: uninstall-lib
uninstall-lib:
ifdef soname
rm -f '$(DESTDIR)$(libdir)/$(stlib)'
rm -f '$(DESTDIR)$(libdir)/$(shlib_bare)'
'$(DESTDIR)$(libdir)/$(shlib_major)'
'$(DESTDIR)$(libdir)/$(shlib)' $(if $(findstring $(PORTNAME),win32 cygwin),'$(DESTDIR)$(bindir)/$(shlib)')
'$(DESTDIR)$(pkgconfigdir)/lib$(NAME).pc'
else # no soname
rm -f '$(DESTDIR)$(pkglibdir)/$(shlib)'
endif # no soname

CLEAN

.PHONY: clean-lib
clean-lib:
rm -f $(shlib) $(shlib_bare) $(shlib_major) $(stlib) $(exports_file) lib$(NAME).pc
ifneq (,$(DLL_DEFFILE))
rm -f $(DLL_DEFFILE)
endif

@JonLiu1993 JonLiu1993 added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support labels Mar 21, 2023
@Osyotr
Copy link
Contributor

Osyotr commented Mar 21, 2023

Just attach files or something...

@dg0yt
Copy link
Contributor

dg0yt commented Mar 21, 2023

The initial libpq.zip has all we need to localize and fix the bug.
However, I would really appreciate if the original poster would follow the guidance offered by issue templates.

@WangHHY19931001
Copy link
Author

The initial libpq.zip has all we need to localize and fix the bug. However, I would really appreciate if the original poster would follow the guidance offered by issue templates.

sorry, I try to build libpq for android in linux with out vcpkg, it work. I think it will help fix this bug, so i push my fix and bash here

@WangHHY19931001
Copy link
Author

new info: with ndk 25.2.9519653 and add zoneinfo with opt --with-system-tzdata=, build success (test by arm64-android)

@dg0yt
Copy link
Contributor

dg0yt commented Mar 22, 2023

new info: with ndk 25.2.9519653 and add zoneinfo with opt --with-system-tzdata=, build success (test by arm64-android)

Unrelated.
Did you even look into the logs yourself? (You don't need to try to fix it, but it may help to stop the guessing around.)

@WangHHY19931001
Copy link
Author

new info: with ndk 25.2.9519653 and add zoneinfo with opt --with-system-tzdata=, build success (test by arm64-android)

Unrelated. Did you even look into the logs yourself? (You don't need to try to fix it, but it may help to stop the guessing around.)

yes ,i look it use ndk 25.2.9519653 with out any fix,configure log show check zic no, so i copy zoneinfo from msys2 and add list(APPEND BUILD_OPTS --with-system-tzdata=/c/vcpkg/downloads/tools/msys2/ca907ea16f6f2ba5/usr/share/zoneinfo) into portfile.cmake.
after retry build, it build success

@dg0yt
Copy link
Contributor

dg0yt commented Mar 22, 2023

The original stdout said:

    See logs for more information:
      C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-config.log
      C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-out.log
      C:\vcpkg\buildtrees\libpq\config-arm-android-dbg-err.log

and the config.log has:

configure:4702: C:/Users/dell/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -fPIC --target=armv7-none-linux-androideabi21 --sysroot=C:/Users/dell/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/sysroot -avoid-version -LC:/vcpkg/installed/arm-android/debug/lib --target=armv7-none-linux-androideabi21 --sysroot=C:/Users/dell/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/sysroot conftest.c -latomic -lm -l-static-libstdc++ -latomic >&5
clang: warning: argument unused during compilation: '-avoid-version' [-Wunused-command-line-argument]
ld: error: unable to find library -l-static-libstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The error is that vcpkg incorrectly adds -l in front of -static-libstdc++.
This happens while transforming VCPKG_DETECTED_CMAKE_CXX_STANDARD_LIBRARIES into LIBS.
The bug is not related to port libpq but in vcpkg_configure_make.

@WangHHY19931001
Copy link
Author

with ndk 25.2.9519653 no fix:
libpq_ndk25.zip
config-arm64-android-dbg-out : checking for zic... no

@WangHHY19931001
Copy link
Author

with ndk 25.2.9519653 fix:

libpq_ndk25_with_msys2_zoneinfo.zip

build success

@dg0yt
Copy link
Contributor

dg0yt commented Mar 23, 2023

I cannot reproduce this issue with current vcpkg and NDK 23c or NDK 25c. -static-libstdc++ is in ...LINKER_FLAGS..., and this is the right location. CMAKE_CXX_STANDARD_LIBRARIES is free of flags.

@dg0yt
Copy link
Contributor

dg0yt commented Mar 23, 2023

@dg0yt
Copy link
Contributor

dg0yt commented Mar 23, 2023

This can be reproduced with -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=FALSE (e.g. injected for libpq via VCPKG_CMAKE_CONFIGURE_OPTIONS).
But it may also occur with some versions of the NDK: android/ndk#1693

@dg0yt
Copy link
Contributor

dg0yt commented May 23, 2023

#31314 is ready for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
4 participants