Skip to content

Static Builds Using MUSL Target Fail #322

Closed
@sempervictus

Description

@sempervictus

When using the following to build:

  pacman -Sy rustup --noconfirm
  TC="nightly-2019-12-05"
  rustup install "$TC"
  rustup target add x86_64-unknown-linux-musl --toolchain="$TC"
  rustup component add rustc-dev --target=x86_64-unknown-linux-musl --toolchain="$TC"

the rustc_macros crate cannot be found:

   Compiling rand_jitter v0.1.4
error[E0463]: can't find crate for `rustc_macros` which `rustc` depends on
 --> c2rust-ast-builder/src/lib.rs:2:1
  |
2 | extern crate rustc;
  | ^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `c2rust-ast-builder`.

This is all on Arch Linux x86_64

Metadata

Metadata

Assignees

Labels

buildingBuild/compile errors or build system-related

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions