You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/08 18:51:00 UTC

[jira] [Updated] (ARROW-16870) [C++] lld does not like --as-needed flag

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

ASF GitHub Bot updated ARROW-16870:
-----------------------------------
    Labels: pull-request-available  (was: )

> [C++] lld does not like --as-needed flag
> ----------------------------------------
>
>                 Key: ARROW-16870
>                 URL: https://issues.apache.org/jira/browse/ARROW-16870
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 8.0.0
>            Reporter: Will Jones
>            Assignee: Will Jones
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 10.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I've been getting this annoying linking error if I try to build examples using Clang 13 on MacOS:
> {code:none}
> [build] [807/827] Linking CXX executable debug/flight-grpc-example
> [build] FAILED: debug/flight-grpc-example
> [build] : && /Library/Developer/CommandLineTools/usr/bin/c++ -Qunused-arguments -fcolor-diagnostics  ...
> [build] ld: unknown option: --no-as-needed
> [build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
> {code}
> Should we drop the {{--as-needed}} or should I carve out for Apple? cc [~davidli]
> My workaround has been to comment out these lines: https://github.com/apache/arrow/blob/982ea6c4d382d1e85164f09b711e87938eaa674a/cpp/examples/arrow/CMakeLists.txt#L39-L40



--
This message was sent by Atlassian Jira
(v8.20.10#820010)