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

perf: docker use musl #719

Closed
wants to merge 1 commit into from
Closed

Conversation

andrewgazelka
Copy link
Collaborator

@andrewgazelka andrewgazelka commented Dec 14, 2024

Issue:

1.07 error: failed to run custom build command for `flecs_ecs_sys v0.1.2 (https://github.com/Indra-db/Flecs-Rust#24b5a0de)`
61.07
61.07 Caused by:
61.07   process didn't exit successfully: `/app/target/release-full/build/flecs_ecs_sys-d33e12337364c9c5/build-script-build` (exit status: 101)
61.07   --- stdout
61.07   cargo:rerun-if-changed=src/flecs.h
61.07   cargo:rerun-if-changed=src/flecs.c
61.07   cargo:rerun-if-changed=src/flecs_rust.h
61.07   cargo:rerun-if-changed=src/flecs_rust.c
61.07   cargo:rerun-if-changed=build.rs
61.07   OUT_DIR = Some(/app/target/release-full/build/flecs_ecs_sys-f23c7681e8b422aa/out)
61.07   TARGET = Some(aarch64-unknown-linux-musl)
61.07   HOST = Some(aarch64-unknown-linux-musl)
61.07   cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-musl
61.07   CC_aarch64-unknown-linux-musl = None
61.07   cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_musl
61.07   CC_aarch64_unknown_linux_musl = None
61.07   cargo:rerun-if-env-changed=HOST_CC
61.07   HOST_CC = None
61.07   cargo:rerun-if-env-changed=CC
61.07   CC = None
61.07   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
61.07   RUSTC_WRAPPER = None
61.07   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
61.07   CRATE_CC_NO_DEFAULTS = None
61.07   DEBUG = Some(false)
61.07   CARGO_CFG_TARGET_FEATURE = Some(neon)
61.07   cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-musl
61.07   CFLAGS_aarch64-unknown-linux-musl = None
61.07   cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_musl
61.07   CFLAGS_aarch64_unknown_linux_musl = None
61.07   cargo:rerun-if-env-changed=HOST_CFLAGS
61.07   HOST_CFLAGS = None
61.07   cargo:rerun-if-env-changed=CFLAGS
61.07   CFLAGS = None
61.07   CARGO_ENCODED_RUSTFLAGS = Some(-Zshare-generics=y-Zthreads=8)
61.07   cargo:rerun-if-env-changed=AR_aarch64-unknown-linux-musl
61.07   AR_aarch64-unknown-linux-musl = None
61.07   cargo:rerun-if-env-changed=AR_aarch64_unknown_linux_musl
61.07   AR_aarch64_unknown_linux_musl = None
61.07   cargo:rerun-if-env-changed=HOST_AR
61.07   HOST_AR = None
61.07   cargo:rerun-if-env-changed=AR
61.07   AR = None
61.07   cargo:rerun-if-env-changed=ARFLAGS_aarch64-unknown-linux-musl
61.07   ARFLAGS_aarch64-unknown-linux-musl = None
61.07   cargo:rerun-if-env-changed=ARFLAGS_aarch64_unknown_linux_musl
61.07   ARFLAGS_aarch64_unknown_linux_musl = None
61.07   cargo:rerun-if-env-changed=HOST_ARFLAGS
61.07   HOST_ARFLAGS = None
61.07   cargo:rerun-if-env-changed=ARFLAGS
61.07   ARFLAGS = None
61.07   cargo:rustc-link-lib=static=flecs
61.07   cargo:rustc-link-search=native=/app/target/release-full/build/flecs_ecs_sys-f23c7681e8b422aa/out
61.07
61.07   --- stderr
61.07   thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.70.1/lib.rs:622:27:
61.07   Unable to find libclang: "the `libclang` shared library at /usr/lib/llvm19/lib/libclang.so.19.1.4 could not be opened: Dynamic loading not supported"
61.07   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
61.07 warning: build failed, waiting for other jobs to finish...
------
Dockerfile:48
--------------------
  47 |     ARG CARGO_HOME
  48 | >>> RUN --mount=type=cache,target=${CARGO_HOME}/registry \
  49 | >>>     --mount=type=cache,target=${CARGO_HOME}/git \
  50 | >>>     --mount=type=cache,target=/app/target \
  51 | >>>     cargo build --profile release-full --frozen && \
  52 | >>>     mkdir -p /app/build && \
  53 | >>>     cp target/release-full/hyperion-proxy /app/build/ && \
  54 | >>>     cp target/release-full/tag /app/build/
  55 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cargo build --profile release-full --frozen &&     mkdir -p /app/build &&     cp target/release-full/hyperion-proxy /app/build/ &&     cp target/release-full/tag /app/build/" did not complete successfully: exit code: 101

@github-actions github-actions bot added the perf label Dec 14, 2024
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@andrewgazelka
Copy link
Collaborator Author

I am closing this because flecs currently doesn't support it. Hopefully, in the future, this issue will be fixed. Maybe I will add a bounty to it at some point.

@andrewgazelka
Copy link
Collaborator Author

meh can't get it to work

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

Successfully merging this pull request may close these issues.

1 participant