https://bugs.winehq.org/show_bug.cgi?id=55862
Bug ID: 55862 Summary: [aarch64-musl] ws2_32.dll failed to initialize // could not load kernel32.dll Product: Wine Version: 8.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: winehq.org@life.at Distribution: ---
On Alpine Linux (= musl) with either, **WINE 8.19** and current **master**, I get the same errors.
It's configured like this, only lacking the mentioned dependencies:
% ../configure --disable-tests --with-mingw --enable-archs=i386,aarch64 configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported. configure: libcapi20 development files not found, ISDN won't be supported. configure: libnetapi not found, Samba NetAPI won't be supported.
Confirming the environment:
% ./wine --version wine-8.19
% uname -m aarch64
% ldd `which ls` /lib/ld-musl-aarch64.so.1 (0xffffa0732000)
Confirming libraries:
% find ./ -name ws2_32.dll -o -name kernel32.dll ./dlls/kernel32/aarch64-windows/kernel32.dll ./dlls/kernel32/i386-windows/kernel32.dll ./dlls/ws2_32/aarch64-windows/ws2_32.dll ./dlls/ws2_32/i386-windows/ws2_32.dll
% file dlls/kernel32/*/kernel32.dll dlls/kernel32/aarch64-windows/kernel32.dll: PE32+ executable (DLL) (GUI) Aarch64, for MS Windows, 14 sections dlls/kernel32/i386-windows/kernel32.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows, 15 sections
% file dlls/ws2_32/*/ws2_32.dll dlls/ws2_32/aarch64-windows/ws2_32.dll: PE32+ executable (DLL) (GUI) Aarch64, for MS Windows, 14 sections dlls/ws2_32/i386-windows/ws2_32.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows, 15 sections
The errors (same result with other exe's, like `msiexec` or `winecfg`):
% rm -Rf ~/.winevanilla ; WINEPREFIX=~/.winevanilla ./wine programs/powershell/aarch64-windows/powershell.exe wine: created the configuration directory '/home/g/.winevanilla' 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 002c:err:module:loader_init "ws2_32.dll" failed to initialize, aborting 002c:err:module:loader_init Initializing dlls for L"C:\windows\system32\wineboot.exe" failed, status c0000142 wine: could not load kernel32.dll, status c0000135
% rm -Rf ~/.winevanilla ; WINEPREFIX=~/.winevanilla ./wine programs/powershell/i386-windows/powershell.exe wine: created the configuration directory '/home/g/.winevanilla' 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 002c:err:module:loader_init "ws2_32.dll" failed to initialize, aborting 002c:err:module:loader_init Initializing dlls for L"C:\windows\system32\wineboot.exe" failed, status c0000142 0024:err:environ:init_peb starting L"Z:\home\g\Downloads\wine\build\programs\powershell\i386-windows\powershell.exe" in experimental wow64 mode 0024:err:module:init_wow64 could not load L"C:\windows\system32\wow64.dll", status c0000135
_(Issue originally created on [Hangover](https://github.com/AndreRH/hangover/issues/141))_
https://bugs.winehq.org/show_bug.cgi?id=55862
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- There are a lot of unusual variables here. Does this occur with glibc? Or old wow64?
https://bugs.winehq.org/show_bug.cgi?id=55862
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=55862
--- Comment #2 from Briareos winehq.org@life.at --- With glibc I ran into other errors (see https://github.com/AndreRH/hangover/issues/141#issuecomment-1792595720).
What's "old wow64"?
https://bugs.winehq.org/show_bug.cgi?id=55862
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- There's no old wow64 on ARM64. In fact there's no new wow64 either, upstream Wine doesn't support running i386 binaries on ARM64 yet.
https://bugs.winehq.org/show_bug.cgi?id=55862
--- Comment #4 from Briareos winehq.org@life.at --- Am I correct to assume that at least apps should run?
./wine programs/*/aarch64-windows/*.exe
https://bugs.winehq.org/show_bug.cgi?id=55862
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Yes, that should work.
https://bugs.winehq.org/show_bug.cgi?id=55862
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from André H. nerv@dawncrow.de --- confirming
You need:
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/wine/rp...
_AND_
make install
_AND_
run the installed wine, then it works