#
#asahi-alt · 2023-04-13 03:10
chadmed_you should probably just install all of this as root instead of trying to kludge its CARGO_HOME to your local user tbh
#asahi-alt · 2023-04-13 03:09
chadmed_yeah i mean the install process
#asahi-alt · 2023-04-13 03:09
zerdoxi'll try to reinstall it...
#asahi-alt · 2023-04-13 03:09
zerdoxi haven't done any configurations to bindgen
#asahi-alt · 2023-04-13 03:08
chadmed_since its panicking in a dependency of bindgen
#asahi-alt · 2023-04-13 03:08
chadmed_it does look like youve misconfigured bindgen somewhere along the line though
#asahi-alt · 2023-04-13 03:07
chadmed_just running through the possibilities
#asahi-alt · 2023-04-13 03:06
zerdoxi've already set all this up. running make rustavailable as root gives me "rust is available "
#asahi-alt · 2023-04-13 03:05
zerdoxrustc 1.66.0 (69f9c33d7 2022-12-12)
#asahi-alt · 2023-04-13 03:05
chadmed_yeah so youll need to set up the rust stuff as root and source $CARGO_HOME/env as root
#asahi-alt · 2023-04-13 03:04
zerdoxyeah i am as root
#asahi-alt · 2023-04-13 03:04
chadmed_but as a standard user you dont have write perms to /usr/src so ofc its gonna fail writing bindings there
#asahi-alt · 2023-04-13 03:04
chadmed_you should mirror this as root, idk if genkernel tries to build the kernel as root
#asahi-alt · 2023-04-13 03:04
chadmed_also
#asahi-alt · 2023-04-13 03:03
chadmed_rustc --version from inside /usr/src/linux
#asahi-alt · 2023-04-13 03:03
zerdoxhow can i see it? i've pinned rustc version as in quick start and then added rust-src component
#asahi-alt · 2023-04-13 03:02
chadmed_what version of rustc have you set for the kernel source tree
#asahi-alt · 2023-04-13 03:02
chadmed_does seem like a bindgen issue at the very least
#asahi-alt · 2023-04-13 03:01
chadmed_right ok
#asahi-alt · 2023-04-13 03:01
zerdoxthat's normal case. lol
#asahi-alt · 2023-04-13 03:01
zerdoxi changed CARGO_HOME and RUSTUP_HOME
#asahi-alt · 2023-04-13 03:01
zerdoxi don't like littering my $HOME
#asahi-alt · 2023-04-13 03:00
chadmed_??? it should be in $HOME/.cargo/bin
#asahi-alt · 2023-04-13 02:59
zerdoxof course. /home/user/.local/share/bin/bindgen
#asahi-alt · 2023-04-13 02:59
chadmed_also just building the config in /proc/config.gz wont enable the gpu or dcp. you need to go and set those options in menuconfig.
#asahi-alt · 2023-04-13 02:58
chadmed_is bindgen in your PATH?
#asahi-alt · 2023-04-13 02:58
zerdoxnothing interesting in logs actually. i am using default asahi kernel config just with rust enabled. my rustc and bindgen versions are exact required. i am using 16 llvm
#asahi-alt · 2023-04-13 02:56
zerdoxchadmed_: https://transfer.sh/p2a7Hi/genkernel.log
#asahi-alt · 2023-04-13 02:50
zerdoxhttps://rust-for-linux.zulipchat.com/#narrow/stream/291565-Help/topic/make.20LLVM.3D1.20error
#asahi-alt · 2023-04-13 02:50
zerdoxhttps://www.spinics.net/lists/kernel/msg4750171.html
#asahi-alt · 2023-04-13 02:49
zerdoxsure. for now i'll send these 2 links
#asahi-alt · 2023-04-13 02:49
chadmed_can you paste the entire build log somewhere
#asahi-alt · 2023-04-13 02:49
chadmed_hmmm
#asahi-alt · 2023-04-13 02:48
chadmed_ah so you followed the quick start guide
#asahi-alt · 2023-04-13 02:48
zerdoxrustup
#asahi-alt · 2023-04-13 02:48
chadmed_did you install rust-bin or rust
#asahi-alt · 2023-04-13 02:48
chadmed_hm so the compiler is panicking interesting
#asahi-alt · 2023-04-13 02:46
zerdoxit doesn't matter if i run genkernel or make LLVM=1. i get thread panicked while compiling kernel
#asahi-alt · 2023-04-13 02:44
zerdoxchadmed i have not yet built anything
#asahi-alt · 2023-04-13 02:37
chadmed_so youve built the kernel already and youre just trying to make an initramfs?
#asahi-alt · 2023-04-13 02:35
zerdoxdo i need to do something different in asahi case? instead of --all-ramdisk-modules
#asahi-alt · 2023-04-13 02:33
chadmed_its not that hard
#asahi-alt · 2023-04-13 02:33
chadmed_i dont think genkernel really supports rusty kernels atm, youll have to do it manually
#asahi-alt · 2023-04-13 02:32
zerdoxchadmed_: trying to genkernel
#asahi-alt · 2023-04-13 02:31
chadmed_zerdox: at runtime?
#asahi-alt · 2023-04-13 02:03
zerdoxMichaelLong did you encounter `thread 'main' panicked at '"ftrace_branch_data_union_`? I am trying to compile the kernel finally. I found one guy in rust-for-linux zulip chat, he met this error 2 months ago. and i also googled some email from 5 april mentioning my error
#asahi-alt · 2023-04-12 22:11
zerdoxI've fixed my issue, thanks to https://github.com/Rust -for-Linux/linux/issues/934 i've emerged llvm and clang and set LIBCLANG_PATH variable. now i get "rust is available!"
#asahi-alt · 2023-04-12 18:49
MichaelLonghm interesting, I was now able to compile the kernel with rust support. Now using the latest bindgen (rustavailable complains alot). But now sddm crashes instantly.
#asahi-alt · 2023-04-12 18:28
mpswithout echo I've got this https://tpaste.us/d11L
#asahi-alt · 2023-04-12 18:26
zerdoxoh... ok. i also don't know if this correct. ok, ty anyways

plus ›