LLVM w/ Clang Cross-Compiling From Scratch?
by FossilizedDaemon from LinuxQuestions.org on (#6H2KT)
Hello everyone,
I am working on a project that is similar to LinuxFromScratch and had two quick questions. I have been wanting to move to LLVM w/ Clang and musl for a while due to it's improved code correctness and being sooner to adopt BSD improvements to C in the past (though I know this has improved somewhat with glibc and GCC). I have been out of the loop for awhile with LLVM news and wanted to know if it has improved with respect to gaming support? For the most part everything I use can be compiled with LLVM w/ clang and musl libc now, but I know when I was looking last time Steam needed some error handling thing from glibc to run properly on Linux (or something to that effect). I looked around to see how much this has changed, but cannot find concise answers. Does anyone here have more knowledge on the subject?
Barring the above questions answer I wanted to inquire about modern recommendations for cross-compiling LLVM w/ clang and musl libc to build a Linux system from scratch. Finding solid instructions for a GNU C/C++ toolchain is fairly simple, but for the life of me I cannot make sense of LLVM's documentation and all of the blog posts I find are older. I do not need each step typed out, but with how new LLVM w/ clang and musl libc are to me it is challenging to just "jump right in" without some guidance from more knowledgeable people and no one I know uses LLVM w/ clang and musl libc. Additionally, has anyone tried setting up a system with LLVM w/ clang and musl libc, *but* having a chroot for GNU's toolchain to build specific software that either needs glibc or doesn't fully work as needed without it?
I am working on a project that is similar to LinuxFromScratch and had two quick questions. I have been wanting to move to LLVM w/ Clang and musl for a while due to it's improved code correctness and being sooner to adopt BSD improvements to C in the past (though I know this has improved somewhat with glibc and GCC). I have been out of the loop for awhile with LLVM news and wanted to know if it has improved with respect to gaming support? For the most part everything I use can be compiled with LLVM w/ clang and musl libc now, but I know when I was looking last time Steam needed some error handling thing from glibc to run properly on Linux (or something to that effect). I looked around to see how much this has changed, but cannot find concise answers. Does anyone here have more knowledge on the subject?
Barring the above questions answer I wanted to inquire about modern recommendations for cross-compiling LLVM w/ clang and musl libc to build a Linux system from scratch. Finding solid instructions for a GNU C/C++ toolchain is fairly simple, but for the life of me I cannot make sense of LLVM's documentation and all of the blog posts I find are older. I do not need each step typed out, but with how new LLVM w/ clang and musl libc are to me it is challenging to just "jump right in" without some guidance from more knowledgeable people and no one I know uses LLVM w/ clang and musl libc. Additionally, has anyone tried setting up a system with LLVM w/ clang and musl libc, *but* having a chroot for GNU's toolchain to build specific software that either needs glibc or doesn't fully work as needed without it?