#
…

2024-08-27

00:00chaos_princessProbably libc++ or something in gcc stage 2
00:48chadmed_ has joined #asahi-alt
01:00KxCORP5894000 has quit [Quit: Bye!]
01:00KxCORP5894000 has joined #asahi-alt
01:05chadmed_it was amd64 glibc, didnt realise you reset CC after x86 glibc was built :p
01:05chadmed_let's see now...
01:11chadmed_urgh now its going to be libstdc++ in gcc stage 2 isnt it...
01:12chadmed_this is so fucking stupid why cant we just have bin thunks
01:13chadmed_seems to be passing the lib build with no toolchain overrides but idk what this is going to do at runtime...
01:51chadmed_right looks like gcc stage 2 just silently dropped libstdc++
01:51chadmed_var/tmp/portage/app-emulation/FEX-2408/work/FEX-FEX-2408/ThunkLibs/GuestLibs/../libVDSO/Types.h:2:10: fatal error: 'cstdint' file not found
01:56runxiyui'm running Jared's gentoo install, and everything seems great, though i would want to ask whether people had luck with the openrc stage3's
01:57runxiyui'm not familiar with initramfs stuff other than arch's mkinitcpio
02:12chadmed_i use openrc
02:12chadmed_its fine everything works
02:47chadmed_no nvm libstdc++ does exist because i can compile cpp code with the toolchain, the fex ebuild just doesnt know where it is or something
04:41chadmed_ has quit [Remote host closed the connection]
04:49chadmed has quit [Quit: Konversation terminated!]
04:49chadmed has joined #asahi-alt
05:02aead has quit [Remote host closed the connection]
05:07aead has joined #asahi-alt
05:19Juest is now known as Guest1590
05:19Juest has joined #asahi-alt
05:25Guest1590 has quit [Ping timeout: 480 seconds]
05:29runxiyuI never did Asahi Gentoo before and I'm a bit scared (lol) so I'm following Jared's systemd guide for now
05:29runxiyuI'll switch it next reinstall when I get familiar enough with the initramfs-making process
05:30chadmed_ has joined #asahi-alt
05:31chadmed_runxiyu: jared's guide is now really outdated as we have moved to a new method where i publish uefi bootable installcds so if it still works its only by fluke
05:31chadmed_when you reinstall please follow the guide on the asahi github wiki
05:31runxiyuUhh I'm still compiling clang
05:31runxiyuHaven't even gotten to Linux
05:32runxiyuSo I'll go check the official one
05:37chadmed_ has quit [Quit: Page closed]
05:37opticron has quit [Read error: Connection reset by peer]
05:37opticron has joined #asahi-alt
05:52runxiyuchadmed: Could I have the checksum for install-arm64-asahi-latest.iso on your website?
05:56aead has quit [Remote host closed the connection]
05:57aead has joined #asahi-alt
06:15runxiyu> You have been eaten by a grue
06:35* chadmedneeds to find his zork ii disc
06:35chadmedrunxiyu: if you go to https://chadmed.au/pub/gentoo all the files are there
06:35chadmeddigests, sha256 sum, etc
06:40runxiyuAlso, "From here, you can simply follow the Gentoo Handbook for amd64, stopping only when it is time to install a kernel." almost made me unpack an amd64 stage3 ._.
06:41runxiyuAh, thanks!
06:41chaos_princessSo, thunks use kind of an insane build process where they use host headers for compiling x86 code. And i guess llvm systems install them in a different place to gcc ones
06:43chaos_princessWhere even _is_ cstdint on a llvm system?
06:43chadmedyeah i assume thats whats going on because thunkgen is just exploding in some random place and then throwing "cant find blah blah blah header" errors
06:46chadmedbut like
06:46chadmedi dont use libcxx
06:49chadmedusr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/ has my sepples headers?
06:50chadmedand clang knows about it because i can compile c++ code just fine
06:54chaos_princessCan you manually run the failing thunkgen command and add --verbose to it?
06:54chaos_princess(thunkgen is a clang plugin(?) and should accept clang flags)
06:55chadmedyeah i can just grab the invocation that failed from the build log
06:55chaos_princessthere should be some way to make it print what places it searches for headers in
06:57chadmedits looking for libcxx headers...
06:58zerdox has joined #asahi-alt
06:58chadmedsorry for three line multipaste
06:58chadmed /var/tmp/portage/app-emulation/FEX-2408/work/FEX-FEX-2408/ThunkLibs/GuestLibs/../include
06:58chadmed /usr/lib/llvm/18/bin/../../../../lib/clang/18/include
06:58chadmed /usr/local/include
06:58chadmed /usr/include
06:59chaos_princessAnd host clang?
07:00chadmedhmm let me try rebuilding the clang world with more LLVM targets
07:02chaos_princessNo, no need for now
07:02chadmedbut yes it is using the host clang
07:02chaos_princessjust tell me which places it searches when compiling arm 64 code
07:07chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14
07:07chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/aarch64-unknown-linux-gnu
07:07chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/backward
07:07chadmed /usr/lib/llvm/18/bin/../../../../lib/clang/18/include
07:07chadmed /usr/local/include
07:07chadmed /usr/include
07:08chadmedbasic program that includes cstdio and calls printf, compiled fine and runs (of course)
07:10chaos_princesscan you grep for gcc inside /etc/clang
07:11chadmedjust the standard stuff gentoo installs, the only non comment is --gcc-install-dir="/usr/lib/gcc/aarch64-unknown-linux-gnu/14"
07:12chaos_princessOk, and now take that thing and add it to tunkgen flags
07:14chadmedit worked
07:15chaos_princessWell, now to find out how to do it automatically i guess
07:15chaos_princesswhich file was the flag in?
07:15chadmedetc/clang/gentoo-gcc-install.cfg
07:16chadmedsurely we can just patch the flag into the relevant cmakelists file
07:17chadmedi have a bunch of other overrides locally that made it work here that _should_ keep working on pure gcc systems (just explicitly specifying flags and such instead of using whatever portage gives us)
07:18chaos_princessWell, we can't patch the flag itself, since it is dependent on gcc version, but we can fish it out of that file and pass it that way
07:19zerdox_ has joined #asahi-alt
07:19chaos_princessWhich other overrides did you have to pass?
07:20chadmedthis is what i did to the ebuilds
07:21chadmedthe thunks toolchain cmake file bit might not be necessary now that was just me bumming around
07:21chadmedactually let me clean that up
07:22zerdox has quit [Ping timeout: 480 seconds]
07:23zerdox_ is now known as zerdox
07:23chadmedoh and get rid of the echo "${CC}" heh
07:24runxiyuUh oops I can't install asahi-scripts because I can't access GitHub
07:24chadmedone second...
07:24chaos_princessWhy did you change X86_CFLAGS, what went wrong there?
07:25chadmedchaos_princess: it was pulling my clang cflags out of make.conf
07:25chaos_princessWell, yea, that's the idea
07:25flokli has quit [Ping timeout: 480 seconds]
07:25chadmedwell it was passing them to gcc which caused it to explode
07:26chaos_princessIt should have filtered out the ones that break it with that line.
07:26chadmedit didnt hehe :p
07:26chaos_princessWhich one did it fail to catch?
07:26chadmeda whole mess of them, could be because theyre in LDFLAGS though...
07:27chaos_princessyes, that would do it
07:27chadmedrunxiyu: sorry i actually cant help you with that :(
07:28chadmedi would prefer if we had a gitlab or forgejo or something that we control but it is what it is
07:29chadmedchaos_princess: so if we just add ${LDFLAGS} next to ${CFLAGS} that should do it right
07:29chadmedlet me just check lol
07:31chadmedyeah that worked
07:31chadmedjust need to tell thunkgen where the c++ headers are now
07:33chaos_princessadd --config=/path/to/that/file to thunkgen flags
07:38flokli has joined #asahi-alt
07:46chadmed>>> Installing (1 of 1) app-emulation/FEX-2408::asahi
07:46chadmedyou are so amazing
07:48chaos_princesswould you apply your changes yourself or do you want me to do it?
07:48chadmedif youre happy that theyre not going to explode gcc systems then i will apply
07:49chaos_princessthey probably won't
07:49chaos_princessjust replace the hardcoded triples with ${CTARGET} in the glibc export block and tentative lgtm
07:49chaos_princessi will check on my gcc system a bit later
07:50chadmedkrun is still janky rubbish but thats fine
07:50chadmedwe can merge it unstable
07:51chaos_princessthey have a branch that at least will stop it from randomly failing from start with EEXIST
07:52chadmedi dont think net via passt works properly upstream either
07:52chaos_princessyep, but that's a passt bug, downgrade it and it will work
07:52chadmedah right
07:53chaos_princessor do `echo 'nameserver 8.8.8.8' >/etc/resolv.conf` inside the vm and it should also work
08:01zerdox_ has joined #asahi-alt
08:03zerdox has quit [Ping timeout: 480 seconds]
08:05zerdox_ is now known as zerdox
08:20n3ph has joined #asahi-alt
09:00nst_ has quit [Ping timeout: 480 seconds]
09:10nst has joined #asahi-alt
09:13n3ph has quit [Ping timeout: 480 seconds]
09:20n3ph has joined #asahi-alt
10:07Dan___ has joined #asahi-alt
10:29n3ph has quit [Ping timeout: 480 seconds]
10:49n3ph has joined #asahi-alt
10:59n3ph has quit [Ping timeout: 480 seconds]
11:51Dan___ has quit [Ping timeout: 480 seconds]
11:55n3ph has joined #asahi-alt
12:12n3ph has quit [Ping timeout: 480 seconds]
12:13chadmedoh oops i knew that
12:13chadmedjust a sec
12:16chadmedfixed thanks
12:18zerdox has quit [Ping timeout: 480 seconds]
12:20chaos_princessthe if block around that patch is not useful, gcc systems also have that file in /etc/clang
12:21chadmeddoes unconditionally passing in the flag break anything then
12:21chadmedid assume not if clang is useable on these systems
12:22chaos_princessidk, fired off the compiles on my gcc system, we will know in like 15 mins
12:23chadmedlast trick if we want to tackle it would be amd64 mesa but meson's cross compilation system is thoroughly deranged and i dont want to touch it
12:23chadmedand also hopefully the asahi mesa just ends up vendored by either the fedora rootfs or a fex-blessed one
12:24chaos_princessfor rootfs, i kinda want to build a "steam-nano" one. Just enough libraries to start steam, and then use everything from steam runtime
12:25chadmedthat could be cool
12:25chadmedalso we need to install the binfmt handlers
12:26chaos_princesskrun installs binfmt handlers in the nested vm, but on host we need krun's launcher handlers
12:26chaos_princessand i do not want to "ship" krun yet
12:27chadmedyeah true and nor do i its a mess
12:37zerdox has joined #asahi-alt
12:44chaos_princessconfirming that it all builds on gcc
12:49chadmedokay sick ill yeet the if block
12:49chadmedtomorrow now though its almost 11pm
12:49j`eychadmed: so in an hour?
12:50chadmedim hopiing to be asleep before the top of the next hour :p
12:51chadmedalso the manifest for sommelier was wrong and i updated it
12:54chaos_princessthat might actually be bad, they could be generating that tarball on the fly and we might need to mirror it
12:57chadmedhmm yeah the size was pretty different...
12:57chadmedgoogle moment
13:00n3ph has joined #asahi-alt
13:01sam_you should always diff the tarballs in that case
13:02sam_not just regen
13:15chaos_princessill mirror the sommelier subtree to gh
13:16minecrell7544 has quit []
13:17minecrell7544 has joined #asahi-alt
13:26ipatch has quit [Ping timeout: 480 seconds]
13:50n3ph has quit [Ping timeout: 480 seconds]
14:00n3ph has joined #asahi-alt
14:06john-cabaj has joined #asahi-alt
14:20runxiyuCan I just follow https://wiki.gentoo.org/wiki/Power_management/Guide or are there peculiarities about power management here?
14:20runxiyu(I want power saving)
14:23r0ni has quit [Ping timeout: 480 seconds]
14:29n3ph has quit [Ping timeout: 480 seconds]
16:53hightower2 has quit [Ping timeout: 480 seconds]
17:08n3ph has joined #asahi-alt
17:28n3ph has quit [Ping timeout: 480 seconds]
17:57DannyB has joined #asahi-alt
18:03hightower2 has joined #asahi-alt
18:16DannyB has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
18:19DannyB has joined #asahi-alt
18:56harryheres has joined #asahi-alt
19:09r0ni has joined #asahi-alt
19:21zerdox has quit [Remote host closed the connection]
19:23zerdox has joined #asahi-alt
19:24chadmed has quit [Quit: Konversation terminated!]
19:24chadmed has joined #asahi-alt
19:28nela has quit [Quit: Ping timeout (120 seconds)]
19:29nela has joined #asahi-alt
19:56zerdox has quit [Remote host closed the connection]
19:58zerdox has joined #asahi-alt
20:05KxCORP5894000 has quit [Quit: Bye!]
20:06KxCORP5894000 has joined #asahi-alt
20:10zerdox has quit [Ping timeout: 480 seconds]
20:12zerdox has joined #asahi-alt
20:16n3ph has joined #asahi-alt
20:19hightower2 has quit [Remote host closed the connection]
20:19hightower2 has joined #asahi-alt
20:23harryheres has quit [Remote host closed the connection]
20:29n3ph_ has joined #asahi-alt
20:29n3ph has quit [Ping timeout: 480 seconds]
20:43Dan___ has joined #asahi-alt
20:53n3ph_ has quit [Read error: No route to host]
21:05minecrell7544 has quit []
21:05minecrell has joined #asahi-alt
21:24psykoseyea gitiles is unstable
21:28SalimTer- has joined #asahi-alt
21:29SalimTerryLi has quit [Ping timeout: 480 seconds]
22:38john-cabaj has quit [Ping timeout: 480 seconds]
22:39zerdox has quit [Ping timeout: 480 seconds]
23:17JayBeeFOSS has quit [Ping timeout: 480 seconds]
23:18JayBeeFOSS has joined #asahi-alt
…