[
https://issues.apache.org/jira/browse/ARROW-15897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504320#comment-17504320
]
David Li commented on ARROW-15897:
----------------------------------
…that seems quite odd indeed.
I can reproduce your original issue in a Ubuntu 20.04 container, at least. FYI:
{noformat}
# ldd /root/miniconda3/envs/dev/lib/libgrpc++.so.1.44.0 | grep libstdc
libstdc++.so.6 => /root/miniconda3/envs/dev/lib/./libstdc++.so.6
(0x00007fe181f8a000)
{noformat}
Adding this library to the link command also fixes things.
> [C++] Linker error when building Flight tests
> ---------------------------------------------
>
> Key: ARROW-15897
> URL: https://issues.apache.org/jira/browse/ARROW-15897
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, FlightRPC
> Reporter: Antoine Pitrou
> Priority: Major
> Fix For: 8.0.0
>
>
> When building the Flight unit tests, I get the following error:
> {code}
> [16/25] Linking CXX executable debug/flight-test-integration-server
> FAILED: debug/flight-test-integration-server
> [... snip long linker command line ...]
> /usr/bin/ld: /home/antoine/miniconda3/envs/pyarrow/lib/libgrpc++.so.1.44.0:
> undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> {code}
> This is using a pre-built gRPC from conda-forge ({{grpc-cpp 1.44.0
> h3d78c48_1}}).
> Other possibly relevant options: {{CMAKE_CXX_STANDARD=17}},
> {{ARROW_BUILD_STATIC=OFF}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)