Skip to content

Instantly share code, notes, and snippets.

@teohhanhui
Last active December 23, 2024 09:18
Show Gist options
  • Save teohhanhui/042a395010d9946ceee14768736e3780 to your computer and use it in GitHub Desktop.
Save teohhanhui/042a395010d9946ceee14768736e3780 to your computer and use it in GitHub Desktop.
Asahi Linux - krun + FEX + Steam

Nothing to see here.

What you want is https://asahilinux.org/2024/10/aaa-gaming-on-asahi-linux/

But if you have previously followed this guide, use the following to switch:

Cleanup

rm -rf ~/.fex-emu
rm ~/.local/bin/{asahi-krun-overlay-fex-rootfs,FEXBash,krun,krun-guest,steam}
rm ~/.local/share/applications/steam.desktop
rm -rf ~/.local/share/asahi-krun
DBX_CONTAINER_MANAGER=podman distrobox rm asahi-krun

Install Steam (on the host)

sudo dnf upgrade --refresh
sudo dnf install --best --setopt=allow_vendor_change=true steam
sudo dnf remove dhcpcd

You might have to reboot the system.

@m1m1k4tz
Copy link

If not try using the bash that comes with box64 in the tests folder

@nik012003
Copy link

error: failed to run custom build command for `krun-sys v1.9.1 (/home/nik/repos/krun/crates/krun-sys)`

Caused by:
  process didn't exit successfully: `/home/nik/repos/krun/target/release/build/krun-sys-b7c1bf88974d194d/build-script-build` (exit status: 127)
  --- stderr
  /home/nik/repos/krun/target/release/build/krun-sys-b7c1bf88974d194d/build-script-build: error while loading shared libraries: libclang.so.16: cannot open shared object file: No such file or directory

Solved by installing the package clang16-devel. you might wanna update the gist with that

@teohhanhui
Copy link
Author

@nik012003 I have recreated the container from scratch following this guide, and cannot reproduce the problem. krun-sys compiles perfectly fine for me with clang-devel-18.1.6-3.fc40.aarch64

@LeaveNhA
Copy link

Has anyone ever managed to run Apex Legends? I really wanna do it.

@MicahBird
Copy link

@LeaveNhA As far as I know, Apex Legends doesn't support OpenGL as a graphics backed, and OpenGL is the only graphics API (currently) supported on Asahi Linux. Your best bet would be to install VMWare Fusion (it's free for personal use) and install Apex there. Although, beware of the anti-cheat.
https://www.applegamingwiki.com/wiki/Apex_Legends

@LeaveNhA
Copy link

Actually, for Fex I have an alternative, Rosetta. It might be not legal tho, be warned. Also, I couldn't manage to run it with it because it requires x-server and this guide leads a wayland setup.
Also, for Vulkan, I tried to compile mesa from source with the HoneyKrisp branch. But no luck at all because of the FEX.
@MicahBird, I am literally out-of-options. Any help would be greatly appreciated.

@teohhanhui
Copy link
Author

@LeaveNhA Just wait for the Asahi devs to release Honeykrisp. Patience is key here. There's still a lot of work that needs to happen in many things (krun, FEX, etc.)...

@LeaveNhA
Copy link

LeaveNhA commented Aug 17, 2024

@teohhanhui, I don't wanna sit and wait, no offense. I wanna contribute their work but my background is completely theoretical on programming languages.
Would you (or any of you guys) suggest a starting point on how to contribute on FEX or any key-point software in this pipeline? So I can really relax and feel that I am not wasting oxygen.

@teohhanhui
Copy link
Author

@LeaveNhA Try asking in the Matrix room then... Or on Mastodon? But really, don't mention Rosetta. They might ban you real quick 😆

@LeaveNhA
Copy link

@teohhanhui, FYI, I cannot join their IRC, it says, failed.

@D3fus
Copy link

D3fus commented Aug 20, 2024

