BinaryBuilder.jl icon indicating copy to clipboard operation
BinaryBuilder.jl copied to clipboard

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

Open jakobnissen opened this issue 1 year ago • 5 comments

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 https://github.com/JuliaPackaging/Yggdrasil/pull/5911 - then it produces the right binaries. It works, even when running that recipe locally on my own machine.

jakobnissen avatar Nov 23 '22 12:11 jakobnissen

cc @staticfloat - Mosè Giordano mentioned you might be able to fix this.

jakobnissen avatar Nov 23 '22 12:11 jakobnissen

hitting this when trying to compile https://github.com/lotabout/skim

Moelf avatar Feb 15 '23 14:02 Moelf

Just don't use the wizard. I honestly have no clue why the wizard has this problem (and I also rarely use it).

giordano avatar Feb 15 '23 14:02 giordano

what's the workflow then? copy & edit some build_tarball.jl and manually run it?

Moelf avatar Feb 15 '23 14:02 Moelf

Yes: https://docs.binarybuilder.org/stable/#Manually-create-or-edit-build_tarballs.jl

giordano avatar Feb 15 '23 14:02 giordano