Build failures on windows #236
Replies: 3 comments 1 reply
-
|
I see from your log that you are using Meson without Ninja build. This may cause Windows SDK and C/C++ toolset selection not to be honored. At least it seams you got lucky with Windows SDK, but your log doesn't include path to cl.exe and picking the wrong version is no longer supported.. The Python error is also concerning, but it may not be the cause for build failure. |
Beta Was this translation helpful? Give feedback.
-
|
Could you take a look at the complete logs ? |
Beta Was this translation helpful? Give feedback.
-
|
I have a fix for Python problem in 692b7fc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @pal1000 , I am trying to build latest mesa-dist-win but seeing a lot of compilation failures.
Tried with both ninja and vs as backend but same errors.
Using default mesa branch while cloning.
Let me know if I am missing something.
Running build.cmd,
Available compile toolchains
1.Visual Studio Professional 2022 v17.14.7
2. MSYS2 Mingw-w64
Select toolchain:1
Select Windows SDK installation
Note: This wom't work with Meson Visual Studio backend - mesonbuild/meson#3202
Enter choice:1
Select Visual Studio C/C++ toolset:
Note: Visual Studio C/C++ toolset 14.50 and newer dropped Windows 7/Server 2008 R2 support - #233.
Enter choice:2
Select processor architecture to build for
Enter choice:2
Use previous LLVM major version (y/n):y
Select Python installation
Select Python version by entering its index from the table above:1
No suitable Python runtime found
Pass --list (-0) to see all detected environments on your machine
or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget
or open the Microsoft Store to the requested version.
No suitable Python runtime found
Pass --list (-0) to see all detected environments on your machine
or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget
or open the Microsoft Store to the requested version.
Using Python from python.exe.
Creating virtual environment...
...
...
...
f3793cb@@getopt@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\getopt\libgetopt.a
Performing Custom Build Tools
Performing Custom Build Tools
Performing Custom Build Tools
Performing Custom Build Tools
Performing Custom Build Tools
093e555@@d3dx12-format-properties@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\subprojects\DirectX-Headers\libd3dx
12-format-properties.a
Performing Custom Build Tools
while executing ['C:\ProgramData\chocolatey\bin\win_bison.EXE', '-o', 'C:/repos/pal/mesa/build/msvc-x64/src/mesa/
program/program_parse.tab.c', '--defines=C:/repos/pal/mesa/build/msvc-x64/src/mesa/program/program_parse.tab.h', 'C:/
repos/pal/mesa/build/msvc-x64/../../src/mesa/program/program_parse.y']
--- stdout ---
--- stderr ---
C:/repos/pal/mesa/build/msvc-x64/../../src/mesa/program/program_parse.y:135.9-19: error: %define variable 'parse.erro
r' is not used
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5)
: error MSB8066: Custom build for 'C:\repos\pal\mesa\build\msvc-x64\meson-private\custom_target.rule' exited with code
Performing Custom Build Tools
Performing Custom Build Tools
Performing Custom Build Tools
...
...
...
d3d12_suballoc_mediabuffer.cpp
encode_h264.cpp
719bc35@@xmlconfig@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\util\libxmlconfig.a
7c11edf@@virglcommon@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\gallium\winsys\virgl\common\libvirglcommon.a
f7e99ed@@ws_null@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\gallium\winsys\sw\null\libws_null.a
7fd403a@@wsw@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\gallium\winsys\sw\wrapper\libwsw.a
962fc52@@galliumvlwinsys@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\gallium\auxiliary\libgalliumvlwinsys.a
f050408@@glapi_bridge@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\mesa\glapi\glapi\libglapi_bridge.a
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(141,7): error C2065: 'D3D_FEATURE_LEVEL_1_0_GE
NERIC': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(139,35): error C2737: 'levels': const object m
ust be initialized [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafoundation_st_
h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29): error C2672: 'RtlpNumberOf': no match
ing overloaded function found [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h264enc@sta.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h(1314,8):
could be 'char (*RtlpNumberOf(__unaligned T (&)[N]))[N]'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
Failed to specialize function template 'char (*RtlpNumberOf(__unaligned T (&)[N]))[N]'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
With the following template arguments:
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
'T=const D3D_FEATURE_LEVEL'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
'N=0'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
cannot allocate an array of constant size 0
844a9ab@@glapi@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\mesa\glapi\shared-glapi\libglapi.a
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(141,7): error C2065: 'D3D_FEATURE_LEVEL_1_0_GE
NERIC': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(139,35): error C2737: 'levels': const object m
ust be initialized [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafoundation_st_
h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29): error C2672: 'RtlpNumberOf': no match
ing overloaded function found [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h265enc@sta.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h(1314,8):
could be 'char (*RtlpNumberOf(__unaligned T (&)[N]))[N]'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
Failed to specialize function template 'char (*RtlpNumberOf(__unaligned T (&)[N]))[N]'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
With the following template arguments:
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
'T=const D3D_FEATURE_LEVEL'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
'N=0'
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mfd3dmanager.cpp(147,29):
cannot allocate an array of constant size 0
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(409,13): error C2065: 'MFSampleExtension_VideoEncode
SatdMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@Mediaf
oundation_st_h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(435,13): error C2065: 'MFSampleExtension_VideoEncode
BitsUsedMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@me
diafoundation_st_h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(459,13): error C2065: 'MFSampleExtension_VideoEncode
QPMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\hmft_entrypoints.cpp(102,4): error C2065: 'MF_SA_D3D12_AWARE':
undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafoundation_
st_h264enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(249,21): error C2065: 'CODECAPI_AVEncVideoEnableFr
amePsnrYuv': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@med
iafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(257,21): error C2065: 'CODECAPI_AVEncVideoOutputQP
MapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@m
ediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(261,21): error C2065: 'CODECAPI_AVEncVideoOutputBi
tsUsedMapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17
f00@@mediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(265,21): error C2065: 'CODECAPI_AVEncVideoSatdMapB
lockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@media
foundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(390,19): error C2065: 'CODECAPI_AVEncVideoEnableFr
amePsnrYuv': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@med
iafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(399,19): error C2065: 'CODECAPI_AVEncVideoOutputQP
MapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@m
ediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(408,19): error C2065: 'CODECAPI_AVEncVideoOutputBi
tsUsedMapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17
f00@@mediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(417,19): error C2065: 'CODECAPI_AVEncVideoSatdMapB
lockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@media
foundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(917,21): error C2065: 'CODECAPI_AVEncVideoEnableFr
amePsnrYuv': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@med
iafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(932,21): error C2065: 'CODECAPI_AVEncVideoOutputQP
MapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@m
ediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(939,21): error C2065: 'CODECAPI_AVEncVideoOutputBi
tsUsedMapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17
f00@@mediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(947,21): error C2065: 'CODECAPI_AVEncVideoSatdMapB
lockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@media
foundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(1675,21): error C2065: 'CODECAPI_AVEncVideoEnableF
ramePsnrYuv': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@me
diafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(1763,21): error C2065: 'CODECAPI_AVEncVideoOutputQ
PMapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@
mediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(1789,21): error C2065: 'CODECAPI_AVEncVideoOutputB
itsUsedMapBlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad1
7f00@@mediafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\codecapi.cpp(1816,21): error C2065: 'CODECAPI_AVEncVideoSatdMap
BlockSize': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@medi
afoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\mftransform.cpp(1173,7): error C2065: 'MFSampleExtension_FrameP
snrYuv': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafo
undation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(409,13): error C2065: 'MFSampleExtension_VideoEncode
SatdMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@Mediaf
oundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(435,13): error C2065: 'MFSampleExtension_VideoEncode
BitsUsedMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@me
diafoundation_st_h265enc@sta.vcxproj]
C:\repos\pal\mesa\src\gallium\frontends\mediafoundation\encode.cpp(459,13): error C2065: 'MFSampleExtension_VideoEncode
QPMap': undeclared identifier [C:\repos\pal\mesa\build\msvc-x64\src\gallium\frontends\mediafoundation\ad17f00@@mediafou
ndation_st_h265enc@sta.vcxproj]
f66e3e9@@wsgdi@sta.vcxproj -> C:\repos\pal\mesa\build\msvc-x64\src\gallium\winsys\sw\gdi\libwsgdi.a
Beta Was this translation helpful? Give feedback.
All reactions