protonscr

Failing to compile manually

dxvkclosed
doitsujin/dxvk#1301 · opened 2019-12-21 by gardotd426 · updated 2020-02-01 · 7 comments · github
Ggardotd426 2019-12-21 github

I can't get the latest version to compile manually. I thought it maybe had something to do with a patch I applied, but I exited the directory, removed the whole cloned directory, re-cloned it just to make sure everything was fresh, and tried again, with the same issue. Something during ninja install is causing an error, and I can't figure out for the life of me what it is. It always errors out at a different step. Sometimes it doesn't error out until the very end, sometimes it's at the very beginning. It worked just fine for me on the previous version. Here is the output for meson --cross-file build-win64.txt --buildtype release --prefix /home/matt/dxvk build.w64:

The Meson build system
Version: 0.52.1
Source dir: /home/matt/gits/dxvk
Build dir: /home/matt/gits/dxvk/build.w64
Build type: cross build
Project name: dxvk
Project version: v1.5
C compiler for the build machine: ccache cc (gcc 9.2.0 "cc (GCC) 9.2.0")
C linker for the build machine: GNU ld.bfd 2.33.1
C++ compiler for the build machine: ccache c++ (gcc 9.2.0 "c++ (GCC) 9.2.0")
C++ linker for the build machine: GNU ld.bfd 2.33.1
C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 9.2.0 "x86_64-w64-mingw32-gcc (GCC) 9.2.0")
C linker for the host machine: GNU ld.bfd 2.33.1
C++ compiler for the host machine: x86_64-w64-mingw32-g++ (gcc 9.2.0 "x86_64-w64-mingw32-g++ (GCC) 9.2.0")
C++ linker for the host machine: GNU ld.bfd 2.33.1
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Checking if "winelib check" compiles: NO (cached)
Program x86_64-w64-mingw32-windres found: YES (/usr/bin/x86_64-w64-mingw32-windres)
Library vulkan-1 found: YES
Library d3d9 found: YES
Library d3d11 found: YES
Library dxgi found: YES
Library d3dcompiler_43 found: YES
Library d3dcompiler_47 found: YES
Program glslangValidator found: YES (/usr/local/bin/glslangValidator)
Dependency threads found: YES (cached)
Dependency threads found: YES (cached)
Build targets in project: 13
Found ninja-1.9.0 at /usr/bin/ninja

After cd build.w64; ninja install, like I said it's different every time but here's the output starting at the first error for the most recent attempt:

[44/247] Compiling C++ object 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_loader.cpp.obj'.
FAILED: src/vulkan/67fefa6@@vkcommon@sta/vulkan_loader.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/vulkan/67fefa6@@vkcommon@sta -Isrc/vulkan -I../src/vulkan -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -pthread -MD -MQ 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_loader.cpp.obj' -MF 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_loader.cpp.obj.d' -o 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_loader.cpp.obj' -c ../src/vulkan/vulkan_loader.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/vulkan/../util/rc/util_rc_ptr.h:3,
                 from ../src/vulkan/vulkan_loader.h:4,
                 from ../src/vulkan/vulkan_loader.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[45/247] Compiling C++ object 'src/spirv/e922df6@@spirv@sta/spirv_code_buffer.cpp.obj'.
FAILED: src/spirv/e922df6@@spirv@sta/spirv_code_buffer.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/spirv/e922df6@@spirv@sta -Isrc/spirv -I../src/spirv -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/spirv/e922df6@@spirv@sta/spirv_code_buffer.cpp.obj' -MF 'src/spirv/e922df6@@spirv@sta/spirv_code_buffer.cpp.obj.d' -o 'src/spirv/e922df6@@spirv@sta/spirv_code_buffer.cpp.obj' -c ../src/spirv/spirv_code_buffer.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/spirv/../util/rc/util_rc_ptr.h:3,
                 from ../src/spirv/spirv_include.h:12,
                 from ../src/spirv/spirv_instruction.h:6,
                 from ../src/spirv/spirv_code_buffer.h:8,
                 from ../src/spirv/spirv_code_buffer.cpp:4:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[46/247] Compiling C++ object 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj'.
