#
#asahi-alt · 2024-08-27 07:29
chadmedchaos_princess: so if we just add ${LDFLAGS} next to ${CFLAGS} that should do it right
#asahi-alt · 2024-08-27 07:28
chadmedi would prefer if we had a gitlab or forgejo or something that we control but it is what it is
#asahi-alt · 2024-08-27 07:27
chadmedrunxiyu: sorry i actually cant help you with that :(
#asahi-alt · 2024-08-27 07:27
chaos_princessyes, that would do it
#asahi-alt · 2024-08-27 07:26
chaos_princessAh
#asahi-alt · 2024-08-27 07:26
chadmeda whole mess of them, could be because theyre in LDFLAGS though...
#asahi-alt · 2024-08-27 07:26
chaos_princessWhich one did it fail to catch?
#asahi-alt · 2024-08-27 07:26
chadmedit didnt hehe :p
#asahi-alt · 2024-08-27 07:26
chaos_princessIt should have filtered out the ones that break it with that line.
#asahi-alt · 2024-08-27 07:25
chadmedwell it was passing them to gcc which caused it to explode
#asahi-alt · 2024-08-27 07:25
chaos_princessWell, yea, that's the idea
#asahi-alt · 2024-08-27 07:25
chadmedchaos_princess: it was pulling my clang cflags out of make.conf
#asahi-alt · 2024-08-27 07:24
chaos_princessWhy did you change X86_CFLAGS, what went wrong there?
#asahi-alt · 2024-08-27 07:24
chadmedone second...
#asahi-alt · 2024-08-27 07:24
chadmedoh :(
#asahi-alt · 2024-08-27 07:24
runxiyuUh oops I can't install asahi-scripts because I can't access GitHub
#asahi-alt · 2024-08-27 07:23
chadmedoh and get rid of the echo "${CC}" heh
#asahi-alt · 2024-08-27 07:22
chadmedhttps://0x0.st/XtjX.patch
#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:19
chaos_princessWhich other overrides did you have to pass?
#asahi-alt · 2024-08-27 07:18
chadmedyeah
#asahi-alt · 2024-08-27 07:18
chaos_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
#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
chaos_princessYes
#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:15
chaos_princesswhich file was the flag in?
#asahi-alt · 2024-08-27 07:15
chaos_princessWell, now to find out how to do it automatically i guess
#asahi-alt · 2024-08-27 07:14
chadmedit worked
#asahi-alt · 2024-08-27 07:12
chaos_princessOk, and now take that thing and add it to tunkgen flags
#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:10
chaos_princesscan you grep for gcc inside /etc/clang
#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
chaos_princessjust tell me which places it searches when compiling arm 64 code
#asahi-alt · 2024-08-27 07:02
chadmedbut yes it is using the host clang
#asahi-alt · 2024-08-27 07:02
chaos_princessNo, no need for now
#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:59
chaos_princessAnd host clang?
#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

plus ›