[regression][bisected] MSVC: Build failure in libmesa_util when targeting x86 32-bit
Before submitting your bug report:
- Check if a new version of Mesa is available which might have fixed the problem.
Version tested was latest - 22.0.0.
- If you can, check if the latest development version (git main) works better.
It doesn't. Tested 22.1.0-devel-adea0960.
- Check if your bug has already been reported here.
Couldn't find any similar issue opened since this became a problem.
- For any logs, backtraces, etc - use code blocks
Build configuration command: meson.exe build/msvc-x86 --buildtype=release -Db_ndebug=true --prefix=C:/Software/DEVELO~1/projects/mesa-dist-win/dist/x86 -Dc_std=c17 -Db_vscrt=mt -Dzlib:default_library=static -Dcpp_std=vc++latest -Dcpp_rtti=true -Dllvm=enabled -Dshared-llvm=disabled --cmake-prefix-path=C:/Software/DEVELO~1/projects/llvm/build/x86 --backend=ninja -Dgallium-drivers=swrast -Dvulkan-drivers= -Dgallium-d3d10umd=false -Dspirv-to-dxil=false -Dshared-glapi=enabled -Dosmesa=false -Dbuild-tests=false -Dmicrosoft-clc=disabled -Dgallium-opencl=disabled
FAILED: src/util/libmesa_util.a.p/u_debug_stack.c.obj
"cl" "-Isrc\util\libmesa_util.a.p" "-Isrc\util" "-I..\..\src\util" "-Iinclude" "-I..\..\include" "-Isrc" "-I..\..\src" "-Isrc\mapi" "-I..\..\src\mapi" "-Isrc\mesa" "-I..\..\src\mesa" "-I..\..\src\gallium\include" "-Isrc\gallium\auxiliary" "-I..\..\src\gallium\auxiliary" "-Isubprojects\zlib-1.2.11" "-I..\..\subprojects\zlib-1.2.11" "-DNDEBUG" "/MT" "/nologo" "/showIncludes" "/utf-8" "/W2" "/std:c17" "/O2" "/Gw" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DPACKAGE_VERSION=\"22.0.0\"" "-DPACKAGE_BUGREPORT=\"https://gitlab.freedesktop.org/mesa/mesa/-/issues\"" "-DHAVE_WINDOWS_PLATFORM" "-DHAVE_SURFACELESS_PLATFORM" "-DUSE_ELF_TLS" "-DUSE_TLS_BEHIND_FUNCTIONS" "-DENABLE_ST_OMX_BELLAGIO=0" "-DENABLE_ST_OMX_TIZONIA=0" "-DEGL_NO_X11" "-D_WINDOWS" "-D_WIN32_WINNT=0x0A00" "-DWINVER=0x0A00" "-DPIPE_SUBSYSTEM_WINDOWS_USER" "-D_USE_MATH_DEFINES" "-DVC_EXTRALEAN" "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_SECURE_NO_DEPRECATE" "-D_SCL_SECURE_NO_WARNINGS" "-D_SCL_SECURE_NO_DEPRECATE" "-D_ALLOW_KEYWORD_MACROS" "-D_HAS_EXCEPTIONS=0" "-DNOMINMAX" "-DMISSING_64BIT_ATOMICS" "-DHAVE_STRTOF" "-DHAVE_QSORT_S" "-DHAVE_ZLIB" "-DHAVE_COMPRESSION" "-DLLVM_AVAILABLE" "-DMESA_LLVM_VERSION_STRING=\"13.0.1\"" "-DLLVM_IS_SHARED=0" "-DDRAW_LLVM_AVAILABLE" "-DMESA_EXECMEM" "-DVK_USE_PLATFORM_WIN32_KHR" "/wd4018" "/wd4056" "/wd4244" "/wd4267" "/wd4305" "/wd4351" "/wd4756" "/wd4800" "/wd4996" "/wd4291" "/wd4146" "/wd4200" "/wd4624" "/wd4309" "/wd4838" "/wd5105" "/we4020" "/we4024" "/Zc:__cplusplus" "/Fdsrc\util\libmesa_util.a.p\u_debug_stack.c.pdb" /Fosrc/util/libmesa_util.a.p/u_debug_stack.c.obj "/c" ../../src/util/u_debug_stack.c
../../src/util/u_debug_stack.c(260): error C2094: label 'frame_pointer' was undefined
System information
https://github.com/pal1000/mesa-dist-win/blob/22.0.0/buildinfo/msvc.txt
More information
Due to failure happening in libmesa_util, build fails even without LLVM and RTTI. Log above is from a build with LLVM.
Regression
- Did it used to work? It can greatly help to know when the issue started.
22.0.0-rc1 was good.
Edited by Prodea Alexandru-Liviu