Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I build this? #68

Closed
landley opened this issue Oct 31, 2022 · 4 comments
Closed

How do I build this? #68

landley opened this issue Oct 31, 2022 · 4 comments

Comments

@landley
Copy link

landley commented Oct 31, 2022

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

@dslm4515
Copy link
Owner

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.

@dslm4515
Copy link
Owner

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.

@dslm4515
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants