Zink compile fails on gcc -m32 target
Arch Linux gcc 10.2.0-1
Compiling for lib32 multilib
The Meson build system
Version: 0.55.1
Source dir: /home/parker/build/lib32-mesa-git/src/mesa
Build dir: /home/parker/build/lib32-mesa-git/src/_build
Build type: native build
Program python found: YES
Project name: mesa
Project version: 20.3.0-devel
Using 'CC' from environment with value: 'gcc -m32'
Using 'CFLAGS' from environment with value: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Using 'CXX' from environment with value: 'g++ -m32'
Using 'CXXFLAGS' from environment with value: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Using 'CC' from environment with value: 'gcc -m32'
Using 'CFLAGS' from environment with value: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C compiler for the host machine: gcc -m32 (gcc 10.2.0 "gcc (GCC) 10.2.0")
C linker for the host machine: gcc -m32 ld.bfd 2.35
Using 'CXX' from environment with value: 'g++ -m32'
Using 'CXXFLAGS' from environment with value: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C++ compiler for the host machine: g++ -m32 (gcc 10.2.0 "g++ (GCC) 10.2.0")
C++ linker for the host machine: g++ -m32 ld.bfd 2.35
Host machine cpu family: x86
Host machine cpu: i686
Using 'PKG_CONFIG' from environment with value: '/usr/bin/i686-pc-linux-gnu-pkg-config'
Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (1.7.3)
Run-time dependency vdpau found: YES 1.4
Run-time dependency vulkan found: YES 1.2.149
Program glslangValidator found: YES
Run-time dependency libva found: YES 1.8.0
Program python3 found: YES (/usr/bin/python3)
Fetching value of define "ETIME" : 62
Checking for function "bswap32" : YES
Checking for function "bswap64" : YES
Checking for function "clz" : YES
Checking for function "clzll" : YES
Checking for function "ctz" : YES
Checking for function "expect" : YES
Checking for function "ffs" : YES
Checking for function "ffsll" : YES
Checking for function "popcount" : YES
Checking for function "popcountll" : YES
Checking for function "unreachable" : YES
Compiler for C supports function attribute const: YES
Compiler for C supports function attribute flatten: YES
Compiler for C supports function attribute malloc: YES
Compiler for C supports function attribute pure: YES
Compiler for C supports function attribute unused: YES
Compiler for C supports function attribute warn_unused_result: YES
Compiler for C supports function attribute weak: YES
Compiler for C supports function attribute format: YES
Compiler for C supports function attribute packed: YES
Compiler for C supports function attribute returns_nonnull: YES
Compiler for C supports function attribute alias: YES
Compiler for C supports function attribute noreturn: YES
Compiler for C supports function attribute visibility:hidden: YES
Checking if "__uint128_t" compiles: NO
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=empty-body: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Werror=int-conversion: YES
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-format-truncation -Wformat-truncation: YES
Compiler for C supports arguments -fno-math-errno: YES
Compiler for C supports arguments -fno-trapping-math: YES
Compiler for C supports arguments -Qunused-arguments: NO
Compiler for C supports arguments -fno-common: YES
Compiler for C supports arguments -Werror=format: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C++ supports arguments -Werror=return-type: YES
Compiler for C++ supports arguments -Werror=empty-body: YES
Compiler for C++ supports arguments -Wno-non-virtual-dtor -Wnon-virtual-dtor: YES
Compiler for C++ supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C++ supports arguments -Wno-format-truncation -Wformat-truncation: YES
Compiler for C++ supports arguments -fno-math-errno: YES
Compiler for C++ supports arguments -fno-trapping-math: YES
Compiler for C++ supports arguments -Qunused-arguments: NO
Compiler for C++ supports arguments -flifetime-dse=1: YES
Compiler for C++ supports arguments -Werror=format: YES
Compiler for C++ supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wno-override-init -Woverride-init: YES
Compiler for C supports arguments -Wno-initializer-overrides -Winitializer-overrides: NO
Compiler for C supports arguments -Werror=pointer-arith: YES
Compiler for C++ supports arguments -Werror=pointer-arith: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C++ supports arguments -Werror=vla: YES
Compiler for C supports arguments -Werror=gnu-empty-initializer: NO
Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO
Checking if "GCC atomic builtins" compiles: YES
Checking if "GCC atomic builtins required -latomic" links: YES
Checking if "GCC 64bit atomics" with dependency not-found links: YES
Library ws2_32 found: NO
Header <sys/sysmacros.h> has symbol "major" : YES
Header <sys/sysmacros.h> has symbol "minor" : YES
Header <sys/sysmacros.h> has symbol "makedev" : YES
Header <sys/mkdev.h> has symbol "major" : NO
Check usable header "xlocale.h" : NO
Check usable header "linux/futex.h" : YES
Check usable header "endian.h" : YES
Check usable header "dlfcn.h" : YES
Check usable header "execinfo.h" : YES
Check usable header "sys/shm.h" : YES
Check usable header "cet.h" : YES
Checking for function "strtof" : YES
Checking for function "mkostemp" : YES
Checking for function "timespec_get" : YES
Checking for function "memfd_create" : YES
Checking for function "random_r" : YES
Checking for function "flock" : YES
Checking for function "strtok_r" : YES
Checking for function "getrandom" : YES
Header <errno.h> has symbol "program_invocation_name" : YES
Checking for function "posix_memalign" : YES
Checking whether type "struct dirent" has member "d_type" : YES
Checking if "strtod has locale support" links: YES
Checking if "Bsymbolic" links: YES
Checking if "gc-sections" links: YES
Checking if "version-script" links: YES
Checking if "dynamic-list" links: YES
Compiler for C supports link arguments -Wl,--build-id=sha1: YES
Checking for function "dlopen" : NO
Library dl found: YES
Checking for function "dladdr" with dependency -ldl: YES
Checking for function "dl_iterate_phdr" : YES
Checking for function "clock_gettime" : YES
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libzstd found: YES 1.4.5
Run-time dependency threads found: YES
Checking for function "pthread_setaffinity_np" with dependency threads: YES
Checking for function "pthread_setaffinity_np" with dependency threads: NO
Run-time dependency expat found: YES 2.2.9
Library m found: YES
Message: libdrm 2.4.102 needed because nouveau has the highest requirement
Run-time dependency libdrm_intel found: YES 2.4.102
Run-time dependency libdrm_amdgpu found: YES 2.4.102
Run-time dependency libdrm_radeon found: YES 2.4.102
Run-time dependency libdrm_nouveau found: YES 2.4.102
Run-time dependency libdrm found: YES 2.4.102
Found CMake: /usr/bin/cmake (3.18.2)
WARNING: Ignoring LLVM CMake dependency because dynamic was requested
llvm-config found: YES (/usr/bin/llvm-config32) 10.0.1
Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: YES 10.0.1
Run-time dependency libelf found: YES 0.180
Run-time dependency libglvnd found: YES 1.3.2
Program bison found: YES
Program bison found: YES 3.6.4
Program flex found: YES
Run-time dependency libunwind found: YES 1.3.1
Using 'PKG_CONFIG' from environment with value: '/usr/bin/i686-pc-linux-gnu-pkg-config'
Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (1.7.3)
Build-time dependency wayland-scanner found: YES 1.18.0
Program /usr/bin/wayland-scanner found: YES
Run-time dependency wayland-protocols found: YES 1.20
Run-time dependency wayland-client found: YES 1.18.0
Run-time dependency wayland-server found: YES 1.18.0
Run-time dependency wayland-egl-backend found: YES 3
Run-time dependency x11 found: YES 1.6.11
Run-time dependency xext found: YES 1.3.4
Run-time dependency xdamage found: YES 1.1.5
Run-time dependency xfixes found: YES 5.0.3
Run-time dependency xcb-glx found: YES 1.14
Run-time dependency xcb-shm found: YES 1.14
Run-time dependency xcb found: YES 1.14
Run-time dependency x11-xcb found: YES 1.6.11
Run-time dependency xcb-dri2 found: YES 1.14
Run-time dependency xcb-dri3 found: YES 1.14
Run-time dependency xcb-present found: YES 1.14
Run-time dependency xcb-sync found: YES 1.14
Run-time dependency xshmfence found: YES 1.3
Run-time dependency glproto found: YES 1.4.17
Run-time dependency dri2proto found: YES 2.8
Run-time dependency xxf86vm found: YES 1.1.4
Run-time dependency xcb-xfixes found: YES 1.14
Run-time dependency xcb-randr found: YES 1.14
Run-time dependency xrandr found: YES 1.5.2
Library sensors found: YES
Compiler for C supports link arguments -Wl,--gc-sections: YES
Compiler for C supports arguments -ffunction-sections: YES
Compiler for C supports arguments -fdata-sections: YES
Program nm found: YES
Program symbols-check.py found: YES
Program install_megadrivers.py found: YES
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES (cached)
Compiler for C supports link arguments -Wl,-z,relro: YES (cached)
Program /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py found: YES (/usr/bin/python /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
Checking for function "mincore" : YES
Program /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py found: YES (/usr/bin/python /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
WARNING: Library target 'OSMesa' has 'name_prefix' set. Compilers may not find it from its '-lOSMesa' linker flag in the 'osmesa.pc' pkg-config file.
WARNING: Library target 'OSMesa' has 'name_prefix' set. Compilers may not find it from its '-lOSMesa' linker flag in the 'osmesa-uninstalled.pc' pkg-config file.
Program /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py found: YES (/usr/bin/python /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
Program /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py found: YES (/usr/bin/python /home/parker/build/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
Configuring xa_tracker.h using configuration
Message: Configuration summary:
prefix: /usr
libdir: lib32
includedir: include
OpenGL: yes (ES1: no ES2: yes)
OSMesa: libOSMesa(Gallium)
DRI platform: drm
DRI drivers: i915 i965 r200 r100 nouveau
DRI driver dir: /usr/lib32/dri
GLX: DRI-based
EGL: yes
EGL drivers: builtin:egl_dri2 builtin:egl_dri3
GBM: yes
EGL/Vulkan/VL platforms: x11 wayland surfaceless drm
Vulkan drivers: amd intel
Vulkan ICD dir: share/vulkan/icd.d
llvm: yes
llvm-version: 10.0.1
Gallium drivers: r300 r600 radeonsi nouveau svga swrast virgl iris zink
Gallium st: mesa xa vdpau va nine
HUD lmsensors: yes
Shared-glapi: yes
Build targets in project: 232
Option buildtype is: plain [default: debugoptimized]
Option b_ndebug is: false [default: if-release]
Found ninja-1.10.1 at /usr/bin/ninja
Core properties:
Source dir /home/parker/build/lib32-mesa-git/src/mesa
Build dir /home/parker/build/lib32-mesa-git/src/_build
Main project options:
Core options Current Value Possible Values Description
------------ ------------- --------------- -----------
auto_features auto [enabled, disabled, auto] Override value of all 'auto' features
backend ninja [ninja, vs, vs2010, vs2015, vs2017, vs2019, xcode] Backend to use
buildtype plain [plain, debug, debugoptimized, release, minsize, custom] Build type to use
debug false [true, false] Debug
default_library shared [shared, static, both] Default library type
force_fallback_for [] Force fallback for those subprojects
install_umask 0022 [preserve, 0000-0777] Default umask to apply on permissions of installed files
layout mirror [mirror, flat] Build directory layout
optimization 0 [0, g, 1, 2, 3, s] Optimization level
strip false [true, false] Strip targets on install
unity off [on, off, subprojects] Unity build
unity_size 4 >=2 Unity block size
warning_level 1 [0, 1, 2, 3] Compiler warning level to use
werror false [true, false] Treat warnings as errors
wrap_mode nofallback [default, nofallback, nodownload, forcefallback] Wrap mode
cmake_prefix_path [] List of additional prefixes for cmake to search
pkg_config_path [] List of additional paths for pkg-config to search
Backend options Current Value Possible Values Description
--------------- ------------- --------------- -----------
backend_max_links 0 >=0 Maximum number of linker processes to run or 0 for no limit
Base options Current Value Possible Values Description
------------ ------------- --------------- -----------
b_asneeded true [true, false] Use -Wl,--as-needed when linking
b_colorout always [auto, always, never] Use colored output
b_coverage false [true, false] Enable coverage tracking.
b_lto true [true, false] Use link time optimization
b_lundef true [true, false] Use -Wl,--no-undefined when linking
b_ndebug false [true, false, if-release] Disable asserts
b_pch true [true, false] Use precompiled headers
b_pgo off [off, generate, use] Use profile guided optimization
b_pie false [true, false] Build executables as position independent
b_sanitize none [none, address, thread, undefined, memory, address,undefined] Code sanitizer to use
b_staticpic true [true, false] Build static libraries as position independent
Compiler options Current Value Possible Values Description
---------------- ------------- --------------- -----------
c_args [-march=x86-64, -mtune=generic, -O2, -pipe, -fno-plt, -D_FORTIFY_SOURCE=2] Extra arguments passed to the c compiler
c_link_args [-march=x86-64, -mtune=generic, -O2, -pipe, -fno-plt, -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now] Extra arguments passed to the c linker
c_std c99 [none, c89, c99, c11, c17, c18, gnu89, gnu99, gnu11, gnu17, C language standard to use
gnu18]
cpp_args [-march=x86-64, -mtune=generic, -O2, -pipe, -fno-plt, -D_FORTIFY_SOURCE=2] Extra arguments passed to the cpp compiler
cpp_debugstl false [true, false] STL debug mode
cpp_eh default [none, default, a, s, sc] C++ exception handling type.
cpp_link_args [-march=x86-64, -mtune=generic, -O2, -pipe, -fno-plt, -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now] Extra arguments passed to the cpp linker
cpp_rtti true [true, false] Enable RTTI
cpp_std c++14 [none, c++98, c++03, c++11, c++14, c++17, c++1z, c++2a, C++ language standard to use
gnu++03, gnu++11, gnu++14, gnu++17, gnu++1z, gnu++2a]
Directories Current Value Possible Values Description
----------- ------------- --------------- -----------
bindir bin Executable directory
datadir share Data file directory
includedir include Header file directory
infodir share/info Info page directory
libdir lib32 Library directory
libexecdir libexec Library executable directory
localedir share/locale Locale data directory
localstatedir /var Localstate data directory
mandir share/man Manual page directory
prefix /usr Installation prefix
sbindir sbin System executable directory
sharedstatedir /var/lib Architecture-independent data directory
sysconfdir /etc Sysconf data directory
Testing options Current Value Possible Values Description
--------------- ------------- --------------- -----------
errorlogs true [true, false] Whether to print the logs from failing tests
stdsplit true [true, false] Split stdout and stderr in test logs
Project options Current Value Possible Values Description
--------------- ------------- --------------- -----------
android-stub false [true, false] Build against android-stub
build-aco-tests false [true, false] Build ACO tests. These require RADV and glslang but not an AMD GPU.
build-tests false [true, false] Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.
d3d-drivers-path Location of D3D drivers. Default: $libdir/d3d
dri-drivers [i915, i965, r200, r100, nouveau] [auto, i915, i965, r100, r200, nouveau, swrast] List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built
dri-drivers-path Location to install dri drivers. Default: $libdir/dri.
dri-search-path Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.
dri3 enabled [auto, true, false, disabled, enabled] enable support for dri3
egl enabled [auto, true, false, enabled, disabled] Build support for EGL platform
egl-lib-suffix Suffix to append to EGL library name. Default: none.
gallium-drivers [r300, r600, radeonsi, nouveau, svga, swrast, virgl, iris, zink] [auto, kmsro, radeonsi, r300, r600, nouveau, freedreno, List of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built
swrast, v3d, vc4, etnaviv, tegra, i915, svga, virgl, swr,
panfrost, iris, lima, zink]
gallium-extra-hud true [true, false] Enable HUD block/NIC I/O HUD status support
gallium-nine true [true, false] build gallium "nine" Direct3D 9.x frontend.
gallium-omx disabled [auto, disabled, bellagio, tizonia] enable gallium omx frontend.
gallium-opencl disabled [icd, standalone, disabled] build gallium "clover" OpenCL frontend.
gallium-va enabled [auto, true, false, enabled, disabled] enable gallium va frontend.
gallium-vdpau enabled [auto, true, false, enabled, disabled] enable gallium vdpau frontend.
gallium-xa enabled [auto, true, false, enabled, disabled] enable gallium xa frontend.
gallium-xvmc disabled [auto, true, false, enabled, disabled] enable gallium xvmc frontend.
gbm enabled [auto, true, false, enabled, disabled] Build support for gbm platform
gles-lib-suffix Suffix to append to GLES library names. Default: none.
gles1 disabled [auto, true, false, enabled, disabled] Build support for OpenGL ES 1.x
gles2 enabled [auto, true, false, enabled, disabled] Build support for OpenGL ES 2.x and 3.x
glvnd true [true, false] Enable GLVND support.
glx dri [auto, disabled, dri, xlib, gallium-xlib] Build support for GLX platform
glx-direct true [true, false] Enable direct rendering in GLX and EGL for DRI
glx-read-only-text false [true, false] Disable writable .text section on x86 (decreases performance)
install-intel-gpu-tests false [true, false] Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.
libunwind enabled [auto, true, false, enabled, disabled] Use libunwind for stack-traces
llvm enabled [auto, true, false, enabled, disabled] Build with LLVM support.
lmsensors enabled [auto, true, false, enabled, disabled] Enable HUD lmsensors support.
omx-libs-path path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.
opencl-spirv false [true, false] build gallium "clover" OpenCL frontend with SPIR-V binary support.
opengl true [true, false] Build support for OpenGL (all versions)
osmesa gallium [none, classic, gallium] Build OSmesa.
osmesa-bits 8 [8, 16, 32] Number of channel bits for OSMesa.
platform-sdk-version 25 >=25, <=28 Android Platform SDK version. Default: Nougat version.
platforms [x11, wayland] [auto, x11, wayland, drm, surfaceless, haiku, android, window systems to support. If this is set to `auto`, all platforms applicable will be enabled.
windows]
power8 auto [auto, true, false, enabled, disabled] Enable power8 optimizations.
prefer-iris true [true, false] Prefer new Intel iris driver over older i965 driver
selinux false [true, false] Build an SELinux-aware Mesa
shader-cache auto [auto, true, false, enabled, disabled] Build with on-disk shader cache support
shared-glapi enabled [auto, true, false, enabled, disabled] Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere
shared-llvm auto [auto, true, false, enabled, disabled] Whether to link LLVM shared or statically.
shared-swr true [true, false] Whether to link SWR shared or statically.
swr-arches [avx, avx2] [avx, avx2, knl, skx] Architectures to build SWR support for.
tools [] [drm-shim, etnaviv, freedreno, glsl, intel, intel-ui, nir, List of tools to build. (Note: `intel-ui` selects `intel`)
nouveau, xvmc, lima, panfrost, all]
va-libs-path path to put va libraries. defaults to $libdir/dri.
valgrind disabled [auto, true, false, enabled, disabled] Build with valgrind support
vdpau-libs-path path to put vdpau libraries. defaults to $libdir/vdpau.
vulkan-device-select-layer true [true, false] Whether to build the vulkan device select layer
vulkan-drivers [amd, intel] [auto, amd, freedreno, intel, swrast] List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built
vulkan-icd-dir Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d
vulkan-overlay-layer true [true, false] Whether to build the vulkan overlay layer
xlib-lease auto [auto, true, false, enabled, disabled] Enable VK_EXT_acquire_xlib_display.
xvmc-libs-path path to put xvmc libraries. defaults to $libdir.
zstd enabled [auto, true, false, enabled, disabled] Use ZSTD instead of ZLIB in some cases.
ninja: Entering directory `_build'
[410/2397] Generating overlay.vert.spv.h with a custom command
../mesa/src/vulkan/overlay-layer/overlay.vert
[411/2397] Generating overlay.frag.spv.h with a custom command
../mesa/src/vulkan/overlay-layer/overlay.frag
[2028/2397] Compiling C object src/gallium/drivers/nouveau/libnouveau.a.p/nouveau_buffer.c.o
../mesa/src/gallium/drivers/nouveau/nouveau_buffer.c: In function ‘nouveau_buffer_create_from_user’:
../mesa/src/gallium/drivers/nouveau/nouveau_buffer.c:765:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
765 | buffer->address = (uint64_t)user_ptr;
| ^
[2031/2397] Compiling C object src/gallium/drivers/nouveau/libnouveau.a.p/nouveau_screen.c.o
../mesa/src/gallium/drivers/nouveau/nouveau_screen.c: In function ‘nouveau_screen_init’:
../mesa/src/gallium/drivers/nouveau/nouveau_screen.c:264:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
264 | .unmanaged_addr = (uint64_t)screen->svm_cutout,
| ^
[2290/2397] Compiling C object src/gallium/drivers/zink/libzink.a.p/zink_program.c.o
FAILED: src/gallium/drivers/zink/libzink.a.p/zink_program.c.o
gcc -m32 -Isrc/gallium/drivers/zink/libzink.a.p -Isrc/gallium/drivers/zink -I../mesa/src/gallium/drivers/zink -Iinclude -I../mesa/include -Isrc -I../mesa/src -Isrc/mapi -I../mesa/src/mapi -Isrc/mesa -I../mesa/src/mesa -I../mesa/src/gallium/include -Isrc/gallium/auxiliary -I../mesa/src/gallium/auxiliary -Isrc/compiler/nir -I../mesa/src/compiler/nir -fvisibility=hidden -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -Wl,--gc-sections -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="20.3.0-devel"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="10.0.1"' -DLLVM_IS_SHARED=1 -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -march=x86-64 -mtune=generic -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/gallium/drivers/zink/libzink.a.p/zink_program.c.o -MF src/gallium/drivers/zink/libzink.a.p/zink_program.c.o.d -o src/gallium/drivers/zink/libzink.a.p/zink_program.c.o -c ../mesa/src/gallium/drivers/zink/zink_program.c
../mesa/src/gallium/drivers/zink/zink_program.c: In function ‘get_shader_module_for_stage’:
../mesa/src/gallium/drivers/zink/zink_program.c:276:11: error: assignment to ‘VkShaderModule’ {aka ‘long long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
276 | mod = entry->data;
| ^
../mesa/src/gallium/drivers/zink/zink_program.c:281:91: error: passing argument 4 of ‘_mesa_hash_table_insert_pre_hashed’ makes pointer from integer without a cast [-Werror=int-conversion]
281 | _mesa_hash_table_insert_pre_hashed(prog->shader_cache->shader_cache, *hash, keybox, mod);
| ^~~
| |
| VkShaderModule {aka long long unsigned int}
In file included from ../mesa/src/compiler/nir/nir.h:31,
from ../mesa/src/gallium/drivers/zink/zink_compiler.h:30,
from ../mesa/src/gallium/drivers/zink/zink_program.c:26:
../mesa/src/util/hash_table.h:93:59: note: expected ‘void *’ but argument is of type ‘VkShaderModule’ {aka ‘long long unsigned int’}
93 | const void *key, void *data);
| ~~~~~~^~~~
../mesa/src/gallium/drivers/zink/zink_program.c: In function ‘zink_destroy_shader_cache’:
../mesa/src/gallium/drivers/zink/zink_program.c:297:47: error: passing argument 2 of ‘vkDestroyShaderModule’ makes integer from pointer without a cast [-Werror=int-conversion]
297 | vkDestroyShaderModule(screen->dev, entry->data, NULL);
| ~~~~~^~~~~~
| |
| void *
In file included from ../mesa/include/vulkan/vulkan.h:11,
from ../mesa/src/gallium/drivers/zink/zink_program.h:27,
from ../mesa/src/gallium/drivers/zink/zink_program.c:24:
../mesa/include/vulkan/vulkan_core.h:3542:49: note: expected ‘VkShaderModule’ {aka ‘long long unsigned int’} but argument is of type ‘void *’
3542 | VkShaderModule shaderModule,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../mesa/src/gallium/drivers/zink/zink_program.c: In function ‘zink_create_compute_program’:
../mesa/src/gallium/drivers/zink/zink_program.c:500:31: error: assignment to ‘VkShaderModule’ {aka ‘long long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
500 | comp->module->shader = he->data;
| ^
../mesa/src/gallium/drivers/zink/zink_program.c:503:100: error: passing argument 3 of ‘_mesa_hash_table_insert’ makes pointer from integer without a cast [-Werror=int-conversion]
503 | _mesa_hash_table_insert(comp->shader_cache->shader_cache, &shader->shader_id, comp->module->shader);
| ~~~~~~~~~~~~^~~~~~~~
| |
| VkShaderModule {aka long long unsigned int}
In file included from ../mesa/src/compiler/nir/nir.h:31,
from ../mesa/src/gallium/drivers/zink/zink_compiler.h:30,
from ../mesa/src/gallium/drivers/zink/zink_program.c:26:
../mesa/src/util/hash_table.h:90:71: note: expected ‘void *’ but argument is of type ‘VkShaderModule’ {aka ‘long long unsigned int’}
90 | _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data);
| ~~~~~~^~~~
cc1: some warnings being treated as errors
[2295/2397] Linking target src/mesa/drivers/dri/libmesa_dri_drivers.so
ninja: build stopped: subcommand failed.