Skip to content

Nightly builds fail - libLLVM issue #1650

Open
@axos88

Description

@axos88

Checklist

Describe your issue

#1496 seems related.

  failed to run rustc: rustc: error while loading shared libraries: libLLVM.so.19.1-rust-1.86.0-nightly: cannot open shared object file: No such file or directory

Repro:

  • Generate new project
  • Add rustls = { version = "*", default-features=false, features=["ring"] } as dependency
  • rustup default nightly
  • run cross build --target arm-unknown-linux-gnueabi
$ cross  build --target  arm-unknown-linux-gnueabi
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.87.0-nightly (43a2e9d2c 2025-03-17)

info: checking for self-update
   Compiling libc v0.2.171
error: failed to run custom build command for `libc v0.2.171`

Caused by:
  process didn't exit successfully: `/target/debug/build/libc-ae77d5e3ffd276c6/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs

  --- stderr

  thread 'main' panicked at /home/akos/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.171/build.rs:147:9:
  failed to run rustc: rustc: error while loading shared libraries: libLLVM.so.20.1-rust-1.87.0-nightly: cannot open shared object file: No such file or directory

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

What target(s) are you cross-compiling for?

arm-unknown-linux-gnueabi

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5 (36c0d78 2025-03-08)

Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions