-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
wrong libc linked during build #6582
Comments
I have the same problem. |
The cause of this issue seems to be below:
There is a workaround that change [target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/cc" |
This will lead to another problem when i tried to compile rust-zmq
So i was wondering how to compile rust with linuxbrew glibc? |
Now I have another workaround.
|
I have a similar problem:
The problem is that |
Possibly related fix for this in #9322. |
Problem
It's been just two months I have not touched Rust but today after upgrading to the most recent version I was no longer able to use
cargo install
.Steps
rustup update
+rustup default stable
cargo install ripgrep
at the end of compilation the error message shows up:
I think the problem happens at linking time so I don't know if the additional error message at the end was really helpful.
This should not happen because
rustc
is not supposed to link against/usr/lib64/libc.so.6
:and
/home/linuxbrew/.linuxbrew/lib/libc.so.6
is an updated version of glibc:Notes
Output of
cargo version
:The platform I have is CentOS 7. And if I downgrade rust to 1.31.0, it works without any problem. So this should be related to the version update.
The text was updated successfully, but these errors were encountered: