Skip to content

Problem compiling rsdd, missing rustup-init #8

Open
@cogumbreiro

Description

@cogumbreiro

I'm struggling to build rsdd in Linux. Currently the build fails because it's the file rustup-init is missing. I do have rustup up to date. Any idea how what's going on?

Output of: opam install rsdd
$ opam install rsdd     
The following actions will be performed:
  ∗ install rsdd 0.1.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved rsdd.0.1.0  (cached)
[ERROR] The compilation of rsdd.0.1.0 failed at "dune build -p rsdd -j 15
        @install".

#=== ERROR while compiling rsdd.0.1.0 =========================================#
# context     2.1.2 | linux/x86_64 | ocaml.4.14.1 | https://opam.ocaml.org#cbef5a5f
# path        ~/.opam/default/.opam-switch/build/rsdd.0.1.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p rsdd -j 15 @install
# exit-code   1
# env-file    ~/.opam/log/rsdd-808108-bce313.env
# output-file ~/.opam/log/rsdd-808108-bce313.out
### output ###
# File "src/dune", line 1, characters 0-391:
# [...]
#  2 |  (targets librsdd.a dllrsdd.so)
#  3 |  (deps
#  4 |   (glob_files *.rs))
#  5 |  (action
#  6 |   (progn
#  7 |    (run sh -c "cd %{project_root}/../.. && cargo build --release")
#  8 |    (run sh -c
#  9 |      "mv %{project_root}/../../target/release/librsdd.so ./dllrsdd.so 2> /dev/null || mv %{project_root}/../../target/release/librsdd.dylib ./dllrsdd.so")
# 10 |    (run mv %{project_root}/../../target/release/librsdd.a librsdd.a))))
# (cd _build/default/src && /usr/bin/sh -c 'cd ../../.. && cargo build --release')
# error: could not remove 'setup' file: '/home/tiago/.cargo/bin/rustup-init': Read-only file system (os error 30)

FYI, I believe I am in the latest version of rustup:

$ rustup self update
info: checking for self-update
  rustup unchanged - 1.26.0

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