You are not logged in.

#1 2021-07-30 21:23:00

Tarkkanakki
Member
Registered: 2021-06-07
Posts: 5

[SOLVED] Wine 6.0 fails to compile

Hi,
I've downloaded the Wine 6.0 source code from here and have followed the WoW64 build instructions from here but it always fails after letting 'make -j8' command run for a while.

I'm not able to compile the 32bit version of wine nor the 64bit as they both fail at some point.

This is a snippet around the part where I think it fails:

tools/winegcc/winegcc -o dlls/d3d10core/d3d10core.dll --wine-objdir . -b x86_64-w64-mingw32 --lib-suffix=.cross.a \
  -Wl,--wine-builtin -shared ../dlls/d3d10core/d3d10core.spec -mno-cygwin \
  dlls/d3d10core/d3d10core_main.cross.o dlls/d3d10core/version.res dlls/d3d11/libd3d11.cross.a \
  dlls/dxgi/libdxgi.cross.a dlls/ucrtbase/libucrtbase.cross.a 
tools/winegcc/winegcc -o dlls/d3d10core/tests/d3d10core_test.exe --wine-objdir . -b x86_64-w64-mingw32 --lib-suffix=.cross.a -mno-cygwin \
  dlls/d3d10core/tests/d3d10core.cross.o dlls/d3d10core/tests/testlist.cross.o \
  dlls/d3d10/libd3d10.cross.a dlls/dxgi/libdxgi.cross.a dlls/user32/libuser32.cross.a \
  dlls/msvcrt/libmsvcrt.cross.a 
tools/winegcc/winegcc -o dlls/d3d11/d3d11.dll --wine-objdir . -b x86_64-w64-mingw32 --lib-suffix=.cross.a \
  -Wl,--wine-builtin -shared ../dlls/d3d11/d3d11.spec -mno-cygwin dlls/d3d11/async.cross.o \
  dlls/d3d11/buffer.cross.o dlls/d3d11/d3d11_main.cross.o dlls/d3d11/device.cross.o \
  dlls/d3d11/inputlayout.cross.o dlls/d3d11/shader.cross.o dlls/d3d11/state.cross.o \
  dlls/d3d11/texture.cross.o dlls/d3d11/utils.cross.o dlls/d3d11/view.cross.o dlls/d3d11/version.res \
  dlls/dxguid/libdxguid.cross.a dlls/uuid/libuuid.cross.a dlls/dxgi/libdxgi.cross.a \
  dlls/wined3d/libwined3d.cross.a dlls/ucrtbase/libucrtbase.cross.a 
/usr/lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld: dlls/d2d1/tests/d2d1.cross.o: in function `rotate_matrix':
/home/tarkkis/gitti/wine-6.0/wine64-build/../dlls/d2d1/tests/d2d1.c:232: undefined reference to `sincosf'
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:18689: dlls/d2d1/tests/d2d1_test.exe] Error 2
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld: dlls/d2d1/brush.cross.o: in function `d2d_brush_fill_cb':
/home/tarkkis/gitti/wine-6.0/wine64-build/../dlls/d2d1/brush.c:1215: undefined reference to `sincosf'
/usr/lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld: dlls/d2d1/factory.cross.o: in function `D2D1MakeRotateMatrix':
/home/tarkkis/gitti/wine-6.0/wine64-build/../dlls/d2d1/factory.c:637: undefined reference to `sincosf'
/usr/lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld: dlls/d2d1/factory.cross.o: in function `D2D1SinCos':
/home/tarkkis/gitti/wine-6.0/wine64-build/../dlls/d2d1/factory.c:718: undefined reference to `sincosf'
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:18580: dlls/d2d1/d2d1.dll] Error 2

I have captured the output for the '../configure --enable-win64' and 'make -j8' commands by suffixing the commands with '&> output.log' and uploaded them online as text.
I had to use different service for uploading the 'make -j8' output, as it was too long for ix.io and pastebin.

Output of '../configure --enable-win64' : http://ix.io/3uwi
Output of 'make -j8' : https://1.filedit.ch/1/HNEKLQaAPEILWCAonOj.txt

I have checked dependencies multiple times from here and I'm quite sure that I have everything required.

As a test, I also tried to compile Wine 6.0.1 but it also fails with similar error.

If I forgot to provide any information, ask for it and I will provide it.
Thanks in advance.

Last edited by Tarkkanakki (2021-08-01 10:21:05)

Offline

#2 2021-08-01 10:20:24

Tarkkanakki
Member
Registered: 2021-06-07
Posts: 5

Re: [SOLVED] Wine 6.0 fails to compile

I don't know why, but compiling Wine without mingw-w64-gcc works. I know that i lose support for PE format DLLs, but it at least compiles without errors.
Would be interesting to know why it just crashes when trying to compile, but marking this as solved as it works without it.

Offline

#3 2021-08-01 17:07:34

stanczew
Member
Registered: 2021-03-02
Posts: 63

Re: [SOLVED] Wine 6.0 fails to compile

Have you tried building wine-stable from AUR?
https://aur.archlinux.org/packages/wine-stable/

Someone commented they had to downgrade mingw-w64-gcc to 10.2.0-2 for the package to build properly; maybe you're hitting the same issue?

Offline

#4 2021-08-01 18:53:48

Tarkkanakki
Member
Registered: 2021-06-07
Posts: 5

Re: [SOLVED] Wine 6.0 fails to compile

stanczew wrote:

Have you tried building wine-stable from AUR?
https://aur.archlinux.org/packages/wine-stable/

Someone commented they had to downgrade mingw-w64-gcc to 10.2.0-2 for the package to build properly; maybe you're hitting the same issue?

Aur package also failed to build, but I don't remember the error code.

Offline

Board footer

Powered by FluxBB