Hey there! Has anyone gotten a lemmy server up and running on ARM64? Since Commit 17527d0e7e8c9fd3cc16aa41c636432b7b6b5650 it looks like “multi arch” compiling is not supported anymore?

Unfortunately I am absolutely clueless when it comes to Rust, so my hacking around in the Dockerfile has not gotten me far.

  • bussy@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I haven’t tried it myself but there should be nothing blocking you from compiling it for arm, either by compling on the target or by cross-compiling from x86.

    Native compiling is just installing rust and running cargo build --release. It’s the easiest way but compile times can get pretty bad on low power devices like a pi.

    Cross-compiling can be simple but gets complicated when stuff like openssl is involved. Cross may help with that https://github.com/cross-rs/cross

    Applying that to a Docker is a bit of a different matter though… If you haven’t figured it out, I can try it out on my raspberry pi in a few hours from now.