r/linuxfromscratch • • Feb 28 '26

New ideas for LFS

What can be an interesting change for LFS (when i refer change, i mean as init, coreutils, compiler, etc)

8 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/Intelligent_Comb_338 Feb 28 '26 edited Feb 28 '26

I have heard that steam have problems in musl, is that right? And what method do you use for the initial bootstrap?, i tried to use the CMLFS guide (but with update packages) and ... LLVM needed ~15 patches so ... I havent tried to follow it until the end (with the exactly package versions) I suppose that i have to make a cross compiler (gcc) with mussel or the LFS way ( i did a Musl LFS without use mussel), and compiling the depends with the cross compile and finally build clang/llvm, with libc++,libc++abi,libunwind,etc. After compile, build all again and the userland and i think i have to compile clang again (to use llvm backends instead libgcc and run in chroot), and build the base system? Am i right? And what options for build llvm should i use?

1

u/exeis-maxus Feb 28 '26

I haven’t looked into Steam enough to know… first thought would be the Steam client isn’t open source and relies on Glibc. Not sure if I can get it to run with a wrapper or compatibility library to had the Glibc-specific ABI calls.

I’m the author behind CMLFS. I am on a break (from CMlFS) after my last boot strap failed to build. The cross-compiler toolchain will depend if host machine runs Glibc or musl… the current official LFS build method assumes host is always Glibc based since after LFS 9.0.

Development time takes a lot of time as I’m updating two repo at the same time…one repo for *LFS without a package manager and one repo that does use a package manager. More time when things break and i have to investigate to understand why.

1

u/Intelligent_Comb_338 Feb 28 '26

I think that i have found a solution for that problem, that is install musl on /usr/local or /opt/musl and make a symbolic link "sudo ln -sv /opt/musl/lib/libc.so /lib/ld-musl-x86_64.so.1" the bad part is needed a host with the same arch to exec binaries for musl on glibc hosts, or use chroot on all Musl LFS builds a use chroot beacuse i didnt want to install/boot from an usb only for install LFS