You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2022/06/21 15:59:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17556984#comment-17556984 ] 

David Li commented on ARROW-16870:
----------------------------------

Yeah we should add an exception for MacOS (didn't realize that). The flag is needed on Linux though: https://grpc.github.io/grpc/cpp/md_doc_server_reflection_tutorial.html

If there's an analogous MacOS flag we should add it.

BTW I'm "lidavidm" (common mistake :) )

> [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
>             Fix For: 9.0.0
>
>
> 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.7#820007)