FAILED: src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/spirv/e922df6@@spirv@sta -Isrc/spirv -I../src/spirv -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj' -MF 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj.d' -o 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj' -c ../src/spirv/spirv_module.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/spirv/../util/rc/util_rc_ptr.h:3,
                 from ../src/spirv/spirv_include.h:12,
                 from ../src/spirv/spirv_instruction.h:6,
                 from ../src/spirv/spirv_code_buffer.h:8,
                 from ../src/spirv/spirv_module.h:5,
                 from ../src/spirv/spirv_module.cpp:3:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[47/247] Compiling C++ object 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_presenter.cpp.obj'.
FAILED: src/vulkan/67fefa6@@vkcommon@sta/vulkan_presenter.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/vulkan/67fefa6@@vkcommon@sta -Isrc/vulkan -I../src/vulkan -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -pthread -MD -MQ 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_presenter.cpp.obj' -MF 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_presenter.cpp.obj.d' -o 'src/vulkan/67fefa6@@vkcommon@sta/vulkan_presenter.cpp.obj' -c ../src/vulkan/vulkan_presenter.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/vulkan/../util/rc/util_rc_ptr.h:3,
                 from ../src/vulkan/vulkan_loader.h:4,
                 from ../src/vulkan/vulkan_presenter.h:11,
                 from ../src/vulkan/vulkan_presenter.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[48/247] Compiling C++ object 'src/spirv/e922df6@@spirv@sta/spirv_compression.cpp.obj'.
