dslm4515 / CMLFS

Clang-Built Musl Linux From Scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I build this?

landley opened this issue · comments

Tried emailing you but your account doesn't have obvious email address and user@github bounced because of "organizational settings"?

I cloned your "build llvm with musl" repo, but after reading the README I'm not entirely sure how to run the build? It seems to want me to download another one of your projects and... create a chroot to run it in maybe?

I have my own build script that was building a musl-based llvm Hexagon cross compiler (based off the build plumbing the Hexagon guys checked into the kvm test suite: their test involved building a compiler to build their vm image), but when I tried to run it again llvm died trying to link the rtsanitizer code to libc, which obviously didn't exist yet because you need a compiler to build the C library with. (There was also some discussion on the toybox mailing list about this in... July of last year, I think? I can dig up a link if you're curious.)

How do I build your toolchain project, and have you checked for regressions recently?

Rob

I initially used github to backup my projects after a USB flash drive failure (it just heats up, likely shorted itself somehow).
I never thought anyone would take interest in my work. Some people criticize my work on MLFS as waste of time because there are distros like Alpine Linux and Void Linux. According to those, I should redirect my efforts to help improve Ubuntu (a distro i hate for many reasons). Same can be said of my work on CMLFS, as OpenMandriva Linux uses LLVM/Clang instead of GCC.

When I started MLFS & CMLS, i did not make a dedicated email because, I thought no one would take interest. Apparently I was wrong. So direct email messages can be sent to mlfs.dev@gmail.com.

My work here on github is just a hobby. I work on it when I have time... usually at my job when work is slow. Lately, I've been doing a lot of over time and work just got busy for the last 4 months. I have seen your earlier issue request. I just haven't sat down.

Biggest issue I've noticed with others building my projects is the host system in use. I stopped using distros about 7 years ago. So, when I build any of my projects, my host is a LFS-derivative. I don't have those distro-based 'changes'... such as under ubuntu, 'sh' is linked to 'dash', but under LFS, 'sh' is linked to 'bash'. A lot of scripts that begin with the shebang, '#!/bin/sh' have "bashism" that require bash as the sh interpreter.

Essentially, CMLFS is built by building a 'cross toolchain' to build a sand-boxed toolchain that then builds CMLFS.

I also am also testing a new design of my s6+s6-rc bootscripts. S6 is hard to develop [for me] due to lack of examples and I couldn't setup a VM to test it faster.

I admit, CMLFS & MLFS are not for beginners. For CMLFS, begin the build by reading 0-Preparation in the top level of the repo directory.

I suggest doing a build of LFS first...which can then be used as the host to build CMLFS.