setup.sh fails with spaces in path to directory #169

Closed
opened 2026-12-02 06:17:20 +00:00 by github-bot · 5 comments
Owner

@⁠worsedoughnut on GitHub · 2026-12-02 06:16 UTC · original

I cloned the repo into a dir called "GTA VI", which caused the setup.sh steps to fail. See below at the '-Clink-arg=/ section. script worked normally after I renamed the directory and started fresh.

error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/home/ant/.rustup/toolchains/1.98.1-x86_64-unknown-linux-gnu/bin/rustc - --crate-name ___ --print=file-names -C target-cpu=x86-64-v3 '-Clink-arg=/winsysroot:/run/media/ant/HDD-3/GTA' VI/VIctory-xmem/deps/msvc --target x86_64-pc-windows-msvc --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit status: 1)
  --- stderr
  error: multiple input filenames provided (first two filenames are `-` and `VI/VIctory-xmem/deps/msvc`)
**@⁠worsedoughnut** on GitHub · 2026-12-02 06:16 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169) I cloned the repo into a dir called "GTA VI", which caused the setup.sh steps to fail. See below at the `'-Clink-arg=/` section. script worked normally after I renamed the directory and started fresh. ``` error: failed to run `rustc` to learn about target-specific information Caused by: process didn't exit successfully: `/home/ant/.rustup/toolchains/1.98.1-x86_64-unknown-linux-gnu/bin/rustc - --crate-name ___ --print=file-names -C target-cpu=x86-64-v3 '-Clink-arg=/winsysroot:/run/media/ant/HDD-3/GTA' VI/VIctory-xmem/deps/msvc --target x86_64-pc-windows-msvc --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit status: 1) --- stderr error: multiple input filenames provided (first two filenames are `-` and `VI/VIctory-xmem/deps/msvc`) ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 06:17:20 +00:00
Author
Owner

@⁠ThatRandomDragon on GitHub · 2026-12-02 06:54 UTC · original

Try to keep the filename path clear of any spaces, so insteal of "GTA VI", do something like "GTAVI", atleast that is what im guessing the issue is based on the error

**@⁠ThatRandomDragon** on GitHub · 2026-12-02 06:54 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169#issuecomment-7337537907) Try to keep the filename path clear of any spaces, so insteal of "GTA VI", do something like "GTAVI", atleast that is what im guessing the issue is based on the error
Author
Owner

@⁠worsedoughnut on GitHub · 2026-12-02 06:59 UTC · original

Yes as I said, i renamed the folder and it worked fine. But this is something that is trivially fixed by just making sure to put any param passed as inside single quotes.

**@⁠worsedoughnut** on GitHub · 2026-12-02 06:59 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169#issuecomment-7337643503) Yes as I said, i renamed the folder and it worked fine. But this is something that is trivially fixed by just making sure to put any param passed as inside single quotes.
Author
Owner

@⁠Polland25 on GitHub · 2026-12-02 07:21 UTC · original

Try to keep the filename path clear of any spaces, so insteal of "GTA VI", do something like "GTAVI", atleast that is what im guessing the issue is based on the error

the project does not refer to any names like that , it would be best if u did so too.

**@⁠Polland25** on GitHub · 2026-12-02 07:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169#issuecomment-7338083036) > Try to keep the filename path clear of any spaces, so insteal of "GTA VI", do something like "GTAVI", atleast that is what im guessing the issue is based on the error the project does not refer to any names like that , it would be best if u did so too.
Author
Owner

@⁠EdouardSence on GitHub · 2026-12-02 07:51 UTC · original

I tested both open fixes in a checkout at a path with a space (.../xmem space test, origin/main d044248, deps/msvc inside that path).

  • main as is: fails as reported: error: multiple input filenames provided (first two filenames are '-' and 'space').
  • #27: builds (Finished release ... in 58.71s). It points /winsysroot at a space-free symlink under ~/.cache, so it works however the SDK got there.
  • #167: readlink -f only helps when deps/msvc is itself a symlink to a space-free place. With the default ./setup.sh sdk, deps/msvc is a real directory inside the checkout, so readlink -f gives back the same spaced path and the build should fail the same way.

So #27 looks like the one that closes this. Note that both only cover build.sh. I have not checked whether the other setup.sh steps (meson for Mesa/vkd3d, the prefix) cope with a space; the report above only shows the build.sh failure.

**@⁠EdouardSence** on GitHub · 2026-12-02 07:51 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169#issuecomment-7338691212) I tested both open fixes in a checkout at a path with a space (`.../xmem space test`, `origin/main` `d044248`, `deps/msvc` inside that path). - **`main` as is:** fails as reported: `error: multiple input filenames provided (first two filenames are '-' and 'space')`. - **#27:** builds (`Finished release ... in 58.71s`). It points `/winsysroot` at a space-free symlink under `~/.cache`, so it works however the SDK got there. - **#167:** `readlink -f` only helps when `deps/msvc` is itself a symlink to a space-free place. With the default `./setup.sh sdk`, `deps/msvc` is a real directory inside the checkout, so `readlink -f` gives back the same spaced path and the build should fail the same way. So #27 looks like the one that closes this. Note that both only cover `build.sh`. I have not checked whether the other `setup.sh` steps (meson for Mesa/vkd3d, the prefix) cope with a space; the report above only shows the `build.sh` failure.
Author
Owner

@⁠goldfishdev on GitHub · 2026-12-02 22:54 UTC · original

fixed by #27

**@⁠goldfishdev** on GitHub · 2026-12-02 22:54 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/169#issuecomment-7361307383) fixed by #27
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#169
No description provided.