[ 
https://issues.apache.org/jira/browse/ARROW-14560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Li updated ARROW-14560:
-----------------------------
    Description: 
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.)

  was:
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.
{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.)


> [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)

Reply via email to