You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2020/12/24 07:51:00 UTC
[jira] [Resolved] (ARROW-11023) [C++][CMake] gRPC doesn't respect
CMAKE_CXX_COMPILER
[ https://issues.apache.org/jira/browse/ARROW-11023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kouhei Sutou resolved ARROW-11023.
----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 9002
[https://github.com/apache/arrow/pull/9002]
> [C++][CMake] gRPC doesn't respect CMAKE_CXX_COMPILER
> ----------------------------------------------------
>
> Key: ARROW-11023
> URL: https://issues.apache.org/jira/browse/ARROW-11023
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Yibo Cai
> Assignee: Yibo Cai
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> I have both gcc and clang installed. gcc is the default compiler, /usr/bin/c++ points to g++.
> When build flight with clang, it failed with below message.
> {code:bash}
> $ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DARROW_FLIGHT=ON -DARROW_WITH_ZLIB=ON -DCMAKE_CXX_COMPILER=/usr/bin/clang++-9 -DCMAKE_C_COMPILER=/usr/bin/clang-9 ..
> $ ninja
> /usr/bin/c++ -Qunused-arguments -fcolor-diagnostics -O3 -DNDEBUG -O3 -DNDEBUG -fPIC -o CMakeFiles/cmTC_0ad35.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
> c++: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
> c++: error: unrecognized command line option ‘-fcolor-diagnostics’
> {code}
> The reason is grpc/absl/cares building steps don't respect CMAKE_CXX_COMPILER and CMAKE_C_COMPILER.
> They're always built with system default compiler.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)