rust-lang / rust-lang/rust

X build tries installing, despite install being a separate command

Open
#153,651 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug S-needs-info T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

Summary

./x.py build
or
./x.py dist

fails with

[3945/3946] Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libLLVMDemangle.a
CMake Error at lib/Demangle/cmake_install.cmake:46 (file):
file INSTALL cannot copy file
"/src/rust/build/x86_64-unknown-linux-gnu/llvm/build/lib/libLLVMDemangle.a"
to "/usr/local/lib/libLLVMDemangle.a": Permission denied.
Call Stack (most recent call first):
cmake_install.cmake:47 (include)

Expected behaviour

Build shouldnt be installing

Actual behaviour

Build commands try installing

Bootstrap configuration (bootstrap.toml)
<config>
Operating system
HEAD
Additional context
Build Log

<log>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with ./x.py build or ./x.py dist and inspect the CMake install step shown in the build log, including lib/Demangle/cmake_install.cmake. Check how bootstrap.toml and the x.py entry point configure build versus install actions. Done means build and dist complete without attempting to install files into /usr/local.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.