FAILED: src/spirv/e922df6@@spirv@sta/spirv_compression.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/spirv/e922df6@@spirv@sta -Isrc/spirv -I../src/spirv -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/spirv/e922df6@@spirv@sta/spirv_compression.cpp.obj' -MF 'src/spirv/e922df6@@spirv@sta/spirv_compression.cpp.obj.d' -o 'src/spirv/e922df6@@spirv@sta/spirv_compression.cpp.obj' -c ../src/spirv/spirv_compression.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/spirv/../util/rc/util_rc_ptr.h:3,
                 from ../src/spirv/spirv_include.h:12,
                 from ../src/spirv/spirv_instruction.h:6,
                 from ../src/spirv/spirv_code_buffer.h:8,
                 from ../src/spirv/spirv_compression.h:5,
                 from ../src/spirv/spirv_compression.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[49/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_shex.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_shex.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_shex.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_shex.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_shex.cpp.obj' -c ../src/dxbc/dxbc_chunk_shex.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../dxvk/dxvk_include.h:14,
                 from ../src/dxbc/../dxvk/dxvk_shader.h:5,
                 from ../src/dxbc/dxbc_include.h:3,
                 from ../src/dxbc/dxbc_common.h:3,
                 from ../src/dxbc/dxbc_chunk_shex.h:3,
                 from ../src/dxbc/dxbc_chunk_shex.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[50/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_isgn.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_isgn.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_isgn.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_isgn.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_chunk_isgn.cpp.obj' -c ../src/dxbc/dxbc_chunk_isgn.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../dxvk/dxvk_include.h:14,
                 from ../src/dxbc/../dxvk/dxvk_shader.h:5,
                 from ../src/dxbc/dxbc_include.h:3,
                 from ../src/dxbc/dxbc_common.h:3,
                 from ../src/dxbc/dxbc_chunk_isgn.h:5,
                 from ../src/dxbc/dxbc_chunk_isgn.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[51/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_defs.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_defs.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_defs.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_defs.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_defs.cpp.obj' -c ../src/dxbc/dxbc_defs.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../dxvk/dxvk_include.h:14,
                 from ../src/dxbc/../dxvk/dxvk_shader.h:5,
                 from ../src/dxbc/dxbc_include.h:3,
                 from ../src/dxbc/dxbc_enums.h:3,
                 from ../src/dxbc/dxbc_defs.h:3,
                 from ../src/dxbc/dxbc_defs.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[52/247] Compiling C++ object 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj'.
FAILED: src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/util/ed6d25d@@util@sta -Isrc/util -I../src/util -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj' -MF 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj.d' -o 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj' -c ../src/util/com/com_guid.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/util/com/../../d3d11/../dxgi/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/util/com/../../d3d11/../dxgi/../dxvk/dxvk_include.h:14,
                 from ../src/util/com/../../d3d11/../dxgi/dxgi_interfaces.h:3,
                 from ../src/util/com/../../d3d11/d3d11_interfaces.h:3,
                 from ../src/util/com/com_guid.cpp:3:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[53/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_common.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_common.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_common.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_common.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_common.cpp.obj' -c ../src/dxbc/dxbc_common.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../dxvk/dxvk_include.h:14,
                 from ../src/dxbc/../dxvk/dxvk_shader.h:5,
                 from ../src/dxbc/dxbc_include.h:3,
                 from ../src/dxbc/dxbc_common.h:3,
                 from ../src/dxbc/dxbc_common.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[54/247] Compiling C++ object 'src/util/ed6d25d@@util@sta/config_config.cpp.obj'.
FAILED: src/util/ed6d25d@@util@sta/config_config.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/util/ed6d25d@@util@sta -Isrc/util -I../src/util -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/util/ed6d25d@@util@sta/config_config.cpp.obj' -MF 'src/util/ed6d25d@@util@sta/config_config.cpp.obj.d' -o 'src/util/ed6d25d@@util@sta/config_config.cpp.obj' -c ../src/util/config/config.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/algorithm:62,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/regex:38,
                 from ../src/util/config/config.cpp:4:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[55/247] Compiling C++ object 'src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj'.
FAILED: src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxvk/1752c3e@@dxvk@sta -Isrc/dxvk -I../src/dxvk -I.././include -I. -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -pthread -MD -MQ 'src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj' -MF 'src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj.d' -o 'src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj' -c ../src/dxvk/dxvk_shader.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxvk/dxvk_include.h:14,
                 from ../src/dxvk/dxvk_shader.h:5,
                 from ../src/dxvk/dxvk_shader.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[56/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_analysis.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_analysis.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_analysis.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_analysis.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_analysis.cpp.obj' -c ../src/dxbc/dxbc_analysis.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../dxvk/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../dxvk/dxvk_include.h:14,
                 from ../src/dxbc/../dxvk/dxvk_shader.h:5,
                 from ../src/dxbc/dxbc_include.h:3,
                 from ../src/dxbc/dxbc_common.h:3,
                 from ../src/dxbc/dxbc_chunk_isgn.h:5,
                 from ../src/dxbc/dxbc_analysis.h:3,
                 from ../src/dxbc/dxbc_analysis.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
[57/247] Compiling C++ object 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_compiler.cpp.obj'.
FAILED: src/dxbc/5c53ffa@@dxbc@sta/dxbc_compiler.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/dxbc/5c53ffa@@dxbc@sta -Isrc/dxbc -I../src/dxbc -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_compiler.cpp.obj' -MF 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_compiler.cpp.obj.d' -o 'src/dxbc/5c53ffa@@dxbc@sta/dxbc_compiler.cpp.obj' -c ../src/dxbc/dxbc_compiler.cpp
In file included from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_algo.h:61,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/functional:65,
                 from ../src/dxbc/../spirv/../util/rc/util_rc_ptr.h:3,
                 from ../src/dxbc/../spirv/spirv_include.h:12,
                 from ../src/dxbc/../spirv/spirv_instruction.h:6,
                 from ../src/dxbc/../spirv/spirv_code_buffer.h:8,
                 from ../src/dxbc/../spirv/spirv_module.h:5,
                 from ../src/dxbc/dxbc_compiler.h:6,
                 from ../src/dxbc/dxbc_compiler.cpp:1:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h: In function ‘void std::pop_heap(_RAIter, _RAIter, _Compare)’:
/usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h:320:51: error: expected ‘)’ before ‘;’ token
  320 |    std::__pop_heap(__first,(__last, __last, __cmp);
      |                   ~                               ^
      |                                                   )
ninja: build stopped: subcommand failed.

As you can see from the meson command I have all the dependencies (the winelib check has always said no, I can't figure that whole thing out but I don't think it matters here), and I haven't edited any files, like I said this fails with a completely fresh cloned repo. Doing it the "easy way" from the guide, using package-release.sh also fails with the same errors at the same step.

System information

  • GPU: AMD Radeon RX 580
  • Driver: xf86-video-amdgpu, mesa-aco-git 20.0.0_devel
  • Wine version: Staging 4.21
  • DXVK version: 1.5-3
  • OS: Arch Linux kernel 5.4.5-arch1-1
Ddoitsujin maintainer 2019-12-21 github

Something is borked in your STL for some reason, this error is not inside DXVK code. Where did you get your mingw from?

Ggardotd426 2019-12-21 github

From the AUR? I just reinstalled it, too. Do I need it from somewhere else?

Ggardotd426 2019-12-21 github

These are the packages I have installed according to yay -Q | grep -i mingw

mingw-w64-binutils 2.33.1-1
mingw-w64-crt 7.0.0-1
mingw-w64-gcc 9.2.0-1
mingw-w64-headers 7.0.0-1
mingw-w64-winpthreads 7.0.0-1
Ddoitsujin maintainer 2019-12-21 github

Weird. I'm running the exact same versions and it's working fine here :woman_shrugging:

However, line 320 in /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/stl_heap.h looks different here:

	  std::__pop_heap(__first, __last, __last, __cmp);

So, uh, maybe try reinstalling mingw-w64-gcc or try fixing it manually, I guess.

Ggardotd426 2019-12-21 github

Oh my god this is driving me insane. So, I went to reinstall mingw-w64-gcc, and it absolutely will not build, which has been an issue before. I've tried it like 6 times, and it just gives a bullshit Makefile error with no information. I know that's not your purview. Anyway, So I then decided to just go ahead and edit the file manually as you suggested. The line is the exact same as what you said yours looks like. Like that second weird parenthesis that shows up in the error isn't in my file. Now when I try to run ninja install I get a different error:

[55/182] Generating 'src/d3d11/bca5607@@d3d11@sha/dxgi_presenter_vert.h'.
../src/d3d11/../dxgi/shaders/dxgi_presenter_vert.vert
[57/182] Generating 'src/d3d11/bca5607@@d3d11@sha/dxgi_presenter_frag.h'.
../src/d3d11/../dxgi/shaders/dxgi_presenter_frag.frag
[82/182] Compiling C++ object 'src/d3d...5607@@d3d11@sha/d3d11_buffer.cpp.obj'.
FAILED: src/d3d11/bca5607@@d3d11@sha/d3d11_buffer.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/d3d11/bca5607@@d3d11@sha -Isrc/d3d11 -I../src/d3d11 -I.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/d3d11/bca5607@@d3d11@sha/d3d11_buffer.cpp.obj' -MF 'src/d3d11/bca5607@@d3d11@sha/d3d11_buffer.cpp.obj.d' -o 'src/d3d11/bca5607@@d3d11@sha/d3d11_buffer.cpp.obj' -c ../src/d3d11/d3d11_buffer.cpp
In file included from /usr/x86_64-w64-mingw32/include/corecrt.h:10,
                 from /usr/x86_64-w64-mingw32/include/crtdefs.h:10,
                 from /usr/x86_64-w64-mingw32/include/stddef.h:7,
                 from /usr/lib/gcc/x86_64-w64-mingw32/9.2.0/include/stddef.h:1,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/cxxabi_init_exception.h:38,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/bits/exception_ptr.h:38,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/exception:143,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/stdexcept:38,
                 from /usr/x86_64-w64-mingw32/include/c++/9.2.0/array:39,
                 from ../src/d3d11/../dxvk/../util/log/log.h:3,
                 from ../src/d3d11/../dxvk/dxvk_include.h:3,
                 from ../src/d3d11/../dxvk/dxvk_device_info.h:3,
                 from ../src/d3d11/../dxvk/dxvk_adapter.h:3,
                 from ../src/d3d11/../dxvk/dxvk_device.h:3,
                 from ../src/d3d11/d3d11_buffer.h:3,
                 from ../src/d3d11/d3d11_buffer.cpp:1:
/usr/x86_64-w64-mingw32/include/ocidl.h:2441:1: internal compiler error: Segmentation fault
 2441 | __CRT_UUID_DECL(IPropertyPageSite, 0xb196b28c, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07)
      | ^~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
[95/182] Compiling C++ object 'src/d3d...607@@d3d11@sha/d3d11_context.cpp.obj'.
ninja: build stopped: subcommand failed.

I have no idea what the deal is, but I've tried it on an Arch install and 2 different Manjaro installs. What the hell. Oh well, it's not DXVK so I guess I'll have to figure something else out.

Ddoitsujin maintainer 2019-12-21 github

Are you running a first-gen Ryzen CPU by any chance? I heard from multiple users that GCC 9.2 causes some trouble with those for some reason.

Ggardotd426 2020-02-01 github

I'm running second-gen, but I think it was a memory issue having my RAM clocked at 3200MHz, GloriousEggroll told me first and second-gen ryzen seem to not like going above 3000MHz. I lowered it to 3000MHz and it works.

Nothing extracted yet.