rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
639 stars 70 forks source link

Upgrade base to ubuntu 20.04 #34

Closed asaaki closed 3 years ago

asaaki commented 3 years ago

The noninteractive env var had to be added since tzdata would try to ask for a region. ADDs changed to COPYs as it is good practice in the docker community.

Also:

General compile erros for 32 bit ARMs

See the issues and discussion here:

HF targets

We need to add an CFLAGS env var for armv7-unknown-linux-musleabihf on docker run to make the compiler happy.

Error was:

warning: cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU

Can be fixed by using either of them:

export CFLAGS_armv7_unknown_linux_musleabihf='-mfpu=vfpv3-d16'
export CFLAGS_armv7_unknown_linux_musleabihf='-mfpu=neon'

References:

Per documentation I use vfpv3-d16 for the CI step here (labeled as the most common denominator). In the end the user of this cross compiler tool needs to make the appropriate decision in their projects.

messense commented 3 years ago

Thank you!