Repository: rust-cross/rust-musl-cross (language: rust)

Issue:
Upgrade rust to 1.46.0 ?
Would you please upgrade rust to the latest?

arm-musleabihf is using 1.40.0


Discussion / hints:
https://travis-ci.org/github/messense/rust-musl-cross/builds

The cron build failed, unfortunately I don't have a lot time to look into it, help appreciated!
I try to upgrade base image to ubuntu 20.04, and seems arm-musleabihf build is working. I will try more testing. Maybe I could create a pull request to fix this issue.
I have tried the same but I still see the same problem :/. 
@abcfy2 if that can unblock you, you can update to the latest by doing this:
 docker run --rm -t -v "your repo:/home/rust/src messense/rust-musl-cross:armv7-musleabihf  /bin/bash -c " rm -frv ~/.rustup/toolchains/* &&curl -sSLf https://sh.rustup.rs | sh -s -- -y && rustup target add armv7-unknown-linux-musleabihf && cargo build --target=armv7-unknown-linux-musleabihf --release --manifest-path /yourApp/Cargo.toml"
It seems an upstream issue. Waiting this PR: https://github.com/rust-lang/rust/pull/77967
I also found this: https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=dff2abcbee65dbb4b7ca3ade0f7622ffdc0af391.
Now you have to specify "-march=armv7-a+fp" and not -march=armv7-a.

I can see that in the compilation it is trying to do "march=armv7-a":

>  running: "armv7-unknown-linux-musleabihf-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-I" "/usr/local/musl/armv7-unknown-linux-musleabihf/include/" "-Wall" "-Wextra" "-E" "build/expando.c"
>   cargo:warning=cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU

I hope that that PR will fix it.

Fix patch:
diff --git a/Dockerfile b/Dockerfile
index 241c83e..ffef1f5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,10 +26,10 @@ RUN apt-get update && \
 
 ADD config.mak /tmp/config.mak
 RUN cd /tmp && \
-    curl -Lsq -o musl-cross-make.zip https://github.com/richfelker/musl-cross-make/archive/master.zip && \
+    curl -Lsq -o musl-cross-make.zip https://github.com/richfelker/musl-cross-make/archive/v0.9.8.zip && \
     unzip -q musl-cross-make.zip && \
     rm musl-cross-make.zip && \
-    mv musl-cross-make-master musl-cross-make && \
+    mv musl-cross-make-0.9.8 musl-cross-make && \
     cp /tmp/config.mak /tmp/musl-cross-make/config.mak && \
     cd /tmp/musl-cross-make && \
     TARGET=$TARGET make install > /tmp/musl-cross-make.log && \
diff --git a/config.mak b/config.mak
index 3b70991..a99d645 100644
--- a/config.mak
+++ b/config.mak
@@ -16,7 +16,8 @@ OUTPUT = /usr/local/musl
 # headers, which are not needed unless compiling programs that use them.
 
 # BINUTILS_VER = 2.25.1
-# GCC_VER = 7.2.0
+ GCC_VER = 7.2.0
+
 # MUSL_VER = 1.1.19
 # GMP_VER =
 # MPC_VER =


Test patch: