Re:Alpine Edge has switched to libressl
by bogomipz on Wednesday October 12, 2016 @11:05AM
(#12693511)
Can you remind me why LLVM/CLANG can't compile the linux kernel? Is it dependance on GCC extensions?
Re:Alpine Edge has switched to libressl
by valarauca1 on Wednesday October 12, 2016 @01:53PM
(#12695062)
TL;DR Yeah GCC specific compiler compiler extensions.
GCC has some platform specific symbols that are really just functions wrapping assembly. Most of this is related to crypto and AESNI (built in x86 AES operations). This breaks some crypto, which breaks some wifi/file system stuff.
XEN driver uses a GCC specific ASM macro for counting NUMA Nodes and CPU cores.
Dynamic compiling within the kernel for say BSD Packet Filtering JIT requires LLVM Compiler-RT have a custom wrapper. Also some libgcc specific header information.
Re:Alpine Edge has switched to libressl
by justincormack on Wednesday October 12, 2016 @12:51PM
(#12694475)
I think those are mostly fixed for C code, but assembly still has issues. Otherwise dependence on exact gcc behaviour is an issue.
The important points are that such a distro will quickly improve the situation of clang and libc++ compatibility across the board and exercise the alternative toolchain a lot more. In fact, there isn't much incompatible code out there, and it's been fixed mostly due to efforts of Debian, FreeBSD and of course Apple and Bitrig and Gentoo. FreeBSD is the leading force behind making lld a viable alternative to binutils ld and so far ThinLTO (which works with binutils, to be clear) is exclusive to llvm, so there's that.
https://aur.archlinux.org/packages/llvmlinux-git/
http://llvm.linuxfoundation.org/index.php/Main_Page