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

AUR makepkg utility invalid argument '/mnt/c/...' to '-ffile-prefix-map'" error: Arch.exe path should not contain spaces #359

Open
Denactive opened this issue Apr 15, 2024 · 0 comments

Comments

@Denactive
Copy link

Hi, I want to contibute to "known issues" and "How to Setup" docs section.

Arch.exe path should not contain spaces. It breaks AUR makepkg utility.

Description / To Reproduce

For example, I set it up into 'C:\Users\user1\WSL Arch' Windows directory like 'C:\Users\user1\WSL Arch\Arch.exe'

Now when I attempt to build a package from AUR I get a compile error like "see config.log for details" and a message from GCC utility "error: invalid argument '/mnt/c/Users/user1/WSL' to '-ffile-prefix-map'" there.

To Reproduce
I run the following

sudo pacman -S git

git clone https://aur.archlinux.org/yay-git.git
cd yay-git
makepkg -si

That is because of mount path in linux actually contains a space character: '/mnt/c/Users/user1/WSL\ Arch'

To make all work I just stopped Arch.exe and moved Arch.exe installaton folder from 'C:\Users\user1\WSL Arch' to 'C:\Users\user1\WSLArch'. Than there is a message suggesting to fix base folder, I just confirmed. Also I removed yay-git files and reran git clone and others

Screenshots
No Screenshots are necessary here

Enviroment:

  • Windows build number: 10.0.19045 build 19045
  • Security Software: None
  • WSL2
  • ArchWSL version [e.g. 19.3.7.0]
  • ArchWSL Installer type: zip
  • Launcher version: wsldl2, version 23072600 (amd64)
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