http://bugs.winehq.org/show_bug.cgi?id=29661
Bug #: 29661 Summary: wineboot unable to create win32 prefix under certain conditions Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: jonasa@gmail.com Classification: Unclassified
wineboot is unable to create 32bit prefix on 64bit linux if when the folder exists because existings (empty or otherwise) folders are treated as 64bit prefixes.
To reproduce:
Create 32bit prefix:
# Create empty folder mkdir /home/wine/photoshop
# Try setup a new 32bit prefix WINEPREFIX='/home/wine/photoshop' WINEARCH='win32' wine 'wineboot'
Result wine gives this error: wine: WINEARCH set to win32 but '/home/wine/photoshop' is a 64-bit installation.
Remove the folder and you are able to created the prefix.
Create 64bit prefix:
# Create empty folder mkdir /home/wine/photoshop
# Try setup a new 64bit prefix WINEPREFIX='/home/wine/photoshop' WINEARCH='win32' wine 'wineboot'
Result: 64bit prefix is created!
I don't know if this is the intended behavior, but it is not intuitive and the error message is not helpful.
The error is generated in /wine/dlls/ntdll/server.c on line 1116
--
Wine version: 1.3.37 OS: Arch Linux 64bit