-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Include musl libc Release Binaries #3417
Comments
This would be a manageable CI addition if it weren't for the fact that we'd need a musl-LLVM for linking too, so another CI addition to our LLVM repo. |
A bit unrelated, but cross compilation should work right with an mtriple? Using dub:
It does pass the mtriple to the ldc2 commands, but it still links against glibc. I do have the development libraries for musl. Do I need to do anything extra to link against musl? |
Yeah, you'll need cross-compiled druntime/Phobos too and tell LDC to use the musl-gcc/clang for linking. See https://wiki.dlang.org/Cross-compiling_with_LDC. |
Here's a crazy idea: can ldc actually be a proxy script that invokes |
The example cmdlines in https://wiki.dlang.org/Building_LDC_runtime_libraries indicate that that's not really an option IMO. Once we have something like an |
If I were to add CI to create the binaries, what would be your preference is where to put it? I looked at the travis script and it is already quite large. The easiest way would be to use a docker image, but then it might be faster to compile just by cross compiling, but then testing... I've just been using the prebuilt LLVM binaries so I'd also need to look into your custom LLVM repo.
That sounds incredibly useful. Is it already being worked on? |
Travis is too slow, the only feasible option is Azure Pipelines, which generates all packages (LLVM + LDC) except for the AArch64 Linux ones. LLVM would be a prerequisite (our fork is needed to enable Android cross-compilation etc.) and would thus need to be handled first.
See #3345 (comment). |
@kinke : You might also want to consider Github as a CI, given it's quite fast, well integrated, easy to set up, and you don't use it yet. |
I've already dismissed that one, as there's no real advantage over Azure Pipelines AFAICT (but e.g. only half as many CPU cores for the Mac machines). |
Alpine package still 1.20, add musl release Binaries will be help a lot for alpine users. |
@JohanEngelen , |
Yes. working on it. |
On systems that use musl libc, the glibc binaries won't run. So it would be convenient, especially for scripts, to have a ldc2 binary built and released with musl libc. This would save anyone that needs to use ldc2 on a musl libc system from having to build the musl libc ldc2 binary themselves.
The text was updated successfully, but these errors were encountered: