Skip to content

Rust compiling issue: error: Cross-device link (os error 18) #1248

@jakobnissen

Description

@jakobnissen

I'm trying to create a Rust binary, but this error occurs once rustup tries to compile the program.

Environment

OS: Linux (Manjaro), kernel 5.15.78-1
Triplet: x86_64-linux-gnu
Julia version: 1.8.3
BinaryBuilder version: 0.5.6

Steps to reproduce:

  • Run the BB wizard
  • Source is https://github.com/wwood/CoverM, tag v0.6.1
  • Name is "CoverM", version "0.6.1"
  • No dependencies or additional sources
  • Choose to compile for x86_64-linux-gnu
  • Compilers: Pick the default C/C++/Fortran, plus Rust
  • Run: cd CoverM && cargo build --release

Weirdly enough, this does not happen when running BB using the equivalent build script in JuliaPackaging/Yggdrasil#5911 - then it produces the right binaries. It works, even when running that recipe locally on my own machine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions