Gentoo Archives: gentoo-user

From: 2b57 <2b57@××××××××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Clang/LLVM system profile
Date: Mon, 29 Nov 2021 02:02:17
1 Hello all,
3 I'm in the middle of development a proof-of-concept "native" Clang/LLVM profile – such profile, that stage3 produced by it will not even contain GCC and binutils at all (but of course you can install them later if needed). Why? Well, because Clang is in pretty good shape lately, you can compile kernel and elfutils even. Also just for fun!
5 The approach I've decided to take is to create virtual/toolchain and virtual/binutils packages with RDEPEND attributes set to gcc || clang and binutils || llvm. I've reached a point where modifications to ::gentoo/scripts/ are needed, and currently I've solved it with making an OverlayFS overlay, which combines both ::gentoo repo and my custom script. General idea is that once LLVM toolchain is in place (stage1), custom profile for stage2 masks gcc/binutils and virtuals get resolved by LLVM stuff. However, that is not the case; something goes wrong and it seems that binutils package is deeply embedded somewhere else...
7 Anyway, I'd appreciate any feedback and suggestions, since I'm sure I'm not the only one interested in this topic.
9 Grab the src here:
10 Forums thread: