protonscr

platform-specific clock breaks winelib build

dxvkclosed
doitsujin/dxvk#1256 · opened 2019-11-26 by kattjevfel · updated 2019-11-26 · 3 comments · github
Kkattjevfel 2019-11-26 github

Building with winelib fails since c39c3e8dcc26a8095ea239bd0b9a1428246be692 with

[73/211] Compiling C++ object 'src/dxvk/1752c3e@@dxvk@sta/dxvk_compute.cpp.o'.
FAILED: src/dxvk/1752c3e@@dxvk@sta/dxvk_compute.cpp.o 
wineg++ -Isrc/dxvk/1752c3e@@dxvk@sta -Isrc/dxvk -I../../dxvk/src/dxvk -I../../dxvk/./include -I. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX --no-gnu-unique -m64 -fvisibility=hidden -fvisibility-inlines-hidden -D__WIDL_objidl_generated_name_0000000C= -fPIC -pthread -MD -MQ 'src/dxvk/1752c3e@@dxvk@sta/dxvk_compute.cpp.o' -MF 'src/dxvk/1752c3e@@dxvk@sta/dxvk_compute.cpp.o.d' -o 'src/dxvk/1752c3e@@dxvk@sta/dxvk_compute.cpp.o' -c ../../dxvk/src/dxvk/dxvk_compute.cpp
In file included from /usr/include/wine/windows/windows.h:64,
                 from ../../dxvk/src/dxvk/../util/util_time.h:7,
                 from ../../dxvk/src/dxvk/dxvk_compute.cpp:1:
/usr/include/wine/windows/winsock.h:445:16: error: redefinition of ‘struct timeval’
  445 | typedef struct WS(timeval)
      |                ^~
In file included from /usr/include/bits/timex.h:22,
                 from /usr/include/bits/time.h:73,
                 from /usr/include/time.h:33,
                 from /usr/include/c++/9.2.0/ctime:42,
                 from /usr/include/c++/9.2.0/chrono:41,
                 from ../../dxvk/src/dxvk/../util/util_time.h:3,
                 from ../../dxvk/src/dxvk/dxvk_compute.cpp:1:
/usr/include/bits/types/struct_timeval.h:8:8: note: previous definition of ‘struct timeval’
    8 | struct timeval
      |        ^~~~~~~
winegcc: g++ failed

Wine 4.20 on Arch

Full build log:
build.log

Ddoitsujin maintainer 2019-11-26 github

Yes, known issue, will be fixed soon.

Note that winelib support is likely going to be dropped in the near future.

Kkattjevfel 2019-11-26 github

Aw man, that sucks to hear, mingw is such a mess to install :P

Mmisyltoad 2019-11-26 github

Aw man, that sucks to hear, mingw is such a mess to install :P

Fwiw I've just been using the chaotic AUR for a while now locally and for froggi.es which has the dwarf2 patch included.

Nothing extracted yet.