Replies: 7 comments 3 replies
-
I guess the key is to get ravensys-gcc to build with musc-c instead of glibc. |
Beta Was this translation helpful? Give feedback.
-
I think it's the other way around. You can install glibc on musl-based distros and just use the normal glibc-based binary packages. |
Beta Was this translation helpful? Give feedback.
-
Sorry for being skeptical, but how would that work? On distributions like Void which offer two editions for glibc and musl respectively, /usr/lib/libc.so is either the former or the latter. Glibc chroots are supported where you put a glibc package somewhere in /$SOMEPREFIX/usr/libc.so and then chroot to it. Then glibc packages will work there. The same could be done the other way round, too. And musl is actually packaged by quite some glibc-based Linux distributions, but that contains the headers and the libc.a file for static linking. I don't think having two libcs as equals would work, would it? |
Beta Was this translation helpful? Give feedback.
-
in theory you could take it to the extreme. for example. llvm is building a c library that isn't mature yet. but if it reached the level of musl, in theory we could provide identical system libraries to ALL platforms (same math lib, same c lib, etc). it would become a true sandbox where every system could be configured generically (not freebsd, netbsd, linux, etc), just "raven". probably not practical (especially with wildcards like systemd) but its a fun thought experiment. |
Beta Was this translation helpful? Give feedback.
-
the choice between musl and glibc is not so straight-forward: |
Beta Was this translation helpful? Give feedback.
-
this is pretty crazy |
Beta Was this translation helpful? Give feedback.
-
from what I read, going musl everywhere would cause a lot of problems. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I suspect the musl library exists just fine on glibc based systems.
So it should be possible to make musl a port, one that is pulled in all linux builds with the USES=musl module.
In this case, glibc would not be part of the system root.
So all linux packages would be built against musl, which would allow packages to run all ALL linux platforms.
The only trick would be to force the major library version to be something unique so it wouldn't clash with the musl lib on musl-based systems.
Beta Was this translation helpful? Give feedback.
All reactions