#asahi-alt · 2024-08-27 07:21
chadmedactually let me clean that up#asahi-alt · 2024-08-27 07:21
chadmedthe thunks toolchain cmake file bit might not be necessary now that was just me bumming around#asahi-alt · 2024-08-27 07:20
chadmedthis is what i did to the ebuilds #asahi-alt · 2024-08-27 07:20
chadmedhttps://0x0.st/XtjH.patch#asahi-alt · 2024-08-27 07:18
chadmedyeah#asahi-alt · 2024-08-27 07:17
chadmedi 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) #asahi-alt · 2024-08-27 07:16
chadmedsurely we can just patch the flag into the relevant cmakelists file #asahi-alt · 2024-08-27 07:15
chadmedetc/clang/gentoo-gcc-install.cfg#asahi-alt · 2024-08-27 07:14
chadmedit worked#asahi-alt · 2024-08-27 07:11
chadmedjust the standard stuff gentoo installs, the only non comment is --gcc-install-dir="/usr/lib/gcc/aarch64-unknown-linux-gnu/14"#asahi-alt · 2024-08-27 07:08
chadmedbasic program that includes cstdio and calls printf, compiled fine and runs (of course)#asahi-alt · 2024-08-27 07:07
chadmed /usr/include#asahi-alt · 2024-08-27 07:07
chadmed /usr/local/include#asahi-alt · 2024-08-27 07:07
chadmed /usr/lib/llvm/18/bin/../../../../lib/clang/18/include#asahi-alt · 2024-08-27 07:07
chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/backward#asahi-alt · 2024-08-27 07:07
chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/aarch64-unknown-linux-gnu#asahi-alt · 2024-08-27 07:07
chadmed /usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14#asahi-alt · 2024-08-27 07:02
chadmedbut yes it is using the host clang#asahi-alt · 2024-08-27 07:00
chadmedhmm let me try rebuilding the clang world with more LLVM targets#asahi-alt · 2024-08-27 06:58
chadmed /usr/include#asahi-alt · 2024-08-27 06:58
chadmed /usr/local/include#asahi-alt · 2024-08-27 06:58
chadmed /usr/lib/llvm/18/bin/../../../../lib/clang/18/include#asahi-alt · 2024-08-27 06:58
chadmed /var/tmp/portage/app-emulation/FEX-2408/work/FEX-FEX-2408/ThunkLibs/GuestLibs/../include#asahi-alt · 2024-08-27 06:58
chadmedsorry for three line multipaste#asahi-alt · 2024-08-27 06:57
chadmedits looking for libcxx headers...#asahi-alt · 2024-08-27 06:55
chadmedyeah i can just grab the invocation that failed from the build log#asahi-alt · 2024-08-27 06:50
chadmedand clang knows about it because i can compile c++ code just fine#asahi-alt · 2024-08-27 06:49
chadmedusr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14/ has my sepples headers? #asahi-alt · 2024-08-27 06:46
chadmedi dont use libcxx#asahi-alt · 2024-08-27 06:46
chadmedbut like#asahi-alt · 2024-08-27 06:43
chadmedyeah 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#asahi-alt · 2024-08-27 06:35
chadmeddigests, sha256 sum, etc#asahi-alt · 2024-08-27 06:35
chadmedrunxiyu: if you go to https://chadmed.au/pub/gentoo all the files are there#asahi-alt · 2024-08-27 06:35
chadmedneeds to find his zork ii disc#asahi-alt · 2024-08-26 12:59
chadmedsam_: could you take another look at https://github.com/chadmed/asahi-overlay/pull/106 for chaos_princess if you get a few spare minutes? ill probably smoke test and merge tomorrow anyway provided it works#asahi-alt · 2024-08-25 10:18
chadmedanyway building the kernel witl clang works again, it was just CONFIG_DEBUG_INFO_BTF#asahi-alt · 2024-08-25 10:17
chadmedor better yet just pinch the rootfs wholesale if it already has the thunks loaded in #asahi-alt · 2024-08-25 10:16
chadmedso i think at least in the short term we should probably just do surgery on the fedora rpm with the thunklibs in it#asahi-alt · 2024-08-25 10:15
chadmedin any case i dont think we can really ship anything that hard depends on this working tbh #asahi-alt · 2024-08-25 10:14
chadmedhmmm yeah okay#asahi-alt · 2024-08-25 10:03
chadmedi tried putting CC="" and unset CC (and the rest of the toolchain) in an env but it did nothing #asahi-alt · 2024-08-25 10:03
chadmedyeah :/#asahi-alt · 2024-08-25 06:39
chadmedi might need something special in env #asahi-alt · 2024-08-25 06:38
chadmedhttps://bugs.gentoo.org/938482#asahi-alt · 2024-08-25 06:38
chadmedi filed a bug about it, it does seem to be related to ^#asahi-alt · 2024-08-25 06:29
chadmedcould be crossdev being intolerant of clang as the host system compiler but ive got my gcc env override set for cross-x86_64-unknown-linux-gnu/* (and an explicit amd64 one for glibc) and it still explodes#asahi-alt · 2024-08-25 06:24
chadmedyeah idk #asahi-alt · 2024-08-25 06:23
chadmedissue seems to be that amd64 glibc expects <asm/prctl.h> in /usr/include/ which is not the case for arm64 and it is not looking in /usr/${CHOST}/usr/include/#asahi-alt · 2024-08-25 06:22
chadmedno im just trying to get crossdev to set up amd64/gcc#asahi-alt · 2024-08-25 03:29
chadmedif clang doesnt work at all then we can either build them on an amd64 machine and host them somewhere or just pinch them out of the fedora rpm