Hello ! I tried disabling lto and pipe, same result. I do use -O3, didn't try with -O2. Compile fails at the last steps and uses up all the RAM + swap (45GiB). An amount that freezes the whole desktop before failing the compilation. I don't really know which files are relevant to you for debugging, let me know and I'll send them. Emerge at the time of the fail :

RAM usage :
I would've tried to update to libclc 23 but Mesa seems to require 22
Hello ! I tried disabling lto and pipe, same result. I do use -O3, didn't try with -O2. Compile fails at the last steps and uses up all the RAM + swap (45GiB). An amount that freezes the whole desktop before failing the compilation. I don't really know which files are relevant to you for debugging, let me know and I'll send them. Emerge at the time of the fail :
I would've tried to update to libclc 23 but Mesa seems to require 22