Hey, is the FEXRootFSFetcher command broken? I'm getting Couldn't download rootfs list from the server. Try again in a minute or report on the fex-emu issue tracker. when i run krun FEXRootFSFetcher and press y, to download an rootfs.

@teohhanhui
Copy link
Author

@D3fus There is currently no connectivity from within the krun VM due to a passt bug: https://github.com/slp/krun/issues/17#issuecomment-2299401465

You can downgrade to an earlier version of passt inside the container: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d127500a41

@teohhanhui
Copy link
Author

teohhanhui commented Aug 20, 2024

e.g.

sudo dnf downgrade passt-0^20240806.gee36266-1.fc40.aarch64.rpm

(again, make sure you're doing this inside the container, or it would not help...)

@D3fus
Copy link

D3fus commented Aug 20, 2024

Thx @teohhanhui, it worked.

@Pickles888
Copy link

I'm having trouble with building krun-sys. It seems like there is an issue with clang using the llvm libraries. If it is relevant I'm on nixos.

📦[asynth@asahi-krun]~/Downloads/krun% cargo build --release:

   Compiling krun-sys v1.9.1 (/home/asynth/Downloads/krun/crates/krun-sys)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/usr/lib64/ccache:/nix/store/sncw0dmk0ckz781v34y480wajbwzy4rr-distrobox-1.7.2.1/bin:/nix/store/jx7p430m74y91agrgsfmff09ma14nww0-llvm-18.1.8-dev/bin:/nix/store/dan2jq67vafsav5sp31sik790ni8r7ak-ncurses-6.4.20221231-dev/bin:/nix/store/fn7ak929kixfxpxkahbwivkkfsx1gk63-ncurses-6.4.20221231/bin:/nix/store/c3zqij6ywl6964drlghrv419nnxrspkw-llvm-18.1.8/bin:/nix/store/2abmvm4r3all81d5b8hr3ydjwjabx4lw-clang-wrapper-18.1.8/bin:/nix/store/j0k075wkfs3dzy5xgwschji29dqh2z26-clang-18.1.8/bin:/nix/store/ilhr0m9ari0nh8xmzgbvkdqpjzrsylzx-glibc-2.39-52-bin/bin:/nix/store/gdj3wqa788wm5aghx4sh6dnz3jcdmbn9-coreutils-9.5/bin:/nix/store/xmd7cjvhrfs1lgddd2w0m4ri7dfhyf7g-binutils-wrapper-2.42/bin:/nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin:/nix/store/imbw8h46yjayh4zds7a5bl394axhwan5-patchelf-0.15.0/bin:/nix/store/8pl88j27cmizmvqn0468id6wz9jfhb2k-gcc-wrapper-13.3.0/bin:/nix/store/76p10s9ymsgp1g8yxdj1ibf5ih1awad3-gcc-13.3.0/bin:/nix/store/6mx5y3dq6k829fhs7rpjw84yalvhhrrj-binutils-wrapper-2.42/bin:/nix/store/bqj5ihq74czm0h1ypg5fq7ixdh01pach-compiler-rt-libc-18.1.8/bin:/nix/store/gdj3wqa788wm5aghx4sh6dnz3jcdmbn9-coreutils-9.5/bin:/nix/store/qxmcmky0sgsbb33igmmdc2j3137cfz8h-findutils-4.10.0/bin:/nix/store/aamcxwi0m5z3hzdwysi37qlpfk3rxhfs-diffutils-3.10/bin:/nix/store/82v9hz5nav5swvdmz4cq53f2m671njcc-gnused-4.9/bin:/nix/store/7zx7siwr6hpgkiygi52avqkkjzp7dc7l-gnugrep-3.11/bin:/nix/store/ym0mjp5a03x56ji9kzcb1wizcc060bhj-gawk-5.2.2/bin:/nix/store/3473rfk96nrgggxzp49mjzmih29yw6dw-gnutar-1.35/bin:/nix/store/wm5rpvks3nm7zdq9gzj2b59qv680pp8c-gzip-1.13/bin:/nix/store/hiq1j2g7l1ma0hkpiidbkkli1wyhadxi-bzip2-1.0.8-bin/bin:/nix/store/wpcc7b5gx7w2axb6dyrnk2rc95pic0gs-gnumake-4.4.1/bin:/nix/store/q2xy9y7zsqx2a1harmj0c021chdyfxbw-bash-5.2p32/bin:/nix/store/dp4h0k3nlpiq8rw2ysdwy7kp0psmazkp-patch-2.7.6/bin:/nix/store/3ggxxxgnpizqx4dnlkfq9dag17l05bhn-xz-5.6.2-bin/bin:/nix/store/a5ny6m468fazqkvxkpghmfn6b9ghk0v3-file-5.45/bin:/nix/store/kw2j7820n12b2i63p1kj0jvcpq9nh3d3-kitty-0.35.2/bin:/nix/store/5103jfvjpp9w0800l56qj0lh0a8m0669-imagemagick-7.1.1-36/bin:/nix/store/bkp4rqp2rypaqfzffbad7hgg0i8bcr2f-ncurses-6.4.20221231-dev/bin:/run/wrappers/bin:/home/asynth/.cargo/bin:/run/wrappers/bin:/home/asynth/.cargo/bin:/nix/store/sncw0dmk0ckz781v34y480wajbwzy4rr-distrobox-1.7.2.1/bin:/nix/store/jx7p430m74y91agrgsfmff09ma14nww0-llvm-18.1.8-dev/bin:/nix/store/dan2jq67vafsav5sp31sik790ni8r7ak-ncurses-6.4.20221231-dev/bin:/nix/store/fn7ak929kixfxpxkahbwivkkfsx1gk63-ncurses-6.4.20221231/bin:/nix/store/c3zqij6ywl6964drlghrv419nnxrspkw-llvm-18.1.8/bin:/nix/store/2abmvm4r3all81d5b8hr3ydjwjabx4lw-clang-wrapper-18.1.8/bin:/nix/store/j0k075wkfs3dzy5xgwschji29dqh2z26-clang-18.1.8/bin:/nix/store/ilhr0m9ari0nh8xmzgbvkdqpjzrsylzx-glibc-2.39-52-bin/bin:/nix/store/gdj3wqa788wm5aghx4sh6dnz3jcdmbn9-coreutils-9.5/bin:/nix/store/xmd7cjvhrfs1lgddd2w0m4ri7dfhyf7g-binutils-wrapper-2.42/bin:/nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin:/nix/store/imbw8h46yjayh4zds7a5bl394axhwan5-patchelf-0.15.0/bin:/nix/store/8pl88j27cmizmvqn0468id6wz9jfhb2k-gcc-wrapper-13.3.0/bin:/nix/store/76p10s9ymsgp1g8yxdj1ibf5ih1awad3-gcc-13.3.0/bin:/nix/store/6mx5y3dq6k829fhs7rpjw84yalvhhrrj-binutils-wrapper-2.42/bin:/nix/store/bqj5ihq74czm0h1ypg5fq7ixdh01pach-compiler-rt-libc-18.1.8/bin:/nix/store/gdj3wqa788wm5aghx4sh6dnz3jcdmbn9-coreutils-9.5/bin:/nix/store/qxmcmky0sgsbb33igmmdc2j3137cfz8h-findutils-4.10.0/bin:/nix/store/aamcxwi0m5z3hzdwysi37qlpfk3rxhfs-diffutils-3.10/bin:/nix/store/82v9hz5nav5swvdmz4cq53f2m671njcc-gnused-4.9/bin:/nix/store/7zx7siwr6hpgkiygi52avqkkjzp7dc7l-gnugrep-3.11/bin:/nix/store/ym0mjp5a03x56ji9kzcb1wizcc060bhj-gawk-5.2.2/bin:/nix/store/3473rfk96nrgggxzp49mjzmih29yw6dw-gnutar-1.35/bin:/nix/store/wm5rpvks3nm7zdq9gzj2b59qv680pp8c-gzip-1.13/bin:/nix/store/hiq1j2g7l1ma0hkpiidbkkli1wyhadxi-bzip2-1.0.8-bin/bin:/nix/store/wpcc7b5gx7w2axb6dyrnk2rc95pic0gs-gnumake-4.4.1/bin:/nix/store/q2xy9y7zsqx2a1harmj0c021chdyfxbw-bash-5.2p32/bin:/nix/store/dp4h0k3nlpiq8rw2ysdwy7kp0psmazkp-patch-2.7.6/bin:/nix/store/3ggxxxgnpizqx4dnlkfq9dag17l05bhn-xz-5.6.2-bin/bin:/nix/store/a5ny6m468fazqkvxkpghmfn6b9ghk0v3-file-5.45/bin:/nix/store/kw2j7820n12b2i63p1kj0jvcpq9nh3d3-kitty-0.35.2/bin:/nix/store/5103jfvjpp9w0800l56qj0lh0a8m0669-imagemagick-7.1.1-36/bin:/nix/store/bkp4rqp2rypaqfzffbad7hgg0i8bcr2f-ncurses-6.4.20221231-dev/bin:/run/wrappers/bin:/home/asynth/.cargo/bin:/run/wrappers/bin:/home/asynth/.cargo/bin:$PATH:/home/asynth/.nix-profile/bin:/nix/profile/bin:/home/asynth/.local/state/nix/profile/bin:/etc/profiles/per-user/asynth/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/asynth/.nix-profile/bin:/nix/profile/bin:/home/asynth/.local/state/nix/profile/bin:/etc/profiles/per-user/asynth/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/9j62xj0fp928mbf4637ps4iypjnvkaax-binutils-wrapper-2.42/bin:/nix/store/i3n4py92dfksa7gbq028dk3zh8qw1dlj-pciutils-3.13.0/bin:/nix/store/ak0sfccap6vya8m0kf600qmcgywb2al4-pkgconf-wrapper-2.2.0/bin:/home/asynth/.nix-profile/bin:/nix/profile/bin:/home/asynth/.local/state/nix/profile/bin:/etc/profiles/per-user/asynth/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/asynth/.nix-profile/bin:/nix/profile/bin:/home/asynth/.local/state/nix/profile/bin:/etc/profiles/per-user/asynth/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/9j62xj0fp928mbf4637ps4iypjnvkaax-binutils-wrapper-2.42/bin:/nix/store/i3n4py92dfksa7gbq028dk3zh8qw1dlj-pciutils-3.13.0/bin:/nix/store/ak0sfccap6vya8m0kf600qmcgywb2al4-pkgconf-wrapper-2.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/tmp/nix-shell.F4ReC5/rustcYgSqZx/symbols.o" "/home/asynth/Downloads/krun/target/release/build/krun-sys-b7c1bf88974d194d/build_script_build-b7c1bf88974d194d.build_script_build.ee39272ea874d1d4-cgu.0.rcgu.o" "/home/asynth/Downloads/krun/target/release/build/krun-sys-b7c1bf88974d194d/build_script_build-b7c1bf88974d194d.9spraq7szocc6yfps32ph2eoc.rcgu.o" "-Wl,--as-needed" "-L" "/home/asynth/Downloads/krun/target/release/deps" "-L" "/usr/lib64" "-L" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/asynth/Downloads/krun/target/release/deps/libbindgen-c6e903288a4fa467.rlib" "/home/asynth/Downloads/krun/target/release/deps/libshlex-7ab0e0af19bf8ad0.rlib" "/home/asynth/Downloads/krun/target/release/deps/librustc_hash-1ba5392f0d9ec365.rlib" "/home/asynth/Downloads/krun/target/release/deps/libregex-bd71ab7d47201ad1.rlib" "/home/asynth/Downloads/krun/target/release/deps/libregex_automata-93a276d84f827c03.rlib" "/home/asynth/Downloads/krun/target/release/deps/libregex_syntax-291c10a27907f7cf.rlib" "/home/asynth/Downloads/krun/target/release/deps/liblazycell-e306156b4b2be289.rlib" "/home/asynth/Downloads/krun/target/release/deps/libitertools-abf85a20baaf6e44.rlib" "/home/asynth/Downloads/krun/target/release/deps/libeither-988d070978ee7bfa.rlib" "/home/asynth/Downloads/krun/target/release/deps/libcexpr-ad9cef1f36db4ce6.rlib" "/home/asynth/Downloads/krun/target/release/deps/libnom-17131ae501c73cdc.rlib" "/home/asynth/Downloads/krun/target/release/deps/libmemchr-7e991f76cdf895e2.rlib" "/home/asynth/Downloads/krun/target/release/deps/libclang_sys-e04675ea3b7000f8.rlib" "/home/asynth/Downloads/krun/target/release/deps/liblibc-a7b87fc727e12efc.rlib" "/home/asynth/Downloads/krun/target/release/deps/libglob-a66cae7591c5ea2c.rlib" "/home/asynth/Downloads/krun/target/release/deps/libsyn-7dabef29cc3217be.rlib" "/home/asynth/Downloads/krun/target/release/deps/liblog-1cbc43085fe8c568.rlib" "/home/asynth/Downloads/krun/target/release/deps/libquote-d0c8e575ffd56fcf.rlib" "/home/asynth/Downloads/krun/target/release/deps/libproc_macro2-64e4eb46475333e1.rlib" "/home/asynth/Downloads/krun/target/release/deps/libunicode_ident-d88062f7ec531e31.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libproc_macro-884147087b7f0845.rlib" "/home/asynth/Downloads/krun/target/release/deps/liblazy_static-894d90a8711e785e.rlib" "/home/asynth/Downloads/krun/target/release/deps/libbitflags-69456e49b0e90a94.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-da896425a938a71e.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-6f87bd7e5722be42.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libobject-5d855ceebac0037d.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libmemchr-b4cb649d57d82e4c.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libaddr2line-dffaf3382e6ee2f0.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libgimli-beea8dd594b0693e.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_demangle-949318a32e4c2b38.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd_detect-97f99253389f2267.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libhashbrown-50c756ba037603d1.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-26b268045e3eb52f.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libminiz_oxide-80395705aee598b3.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libadler-357a057ae54339da.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-161716568f7d2038.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcfg_if-713ed766e3bf4617.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-d85b89cc419c8f0f.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-afe7fb16f3e0da84.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_core-206f03e79f0d86d7.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-077a73c34c19ca9c.rlib" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-d799153064afd554.rlib" "-Wl,-Bdynamic" "-lclang" "-lc" "-lm" "-lrt" "-lpthread" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/asynth/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/home/asynth/Downloads/krun/target/release/build/krun-sys-b7c1bf88974d194d/build_script_build-b7c1bf88974d194d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: warning: libLLVM.so.18.1, needed by /usr/lib64/libclang.so, not found (try using -rpath or -rpath-link)
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::Twine::print(llvm::raw_ostream&) const@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::raw_fd_ostream::seek(unsigned long)@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::Triple::getBigEndianArchVariant() const@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::sys::locale::isPrint(int)@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::SHA1::init()@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `LLVMInitializeXCoreTarget@LLVM_18.1'
          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::report_fatal_error(llvm::StringRef, bool)@LLVM_18.1'
          
          # -- more of the same errors --

          /nix/store/d58kbbwjsdp3n5l91sx5pgg5i3p7llyh-binutils-2.42/bin/ld: /usr/lib64/libclang.so: undefined reference to `llvm::sys::path::extension(llvm::StringRef, llvm::sys::path::Style)@LLVM_18.1'
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile `krun-sys` (build script) due to 1 previous error

@teohhanhui
Copy link
Author

Oh, I see now that /nix/store paths are in PATH... 😿

@D3fus
Copy link

D3fus commented Aug 21, 2024

@Pickles888 i used the nixpkgs-unstable to pull libclang in a nix shell. But it depends how your nixos is setuped.

nix shell nixpkgs#distrobox nixpkgs#llvm_18 nixpkgs-unstable#libclang

@teohhanhui
Copy link
Author

teohhanhui commented Aug 21, 2024

Heads up... I need to figure out how to make Steam / Proton (successfully) use the asahi driver with this new setup... So, gaming is mostly broken for now. Oops... 🙇

EDIT: Done.

@teohhanhui
Copy link
Author

@aqrln I see Prisma is hiring a Rust developer (again). Trying my luck once again... But geographical / timezone discrimination is very real, even if I'm open to relocation and/or willing to work within the specified timezones... 🙈

@naanlizard
Copy link

Anyone have any luck with dota 2? Considering taking the plunge with my macbook m1 max, but don't want to spend a day to find out it doesn't work haha

@MicahBird
Copy link

MicahBird commented Aug 24, 2024

Heads up to anyone encountering the "Something went wrong while attempting to sign you in. Please try again later." error with an error code of "c-ftac". I had to temporarily (you must leave it disabled) disable Steam Guard for Steam to actually sign in. Hope this helps!
Screenshot_20240824_163304

@waterdragon78
Copy link

I don't think I can make a pull request but very minor, could you add installing dhclient somewhere for fexfsrootfetcher? It needs it.

@waterdragon78
Copy link

Also for "unshare -pfr --user --mount --kill-child /usr/bin/bash" does anyone else get

basename: missing operand
Try 'basename --help' for more information.

@teohhanhui
Copy link
Author

teohhanhui commented Aug 26, 2024

@waterdragon78 We use dhcpcd, not dhclient which has been deprecated for a long time.

Please share the specific error messages if it doesn't work for you.

basename: missing operand

That's fine. Just ignore it.

@eetgeenappels
Copy link

Steam launches and I am able to navigate ui but consumes a ton of memory and eventually crashes. Got anyone an idea of how to fix it?

@teohhanhui
Copy link
Author

@eetgeenappels It's being fixed / will be fixed eventually. For now, just make sure you allocate enough zram (at least 16G), and keep an eye on the memory consumption with a widget or something... Not running a Web browser at the same time really helps.

@teohhanhui
Copy link
Author

If you end up here while fex-emu is not in the Fedora stable repo yet, you can download fex-emu-2408-1.fc40.aarch64.rpm from https://koji.fedoraproject.org/koji/buildinfo?buildID=2537498 and do

sudo dnf install ~/Downloads/fex-emu-2408-1.fc40.aarch64.rpm --exclude erofs-fuse --exclude erofs-utils

@m1m1k4tz
Copy link

Box64 is working on something called box32 which should be kinda like wow64 for Linux I would try packaging steam like you did for wine to use with box64 only 64 bit games would work until proton is updated to use wow64

@m1m1k4tz
Copy link

I’m also tracking this here ptitSeb/box64#1780

@Spidy123222
Copy link

Seems to be steam doesn’t boot with this setup anymore for me. Tried even a full reinstall with no fix. I tried to see if it was SElinux or steam runtime but couldn’t get it going.

run.sh[376]: steam-runtime-identify-library-abi --ldconfig-paths failed, falling back to ldconfig run.sh[376]: Warning: An unexpected error occurred while executing “/sbin/ldconfig -XNv”, the status was 139
mkdir: /home/asahiuser/local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by mkdir)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment