-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14393: [C++] GTest linking errors during the source release verification #11477
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
Conversation
|
|
|
It fixes the earlier failing vcpkg build and should fix the windows verification build as well because we install gtest=1.10 using conda. |
|
Benchmark runs are scheduled for baseline = 80ecf33 and contender = 4ac62d5. 4ac62d5 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
address review apache#11477
|
Why was this done? If you're using the conda package, you shouldn't use the bundled version, and vice-versa. |
|
IIRC the issue was: we required GTest 1.11, but still installed 1.10 via Conda, and in the end we would use the headers from 1.10 but link to 1.11, because the |
|
ARROW_GTEST_BUILD_VERSION is not the required version, it's only the version used when building a bundled version. It shouldn't conflict with the conda-installed version. |
|
However, it's an error to both install it with Conda and ask CMake to build a bundled version. I have no clue where this happens, because the release script is a mess. |
|
Ah, sorry, I misunderstood then - but regardless, the failing builds were building GTest from source, so we still had the version mismatch. The Zulip discussion starts The better fix would probably have been to prioritize the bundled include directory over the Conda one. |
Pin budled gtest to 1.10.0 as required by the thirdparty toolchain: https://github.com/apache/arrow/blob/master/cpp/cmake_modules/ThirdpartyToolchain.cmake#L1814
vcpkg crossbow build which was failing with the same reason as the source release verification script: https://github.com/ursacomputing/crossbow/runs/3951554360