1 Dear all,

3 I have made a self-hosting clang-based stage4 that some might want to

4 play with. LLVM/clang (4) are bootstrapped against libc++ and gcc is

5 uninstalled (custom crt{begin,end} from ELLCC, see /usr/local/hack/crt)

7 An update from the last version announced on the gentoo-musl list 1st of

8 May is that I now have LLVM-patched linux (4.11) sources in there (already

9 installed and symlinked to /usr/src/linux, default config binaries

10 installed to /boot)

13 The stage4 can be downloaded here:

17 6d7d68478ead5c80fa34553cf3fbff2af2916364d1aef0cbdae7147c8761aa81

19 stuff that might interest the LLVM project:

21 - the whole system is based on libedit

22 - some LLVMlinux patch sources:

24 full patch set from llvmlinux project + extras

27 minimal patch set

30 the minimal patch set + some fixes against noisy build

33 The linux 4.11 in /usr/local/portage-clang/sys-kernel/llvm-sources

34 is patched against the minimal patch set. For later kernel versions I

35 would most likely go for the llvmlinux-fresh set (alternatively, fixes

36 are upstream in the kernel or in clang-kernel-build).

37 Important note: I did not write any of those patches, just applied them.

39 Some thoughts:

40 - it would be really cool if an "official" custom crt package for

41 llvm/clang could be in portage

42 - it would be really cool if llvm-sources could be officially supported

43 since this would mean that clang actually can be (optionally) used as