Skip to content

rust-1.74.0-beta fails to execute x.py install with: thread 'main' panicked at install.rs:59:17 - Failed the write access check for the current user. No such file or directory #117203

Closed
@stefson

Description

hey everyone, I get this message from x.py when install is executed:


       Fresh bootstrap v0.0.0 (/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/src/bootstrap)
    Finished dev [unoptimized] target(s) in 0.50s
running: /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/bootstrap/debug/bootstrap install -vv --config=/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/config.toml -j12
warning: x.py has made several changes recently you may want to look at
help: consider looking at the changes in `src/bootstrap/CHANGELOG.md`
note: to silence this warning, add `changelog-seen = 2` at the top of `config.toml`
finding compilers
CC_x86_64-gentoo-linux-musl = "x86_64-gentoo-linux-musl-gcc"
CFLAGS_x86_64-gentoo-linux-musl = ["-ffunction-sections", "-fdata-sections", "-fPIC", "-m64", "-pipe"]
CXX_x86_64-gentoo-linux-musl = "x86_64-gentoo-linux-musl-g++"
CXXFLAGS_x86_64-gentoo-linux-musl = ["-ffunction-sections", "-fdata-sections", "-fPIC", "-m64", "-pipe"]
AR_x86_64-gentoo-linux-musl = "x86_64-gentoo-linux-musl-ar"
running sanity check
learning about cargo
> Assemble { target_compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl } }
  > Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
    > Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
    < Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
    > Rustc { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, crates: [] }
      > Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
        > StartupObjects { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        < StartupObjects { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
        > Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
          > Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage0-sysroot to avoid caching bugs
          < Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage0-sysroot/lib/rustlib/x86_64-gentoo-linux-musl/lib to avoid caching bugs
          c Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
        < Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
        c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
        > StdLink { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
          c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
          c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        < StdLink { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
      < Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
      c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
      c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
      c Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
      c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
      > Llvm { target: x86_64-gentoo-linux-musl }
      < Llvm { target: x86_64-gentoo-linux-musl }
      c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
      > RustcLink { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [] }
        c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      < RustcLink { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [] }
    < Rustc { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, crates: [] }
    > Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage1 to avoid caching bugs
    < Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    > Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage1/lib/rustlib/x86_64-gentoo-linux-musl/lib to avoid caching bugs
    < Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    c Llvm { target: x86_64-gentoo-linux-musl }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
  < Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
  > Rustc { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [] }
    > Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
      > StartupObjects { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      < StartupObjects { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
      c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
      c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
      c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
      c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
      > StdLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
        c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      < StdLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
    < Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
    c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
    c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
    c Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
    c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Sysroot { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, force_recompile: false }
    c Llvm { target: x86_64-gentoo-linux-musl }
    c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
    > RustcLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [] }
      c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    < RustcLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [] }
  < Rustc { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [] }
  > Sysroot { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage2 to avoid caching bugs
  < Sysroot { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, force_recompile: false }
  c Sysroot { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, force_recompile: false }
  c Libdir { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
  > Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    c Sysroot { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, force_recompile: false }
Removing sysroot /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/x86_64-gentoo-linux-musl/stage2/lib/rustlib/x86_64-gentoo-linux-musl/lib to avoid caching bugs
  < Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
  c Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
  c Llvm { target: x86_64-gentoo-linux-musl }
  c Sysroot { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, force_recompile: false }
< Assemble { target_compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl } }
> Std { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
  > Std { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    > Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
      > StartupObjects { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      < StartupObjects { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
      c Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
      c Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      > StdLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
        c Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Libdir { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      < StdLink { compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl }, target_compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, crates: [], force_recompile: false }
    < Std { target: x86_64-gentoo-linux-musl, compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, crates: [], force_recompile: false }
    c Assemble { target_compiler: Compiler { stage: 1, host: x86_64-gentoo-linux-musl } }
    c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
    > RustInstaller { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
      > ToolBuild { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, tool: "rust-installer", path: "src/tools/rust-installer", mode: ToolBootstrap, is_optional_tool: false, source_type: InTree, extra_features: [], allow_features: "" }
        c Libdir { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
        c Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
        c Sysroot { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, force_recompile: false }
      < ToolBuild { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl, tool: "rust-installer", path: "src/tools/rust-installer", mode: ToolBootstrap, is_optional_tool: false, source_type: InTree, extra_features: [], allow_features: "" }
    < RustInstaller { compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
    c Assemble { target_compiler: Compiler { stage: 0, host: x86_64-gentoo-linux-musl } }
  < Std { compiler: Compiler { stage: 2, host: x86_64-gentoo-linux-musl }, target: x86_64-gentoo-linux-musl }
thread 'main' panicked at install.rs:59:17:
Failed the write access check for the current user. No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/./x.py", line 50, in <module>
    bootstrap.main()
  File "/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/src/bootstrap/bootstrap.py", line 1121, in main
    bootstrap(args)
  File "/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/src/bootstrap/bootstrap.py", line 1097, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/src/bootstrap/bootstrap.py", line 187, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/build/bootstrap/debug/bootstrap install -vv --config=/var/tmp/portage/dev-lang/rust-1.74.0_beta/work/rustc-beta-src/config.toml -j12

It seems there are some backports still missing for beta, since I can fix this by reverting #116127 locally, and there are some subsequent fixes in nightly who seemed to have fixed the issue for good.

So, is there somewhere a list of the nightly backports needed to fix this problem? Thanks.

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions