Skip to content

Rust Applications built on Centos7 cannot run on Centos6 #1617

@domibay-hugo

Description

@domibay-hugo

I have a develop machine with Centos7 where I build little applications to run on Centos7 and Centos6 target machines.
Now trying to run my "hello-world" application on Centos6 and it crashes:

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

the target system is:

$ cat /etc/centos-release
CentOS release 6.10 (Final)

the glibc package provides:

$ rpm -q --provides glibc|grep -i "GLIBC_"
libc.so.6(GLIBC_2.10)(64bit)  
libc.so.6(GLIBC_2.11)(64bit)  
libc.so.6(GLIBC_2.12)(64bit)  
libc.so.6(GLIBC_2.2.5)(64bit)  
libc.so.6(GLIBC_2.2.6)(64bit)  
libc.so.6(GLIBC_2.3)(64bit)  
libc.so.6(GLIBC_2.3.2)(64bit)  
libc.so.6(GLIBC_2.3.3)(64bit)  
libc.so.6(GLIBC_2.3.4)(64bit)  
libc.so.6(GLIBC_2.4)(64bit)  
libc.so.6(GLIBC_2.5)(64bit)  
libc.so.6(GLIBC_2.6)(64bit)  
libc.so.6(GLIBC_2.7)(64bit)  
libc.so.6(GLIBC_2.8)(64bit)  
libc.so.6(GLIBC_2.9)(64bit)  

So I am wondering why the Rust Library requires GLIBC_2.14 and cannot run with GLIBC_2.12 ?

Needless to mention that Applications compiled with other Languages do run on both Centos7 and Centos6 systems.

Another Application built with another Compiler on Centos7:

$ ./hello-world_fpc.run
Hello, world!
$ ./hello-world_fpc.run -h
Usage: /path/to/hello-world_fpc.run -h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions