<phoebos>
i've been set -x'ing gcc's configure script trying to find why no matter what i did it wouldn't build libsanitizer
<testuser[m]>
it took me hours to figure out when i wanted to use them
<testuser[m]>
i checked arch's build and saw no extra flags
<testuser[m]>
lol
<phoebos>
the only documentation i could find was google's wiki page which doesn't explain anything
<testuser[m]>
bruh shit they made compiler-rt depend on the lolvm monorepo
<testuser[m]>
it needs some cmake modules from there
<testuser[m]>
but i build both seperately
mahmutov has joined #kisslinux
<phoebos>
and you build clang with llvm?
<phoebos>
oh nice oom just killed my terminal
<testuser[m]>
phoebos: yeah
<phoebos>
nice
<phoebos>
testuser[m]: building gcc libsanitizer errors on #include <fstab.h>
<phoebos>
is that a glibc thing
<testuser[m]>
indeed
<testuser[m]>
tf does it need that for
<testuser[m]>
bruh
<testuser[m]>
lol it even uses obstack and stuff
<testuser[m]>
just use the lolvm sanitizers it only required 1 sed to build
<phoebos>
lol
<phoebos>
ok
jedavies has quit [Read error: Connection reset by peer]
<phoebos>
i should have updated to llvm 14 before building, but nevermind
rLapz has joined #kisslinux
an3223 has joined #kisslinux
rLapz33 has joined #kisslinux
rLapz has quit [Quit: Client closed]
rLapz33 has quit [Client Quit]
rLapz has joined #kisslinux
rLapz has quit [Quit: Leaving]
rLapz has joined #kisslinux
rLapz has joined #kisslinux
rLapz has quit [Changing host]
rLapz666 has joined #kisslinux
rLapz666 has quit [Client Quit]
rLapz has quit [Quit: Leaving]
rLapz has joined #kisslinux
rLapz has quit [Changing host]
rLapz has joined #kisslinux
<phoebos>
testuser[m]: your build worked, and asan works, except there are some symbols not found: pthread_mutexattr_getprioceiling, pthread_mutexattr_getrobust_np, __cxa_throw, __cxa_rethrow_primary_exception, swift_demangle
<testuser[m]>
Bruh what
<testuser[m]>
What command outputs that
rLapz has quit [Quit: Leaving]
<phoebos>
ldd on a binary compiled with -fsanitize=address
<phoebos>
also running the binary with LSAN_OPTIONS="verbosity=1:log_threads=1" env
<testuser[m]>
How did asan even get built if it links to non existent symbols
<phoebos>
failed to intercept 'pthread_mutexattr_getprioceiling' etc
<testuser[m]>
ig just try some stuff that asan checks for and see if it's detcted
<phoebos>
seems to work anyway
<phoebos>
can detect stuff, it's probably fine
<phoebos>
just strange
<testuser[m]>
pthread_mutexattr_getrobust_np doesn't exist in musl so it can't "intercept" it ig and the cxa stuff is for c++ idk why that's showing up