Skip to content

Build fails on Alpine Linux (a MUSL distro) #78

@knuxyl

Description

@knuxyl

Package tries to pull in I'm guessing glibc with rust's std package which is not available on musl distros (without workarounds that im not aware of). rustup automatically installs the musl variant of rustc and cargo so std is not available. A static build would be more appropriate instead of just linking musl.

   ...
   Compiling egui-winit v0.31.1
   Compiling amdgpu v1.0.12 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdgpu)
   Compiling amdgpu-config v1.0.14 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdgpu-config)
    Finished `release` profile [optimized] target(s) in 1m 03s
   Compiling iana-time-zone v0.1.63
   Compiling amdmond v1.0.14 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdmond)
   Compiling chrono v0.4.40
   Compiling amdmond-lib v1.0.11 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdmond-lib)
    Finished `release` profile [optimized] target(s) in 4.63s
   Compiling amdvold v1.0.14 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdvold)
    Finished `release` profile [optimized] target(s) in 2.09s
   Compiling amdgui-helper v1.0.14 (/home/knuxyl/Desktop/alpine/amdgpud/crates/amdgui-helper)
   Compiling sudo v0.6.0
    Finished `release` profile [optimized] target(s) in 1.07s
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.21.3
   Compiling bitflags v2.9.0
   Compiling pin-project-lite v0.2.16
   Compiling smallvec v1.15.0
   Compiling log v0.4.27
   Compiling linux-raw-sys v0.4.15
   Compiling futures-core v0.3.31
   Compiling parking v2.2.1
   Compiling futures-io v0.3.31
   Compiling fastrand v2.3.0
   Compiling memchr v2.7.4
   Compiling downcast-rs v1.2.1
   Compiling scoped-tls v1.0.1
   Compiling libc v0.2.172
   Compiling rustix v0.38.44
   Compiling serde v1.0.219
   Compiling crossbeam-utils v0.8.21
   Compiling typenum v1.18.0
   Compiling stable_deref_trait v1.2.0
   Compiling zerocopy v0.8.24
error[E0463]: can't find crate for `std`
  |
  = note: the `x86_64-unknown-linux-gnu` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-unknown-linux-gnu`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-unknown-linux-gnu` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-unknown-linux-gnu`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`
...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions