-
Notifications
You must be signed in to change notification settings - Fork 140
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
Musl support in CI #1190
Comments
@UebelAndre I never used musl - what would you need? Just |
I think |
Hi, any updates here? Is it possible to get an alpine image for use in CI? |
@UebelAndre I'm not very experienced with Alpine Linux yet. I just tried this:
Running
So it seems like this might not work. If you have an idea how we could make Bazel work under Alpine, I'd be happy to try it! If it helps you, I'm tracking a feature request that allows projects on Bazel CI to install arbitrary packages using |
I don't think you can use any of the released binaries from I attempted the bootstrapping myself but am out of my element here docker run --rm -it alpine:3.14 # Installing deps
apk add python3 bash openjdk11 openjdk8 gcc g++ musl-dev zip linux-headers
# Downloading Bazel
wget https://github.com/bazelbuild/bazel/releases/download/4.2.1/bazel-4.2.1-dist.zip
# Extracting it
mkdir bazel && unzip bazel-4.2.1-dist.zip -d bazel && cd bazel
# Bootstrapping
env EXTRA_BAZEL_ARGS="--host_javabase=@bazel_tools//tools/jdk:remote_jdk11 \
--javabase=@bazel_tools//tools/jdk:remote_jdk11 \
--host_java_toolchain=@bazel_tools//tools/jdk:toolchain_java11 \
--java_toolchain=@bazel_tools//tools/jdk:toolchain_java11" bash ./compile.sh This gets me as far as this error for which I have no solution or context for (been years since I worked with Java and never bootstrapped Bazel before).
Does this shine light any a potential missing flag or dependency? |
Friendly ping here. |
Are there any available hosts that support musl? If so, how would I go about configuring a
cc_toolchain
for it, otherwise, I suppose this would be a feature request to enable CI tests for musl (related to bazelbuild/rules_rust#829).The text was updated successfully, but these errors were encountered: