#asahi-alt · 2023-04-12 18:25
mpsnot sure if it is correct#asahi-alt · 2023-04-12 18:25
mpsthat is what I got https://tpaste.us/lgg6#asahi-alt · 2023-04-12 18:22
zerdoxedit scripts/rust_is_available. inside get_canonical_version put echo. i would like to see what exactly $1, $2 and $3 are#asahi-alt · 2023-04-12 18:20
mpshm, how I could show them#asahi-alt · 2023-04-12 18:19
zerdoxmps: could you echo these variables in the script? just curious#asahi-alt · 2023-04-12 18:18
zerdoxyeah. i did. it doesn't make any changes for me#asahi-alt · 2023-04-12 17:42
mpsthis works for me#asahi-alt · 2023-04-12 17:41
mpsmake LLVM=1 rustavailable#asahi-alt · 2023-04-12 17:35
zerdoxi can see in rust_is_available.sh that $1, $2 and $3 variables are missing inside get_canonical_version. where do these variables come from?#asahi-alt · 2023-04-12 17:32
zerdoxhi guys. i am trying to `make rustavailable` but get syntax error on line 21 (100000 * + 100 * +). does anyone have any info about this? i've installed rustup with all building requirements and have exact needed versions of rustc and bindgen#asahi-alt · 2023-04-12 06:35
steffen[m]Does anyone of the nixos users have a fix for the edge kernel build with newer nixpkgs?#asahi-alt · 2023-04-11 01:24
sam_-(you already pay the cost of trying to make ebuilds handle the deps & selection at build time work correctly)#asahi-alt · 2023-04-11 01:24
sam_-and in fact, we already suffer the pain from it being semi-slotted, because of rust and rust-bin being coinstallable#asahi-alt · 2023-04-11 01:24
sam_-i need to ask gyakovlev about why rust isn't actually slotted because.. it feels natural for it to be#asahi-alt · 2023-04-11 01:23
sam_-there's an ebuild for bindgen right now but I have no idea if it actually works for much yet#asahi-alt · 2023-04-10 23:01
jannaubindgen is hopefully less of a problem once the kernel is updated for allow/block-list#asahi-alt · 2023-04-10 23:00
chadmed_sam_- might have some ideas#asahi-alt · 2023-04-10 23:00
jannauah, rust is slotted but virtual/rust and rust-bin are not#asahi-alt · 2023-04-10 23:00
chadmed_with the gpu coming down the pipeline ill start thinking a bit harder about it#asahi-alt · 2023-04-10 22:59
chadmed_"rust" USE flag in our ebuild #asahi-alt · 2023-04-10 22:59
chadmed_i think i put an RDEPEND on a specific version of rust behind the #asahi-alt · 2023-04-10 22:58
chadmed_it doesnt really matter for us (our systems are very fast) but bootstrapping even one version of rust is a tall order for like 90% of systems#asahi-alt · 2023-04-10 22:57
chadmed_rustc is slotted now i think?#asahi-alt · 2023-04-10 22:55
jannaunormal dependencies are probably the better fit but would require slotted rustc/bindgen#asahi-alt · 2023-04-10 22:54
jannauit's also a mess because rustc/bindgen are neither build nor normal dependencies#asahi-alt · 2023-04-10 22:43
chadmed_so its a mess #asahi-alt · 2023-04-10 22:43
chadmed_but theres already one for cbindgen (different) because firefox uses it#asahi-alt · 2023-04-10 22:43
chadmed_ive been racking my brain trying to think of how we handle this for packaging rusty sources upstream and i think the easiest way is make a rust ebuild for bindgen#asahi-alt · 2023-04-10 22:42
chadmed_MichaelLong: we're all learning, dont sweat it :P#asahi-alt · 2023-04-10 21:07
MichaelLongchadmed, a thx for the clarification. that stuff is totally new for me, just trying to get it working.#asahi-alt · 2023-04-10 20:52
chadmedbut ive been using the packaged ~arm64 rustc for ages now and it works fine#asahi-alt · 2023-04-10 20:52
chadmedMichaelLong: for a while the kernel rust was unstable and new versions would throw errors every week so the recommendation was to have rustup override your system toolchain #asahi-alt · 2023-04-10 18:16
MichaelLongwas I was also almost going that way but looking at packages.gentoo.org virtual/rust is already stable at 1.66.1. the ashai-kernel I use (based on 6.2.0) wants 1.66.0#asahi-alt · 2023-04-10 18:15
MichaelLongbut why?#asahi-alt · 2023-04-10 18:15
ChaosPrincessthis is all brittle and janky, but technically works#asahi-alt · 2023-04-10 18:14
ChaosPrincessim using emerged rust for stuff that needs it to build and a separate rust for kernel (that rust is not in PATH unless im compiling kernels)#asahi-alt · 2023-04-10 18:14
zerdoxChaosPrincess ty. i guess i will remove emerged rust and will use rustup because i already cannot downgrade rustc#asahi-alt · 2023-04-10 18:13
MichaelLongzerdox, I fear it is :)#asahi-alt · 2023-04-10 18:13
zerdoxMichaelLong: i am on gentoo. i would not like to compile kernel but it's maybe required for me to graphics work correctly#asahi-alt · 2023-04-10 18:10
MichaelLong(don't have the exact failure message right now as I shut down the laptop for today)#asahi-alt · 2023-04-10 18:08
MichaelLongI used this https://codentium.com/building-a-linux-kernel-with-rust-support-on-gentoo/ (now older) article, but stopped as I have rust 1.66.1 (the kernel would like to have 1.66.0) and bindgen is available in portage in version 0.56.0 so I was save. I was able to overcome the "make LLVM=1 rustavailable" stage and can select rust in the kernel eventually but compiling the kernel failed very very early complaingin rust having some "indent" error #asahi-alt · 2023-04-10 18:08
MichaelLongin some kernel include file.#asahi-alt · 2023-04-10 18:00
ChaosPrincesswhoever wrote the makefile that way is a bad person, :P, having a bunch of drivers randomly vanish because you dared to run make menuconfig w/o rust in path is terrible#asahi-alt · 2023-04-10 17:59
ChaosPrincesszerdox: make sure rustc is the version it wants and is in PATH, also bindgen is the correct version#asahi-alt · 2023-04-10 17:31
MichaelLongzerdox, so your're also on gentoo or another distribution?#asahi-alt · 2023-04-10 17:26
zerdoxand thank you#asahi-alt · 2023-04-10 17:26
zerdoxok so for now i will just wait for your ping...#asahi-alt · 2023-04-10 17:18
zerdoxit's get_canonical_version which uses $1-3 inside which are empty for some reason#asahi-alt · 2023-04-10 17:12
zerdoxexactly i get line 21: 100000 * + 100 * + : syntax error: operand expected#asahi-alt · 2023-04-10 17:12
MichaelLongzerdox, no problem I've another error compiling the kernel with the rust bindings. don't have it at hand right now.