Leonhard Gruenschloss created ARROW-13256:
---------------------------------------------

             Summary: Shared libraries linker error when using clang, C++ 20, 
and ld
                 Key: ARROW-13256
                 URL: https://issues.apache.org/jira/browse/ARROW-13256
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 4.0.1
            Reporter: Leonhard Gruenschloss
         Attachments: Dockerfile

With the attached Dockerfile as a small self contained repro case, {{ld}} 
produces the following error at link time:

{{/usr/bin/ld: /usr/local/lib/libarrow.so.400.1.0: undefined reference to `bool 
std::operator==<arrow::Array>(std::shared_ptr<arrow::Array> const&, 
decltype(nullptr))}}

In contrast, linking works fine with the Gold linker (uncomment 
{{-DCMAKE_CXX_FLAGS="-fuse-ld=gold"}}), compiling with {{g++}} instead of 
{{clang++}}, using -{{DCMAKE_CXX_STANDARD=17}}, or linking statically.

Not sure whether it's an issue with Arrow or clang.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to