cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.8k stars 379 forks source link

Draft: Updated Docker image to Ubuntu-24.04 and Cargo dependencies #1580

Open JanDiederich opened 1 month ago

JanDiederich commented 1 month ago

There were attempts to update to Ubuntu 22 (#973), and then Ubuntu 24, but that seems to have stopped? Also the dependencies were outdated.

So I updated them, but I can't get it running. I tried to build the Docker image for ARM64 Linux, but it stops in an endless loop. The command line is cargo build-docker-image aarch64_be-unknown-linux-gnu-cross --tag local. In crosstool-ng.sh:

    download() {
        # timeout is a command, not a built-in, so it won't
        # work with any bash functions: must call a command.
        timeout "${timeout}" \
            su "${username}" -c \
            "STOP=${step} CT_DEBUG_CT_SAVE_STEPS=1 ${crosstooldir}/bin/ct-ng build.${nproc}"
    }

    while silence_stdout download; [ $? -eq 124 ]; do
        # Indicates a timeout, repeat the command.
        sleep "${sleep}"
    done

Please, can anyone give me a hint how to fix that?

Emilgardis commented 4 weeks ago

/ci try

github-actions[bot] commented 4 weeks ago

Starting try run. Link to action

github-actions[bot] commented 4 weeks ago

Try run for comment

Failed Jobs

List - [aarch64-linux-android](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977415?pr=1580#) - ❌ - [aarch64-unknown-linux-gnu:centos](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977479?pr=1580#) - ❌ - [aarch64-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977572?pr=1580#) - ❌ - [arm-linux-androideabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977933?pr=1580#) - ❌ - [arm-unknown-linux-gnueabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978043?pr=1580#) - ❌ - [armv7-linux-androideabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978720?pr=1580#) - ❌ - [armv7-unknown-linux-gnueabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978826?pr=1580#) - ❌ - [i586-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979357?pr=1580#) - ❌ - [i686-linux-android](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979619?pr=1580#) - ❌ - [i686-pc-windows-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979739?pr=1580#) - ❌ - [i686-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979971?pr=1580#) - ❌ - [loongarch64-unknown-linux-musl](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980247?pr=1580#) - ❌ - [mips64el-unknown-linux-gnuabi64](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980532?pr=1580#) - ❌ - [mipsel-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980872?pr=1580#) - ❌ - [powerpc64le-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981147?pr=1580#) - ❌ - [powerpc64-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981247?pr=1580#) - ❌ - [powerpc-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981384?pr=1580#) - ❌ - [riscv64gc-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981489?pr=1580#) - ❌ - [s390x-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981605?pr=1580#) - ❌ - [sparc64-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981716?pr=1580#) - ❌ - [thumbv7neon-linux-androideabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982397?pr=1580#) - ❌ - [thumbv7neon-unknown-linux-gnueabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982505?pr=1580#) - ❌ - [x86_64-pc-windows-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983234?pr=1580#) - ❌ - [x86_64-linux-android](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983298?pr=1580#) - ❌ - [x86_64-unknown-linux-gnu:centos](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983722?pr=1580#) - ❌ - [x86_64-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983779?pr=1580#) - ❌

Successful Jobs

List - [aarch64-unknown-freebsd](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977718?pr=1580#step:10:1) - ✔️ - [aarch64-unknown-linux-musl](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117977864?pr=1580#step:10:1) - ✔️ - [arm-unknown-linux-gnueabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978130?pr=1580#step:10:1) - ✔️ - [arm-unknown-linux-musleabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978242?pr=1580#step:10:1) - ✔️ - [armv5te-unknown-linux-gnueabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978353?pr=1580#step:10:1) - ✔️ - [arm-unknown-linux-musleabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978494?pr=1580#step:10:1) - ✔️ - [armv5te-unknown-linux-musleabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978600?pr=1580#step:10:1) - ✔️ - [armv7-unknown-linux-gnueabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117978915?pr=1580#step:10:1) - ✔️ - [armv7-unknown-linux-musleabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979028?pr=1580#step:10:1) - ✔️ - [armv7-unknown-linux-musleabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979141?pr=1580#step:10:1) - ✔️ - [cross](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979247?pr=1580#step:10:1) - ✔️ - [i586-unknown-linux-musl](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979488?pr=1580#step:10:1) - ✔️ - [i686-unknown-freebsd](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117979841?pr=1580#step:10:1) - ✔️ - [i686-unknown-linux-musl](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980131?pr=1580#step:10:1) - ✔️ - [loongarch64-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980421?pr=1580#step:10:1) - ✔️ - [mips64-unknown-linux-gnuabi64](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117980704?pr=1580#step:10:1) - ✔️ - [mips-unknown-linux-gnu](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981006?pr=1580#step:10:1) - ✔️ - [sparcv9-sun-solaris](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981839?pr=1580#step:10:1) - ✔️ - [thumbv6m-none-eabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117981951?pr=1580#step:10:1) - ✔️ - [thumbv7em-none-eabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982065?pr=1580#step:10:1) - ✔️ - [thumbv7em-none-eabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982184?pr=1580#step:10:1) - ✔️ - [thumbv7m-none-eabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982291?pr=1580#step:10:1) - ✔️ - [thumbv8m.base-none-eabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982599?pr=1580#step:10:1) - ✔️ - [thumbv8m.main-none-eabi](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117982687?pr=1580#step:10:1) - ✔️ - [thumbv8m.main-none-eabihf](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983046?pr=1580#step:10:1) - ✔️ - [wasm32-unknown-emscripten](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983109?pr=1580#step:10:1) - ✔️ - [x86_64-apple-darwin](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983173?pr=1580#step:10:1) - ✔️ - [x86_64-pc-solaris](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983404?pr=1580#step:10:1) - ✔️ - [x86_64-pc-windows-msvc](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983472?pr=1580#step:10:1) - ✔️ - [x86_64-unknown-dragonfly](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983538?pr=1580#step:10:1) - ✔️ - [x86_64-unknown-freebsd](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983598?pr=1580#step:10:1) - ✔️ - [x86_64-unknown-illumos](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983660?pr=1580#step:10:1) - ✔️ - [x86_64-unknown-linux-musl](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983857?pr=1580#step:10:1) - ✔️ - [x86_64-unknown-netbsd](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983927?pr=1580#step:10:1) - ✔️ - [zig](https://github.com/cross-rs/cross/actions/runs/11538900223/job/32117983998?pr=1580#step:10:1) - ✔️
JanDiederich commented 3 weeks ago

Looking at the died down predecessor #973 I don't expect any help soon. On the other hand: This project is super famous and used by many, many people. If you added a donate button I would donate a little bit. Maybe others too? Maybe even if the single tips are small, they sum up to something bigger and were enough of a motivation?

Emilgardis commented 3 weeks ago

Thank you for the consideration, I'd rather get help with contributions like this rather than money <3 I don't think a way to donate would motivate me, but maybe it could motivate other invited maintainers? I have no clue :3

I'll look into the issue you reported, but try setting VERBOSE=1 in the dockerfile to see if there's an error message, we're silencing stdout