https://bugs.winehq.org/show_bug.cgi?id=57857
Bug ID: 57857 Summary: Unable to run 32bit applications after loader changes in 10.2 Product: Wine Version: 10.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: loader Assignee: wine-bugs@winehq.org Reporter: sutupud@yahoo.com Distribution: ---
This happens when wine is build using the PKGBUILD from achlinux: https://gitlab.archlinux.org/archlinux/packaging/packages/wine/-/blob/main/P...
i.e. buildin the 64bit libraries using `--enable-win64` and then the 32bit libraries separately. Arch uses /usr/lib32 for the 32bit libraries, and therfore builds them with `--libdir=/usr/lib32`
It does work when testing it directly from the build directory, but not after installing. According to strace, the new loader tries to execute wine-preloader when running a 32bit program from:
/usr/lib/wine/i386-unix/wine-preloader
which fails, since it doesn't exist.
The binary now would need to look for the preloader relative to the the 32bit libdir, so it would need to know what's being used for that in the 32bit compilation.
When building with in the new WOW mode with `--enable-archs=i386,x86_64` then everything works fine.