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

rustc stage 2 and rsutup toolchain link fails with the path with white space #111901

Closed
dupeiran001 opened this issue May 24, 2023 · 2 comments
Closed

Comments

@dupeiran001
Copy link

although it's not recommended to use a path with white space

I tried to compile my rustc stage 2, following the guide.

my environment is macOS 13.4

I have my dev dir in iCloud, which absolute path is : /Users/xxx/Library/Mobile Documents/com~apple~CloudDocs/Develop, has a white space in it.

when trying to link to the rustup toolchain with command

rustup toolchain link stage1 build/host/stage1

it fails with message:

error: not a file: 'build/host/stage1/bin/rustc'

these all fail for linking stage0 or stage2

but it works well if I copy the whole dir to a non-spacing dir

it's all the same to rustc compilation with command:

./x.py build --stage 2

with error message:

 Compiling rustc_smir v0.0.0 (/Users/dpr/Library/Mobile Documents/com~apple~CloudDocs/Develop/Rust/rust/compiler/rustc_smir)
The following warnings were emitted during compilation:

warning: clang: error: no such file or directory: 'Documents/com~apple~CloudDocs/Develop/Rust/rust/build/aarch64-apple-darwin/ci-llvm/include'

error: failed to run custom build command for `rustc_llvm v0.0.0 (/Users/dpr/Library/Mobile Documents/com~apple~CloudDocs/Develop/Rust/rust/compiler/rustc_llvm)`

Caused by:
  process didn't exit successfully: `/Users/dpr/Library/Mobile Documents/com~apple~CloudDocs/Develop/Rust/rust/build/aarch64-apple-darwin/stage0-rustc/release/build/rustc_llvm-e9be9ad0694a7cad/build-script-build` (exit status: 1)

// with some other std out
......

the line staring with warning obviously prints only the latter parts of the dir after the space.

I suppose maybe it fails to recognize the space in the path and separate it into two?

@Noratrieb
Copy link
Member

compiling rustc in a directory with a space doesn't work because of llvm-config not supporting it. There's an issue somewhere I think

@jyn514
Copy link
Member

jyn514 commented May 24, 2023

yeah this is a duplicate of #56650

@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
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

3 participants