ArchWSL
ArchWSL copied to clipboard
AUR makepkg utility invalid argument '/mnt/c/...' to '-ffile-prefix-map'" error: Arch.exe path should not contain spaces
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)