Wine 7.9 will not compile on Arch Linux with gcc 12.1.0

Questions about Wine on Linux
Locked
pmikec
Newbie
Newbie
Posts: 3
Joined: Tue May 24, 2022 1:21 pm

Wine 7.9 will not compile on Arch Linux with gcc 12.1.0

Post by pmikec »

Hello,

I am trying to compile (and cross compile) wine on my Arch Linux install. I have successfully built both wine and wine64 on this machine in the past, but I pulled the latest source from git this morning and the make process errors out with this information:

Code: Select all

tools/winegcc/winegcc -o dlls/dhcpcsvc/dhcpcsvc.dll --wine-objdir . -b x86_64-w64-mingw32 --lib-suffix=.cross.a \
  -Wl,--wine-builtin -shared ../dlls/dhcpcsvc/dhcpcsvc.spec -Wb,--prefer-native -mno-cygwin \
  dlls/dhcpcsvc/dhcpcsvc.cross.o dlls/iphlpapi/libiphlpapi.delay.a dlls/winecrt0/libwinecrt0.cross.a \
  dlls/ucrtbase/libucrtbase.cross.a dlls/kernel32/libkernel32.cross.a dlls/ntdll/libntdll.cross.a \
  
/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: dlls/iphlpapi/libiphlpapi.delay.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:45966: dlls/dhcpcsvc/dhcpcsvc.dll] Error 2
I am using gcc 12.1.0 and mingw 11.2. Please let me know if you need any more relevant information.

Thanks so much!
pmikec
Newbie
Newbie
Posts: 3
Joined: Tue May 24, 2022 1:21 pm

Re: Wine 7.9 will not compile on Arch Linux with gcc 12.1.0

Post by pmikec »

Update: Issue was resolved by rolling back to previous versions of the MinGW support packages.

mingw-w64-binutils: 2.36.1-1
warning: mingw-w64-crt: 7.0.0-1
warning: mingw-w64-headers:9.0.0-2
warning: mingw-w64-winpthreads: 9.0.0-1

Please see this thread for more detail: https://bbs.archlinux.org/viewtopic.php?id=276672
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine 7.9 will not compile on Arch Linux with gcc 12.1.0

Post by dimesio »

mingw-w64-binutils: 2.36.1-1
If the version you rolled back from was 2.38, then the problem was probably https://bugs.winehq.org/show_bug.cgi?id=52770.
pmikec
Newbie
Newbie
Posts: 3
Joined: Tue May 24, 2022 1:21 pm

Re: Wine 7.9 will not compile on Arch Linux with gcc 12.1.0

Post by pmikec »

Yep, that looks like it. I lack the expertise needed to track the root cause down. Thank you!
Locked