LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2023, 04:34 PM   #1
FossilizedDaemon
LQ Newbie
 
Registered: Jun 2023
Posts: 2

Rep: Reputation: 0
LLVM w/ Clang Cross-Compiling From Scratch?


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?
 
Old 12-12-2023, 09:29 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,874
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
I don't know Steams but I think your project is very interesting, I am rooting for you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] clang compilation of simple main.c puts both clang and gcc in .comment hoes Linux - Software 2 05-03-2019 05:55 AM
LXer: LLVM Clang 3.3, Early Clang 3.4 Benchmarks LXer Syndicated Linux News 0 06-23-2013 10:00 PM
LXer: LLVM project's 2.7 release out with a Clang LXer Syndicated Linux News 0 04-28-2010 09:31 PM
LXer: Benchmarking LLVM & Clang Against GCC 4.5 LXer Syndicated Linux News 0 04-21-2010 02:30 PM
LXer: LLVM 2.6 Released, Clang Is Now Production Ready LXer Syndicated Linux News 0 10-25-2009 05:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration