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
centos6 build and link grpc-rs source code error: undefined reference to `__gxx_personality_v0' #110
Comments
Moreover, I find grpcio 0.1.2 in centos 6 can not installed correct:
os is |
/cc @BusyJay |
It seems that the upstream mixes C and C++ sources together however grpc-rs treat them all as C. The master branch of grpc has changed all grpc core sources to C++ now, so it would be better to enable C++ mode by default in grpc-rs. /cc @overvenus |
@BusyJay @overvenus can add -lstdc++ in make option to solve this problem? |
I guess it should work. Or you can set |
@BusyJay I modify the code grpc-rs/grpc-sys/build.sh
then cargo build in grpc-rs then error occur:
|
After I fix the
so I think if the grpc change so grpc-rs should also change. some code need update. |
Did you find these functions in grpc_wrap.c? |
Oh, I get it. That's because C++ compiler will mangle the symbol name, so just switching to C++ is not enough. For simplicity, maybe you can try to just link to stdc++ instead. |
@BusyJay I try use stdc++ before
but another error occur:
if I use stdc++ like
then mutiple |
@BusyJay is there any old branch or tag can use gcc build instead of g++ in https://github.com/pingcap/grpc/? |
No, you should use |
@BusyJay I think i have solved the el6 build problem after modify grpc-sys/build.rs
and modify grpc-sys/grpc_wrap.c:
|
Glad to hear it! |
@BusyJay thanks for your help, I think this issue can be closed. |
hi, I use grpc-rs source code as grpcio's patch in my rust project, after complie succ . the link occur error, detail as below:
the grpcio use method in my project Cargo.toml is
My build machine os is centos 6, I upgrade the default gcc/g++ version from 4.47 to 4.8.2:
and then upgrade cmake version to 3.10.0-rc4.
Then the compile process of my project is completed succ, but the final link process is error:
Besides, in centos 7 machine, the build and link is ok.
The text was updated successfully, but these errors were encountered: