Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem compiling rsdd, missing rustup-init #8

Open
cogumbreiro opened this issue Jan 4, 2024 · 0 comments
Open

Problem compiling rsdd, missing rustup-init #8

cogumbreiro opened this issue Jan 4, 2024 · 0 comments

Comments

@cogumbreiro
Copy link

cogumbreiro commented Jan 4, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant