Skip to content

Rust Applications built on Centos7 cannot run on Centos6 #67173

@domibay-hugo

Description

@domibay-hugo

I found this Thread about Rust sopporting RHEL6
#62516

But I actually found that Applications built on Centos7 cannot run on Centos6 because of high glibc requirements.
As documented in:
rust-lang/libc#1617

fn main() {
    println!("Hello, world!");
}
$ ./hello-world
./hello-world: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./hello-world)

Reading that it would actually support EL6 makes me wonder why the highest available glibc Version is chosen on built time and not the actually required glibc Version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-feature-requestCategory: A feature request, i.e: not implemented / a PR.O-linuxOperating system: LinuxT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions