Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++][CMake] gRPC doesn't respect CMAKE_CXX_COMPILER #26942

Closed
asfimport opened this issue Dec 24, 2020 · 1 comment
Closed

[C++][CMake] gRPC doesn't respect CMAKE_CXX_COMPILER #26942

asfimport opened this issue Dec 24, 2020 · 1 comment
Assignees
Milestone

Comments

@asfimport
Copy link

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.

$ 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’

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.

Reporter: Yibo Cai / @cyb70289
Assignee: Yibo Cai / @cyb70289

PRs and other links:

Note: This issue was originally created as ARROW-11023. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Kouhei Sutou / @kou:
Issue resolved by pull request 9002
#9002

@asfimport asfimport added this to the 3.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants