this post was submitted on 13 Jun 2023
12 points (100.0% liked)

Selfhosted

38768 readers
160 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

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.

[–] [email protected] 3 points 1 year ago

Cross compiling is one of the few places that Go shines over Rust