You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/11/02 21:24:00 UTC
[jira] [Commented] (ARROW-14560) [C++] vcpkg build fails since
pinned GTest not buildable with latest vcpkg
[ https://issues.apache.org/jira/browse/ARROW-14560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437589#comment-17437589 ]
David Li commented on ARROW-14560:
----------------------------------
We could just wait for [https://github.com/microsoft/vcpkg-tool/pull/245] it looks like. That might be better given ARROW-12756 found that newer Googletest wouldn't build on Windows.
> [C++] vcpkg build fails since pinned GTest not buildable with latest vcpkg
> --------------------------------------------------------------------------
>
> Key: ARROW-14560
> URL: https://issues.apache.org/jira/browse/ARROW-14560
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: David Li
> Priority: Major
>
> While trying to replicate an issue in the Flight SQL PR, I found that we can no longer build with tests via vcpkg. TheĀ [nightly CI|https://github.com/ursacomputing/crossbow/runs/4076479479?check_suite_focus=true] has the same issue. This is because of a [new check|https://github.com/microsoft/vcpkg/issues/21116] added recently in vcpkg; now only the latest GTest package builds (the revised 1.11 package - note they didn't increment the port-version so right now I can't figure out how to get an override in).
> I think the solution is to update our vcpkg baseline and GTest version.
> {noformat}
> -- Performing post-build validation
> There should be no pkgconfig directories outside of lib and debug/lib.
> The following misplaced pkgconfig files were found: /vcpkg/packages/gtest_x64-linux/lib/manual-link/pkgconfig/gtest_main.pc
> /vcpkg/packages/gtest_x64-linux/lib/manual-link/pkgconfig/gmock_main.pc
> /vcpkg/packages/gtest_x64-linux/debug/lib/manual-link/pkgconfig/gtest_main.pc
> /vcpkg/packages/gtest_x64-linux/debug/lib/manual-link/pkgconfig/gmock_main.pcYou can move the pkgconfig files with the following commands: file(INSTALL "${CURRENT_PACKAGES_DIR}/a/path/pkgconfig/name.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/a/path/pkgconfig")
> file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/a/path/pkgconfig")Found 1 error(s). Please correct the portfile:
> /vcpkg/buildtrees/versioning/versions/gtest/8dd6b8fb34e78fd1646f5d98720dd563d4a38a33/portfile.cmake {noformat}
> This may be specific to the PR but I also found that updating the vcpkg baseline breaks elsewhere as the version of Boost installed doesn't have the UUID package anymore. (I think that's an issue for the PR, though.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)