gallium-opencl fail
When building with CLANG version 14.0.0 commit this error appeear in meson build
##########################################################################################################
The Meson build system
Version: 0.59.2
- Source dir: /home/kevin/mesa-git/lib32-mesa-git/src/mesa
- Build dir: /home/kevin/mesa-git/lib32-mesa-git/src/mesa/build_32
- Build type: native build
- Program python3 found: YES (/usr/bin/python3)
- Project name: mesa
- Project version: 21.3.0-devel
- C compiler for the host machine: gcc -m32 (gcc 11.1.0 "gcc (GCC) 11.1.0")
- C linker for the host machine: gcc -m32 ld.bfd 2.36.1
- C++ compiler for the host machine: g++ -m32 (gcc 11.1.0 "g++ (GCC) 11.1.0")
- C++ linker for the host machine: g++ -m32 ld.bfd 2.36.1
- Host machine cpu family: x86
- Host machine cpu: i686
- Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (1.8.0)
- Run-time dependency vdpau found: YES 1.4
- Run-time dependency vulkan found: YES 1.2.194
- Program glslangValidator found: YES (/usr/bin/glslangValidator)
- Run-time dependency libva found: YES 1.13.0
- Header <va/va.h> has symbol "VASurfaceAttribDRMFormatModifiers" with dependency libva: YES
- Run-time dependency libclc found: YES 0.2.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
- Checking for function "types_compatible_p" : 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 -Werror=thread-safety: NO
- Compiler for C supports arguments -Wno-missing-field-initializers: YES
- Compiler for C supports arguments -Wno-format-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: YES
- Compiler for C++ supports arguments -Wno-missing-field-initializers: YES
- Compiler for C++ supports arguments -Wno-format-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: YES
- Compiler for C supports arguments -Wno-initializer-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=gnu-empty-initializer: NO
- Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO
- Compiler for C supports arguments -Wmicrosoft-enum-value: 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 "sched.h" : YES
- Checking for function "sched_getaffinity" : YES
- 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 "sys/shm.h" : YES
- Check usable header "cet.h" : YES
- Check usable header "pthread_np.h" : NO
- 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
- Checking for function "qsort_r" : YES
- Checking for function "qsort_s" : NO
- 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.5.0
- Run-time dependency threads found: YES
- Checking for function "pthread_setaffinity_np" with dependency threads: YES
- Run-time dependency expat found: YES 2.4.1
- Library m found: YES
- Message: libdrm 2.4.107 needed because amdgpu has the highest requirement
- Run-time dependency libdrm_intel found: YES 2.4.107
- Run-time dependency libdrm_amdgpu found: YES 2.4.107
- Run-time dependency libdrm_radeon found: YES 2.4.107
- Run-time dependency libdrm_nouveau found: YES 2.4.107
- Run-time dependency libdrm found: YES 2.4.107
- Found CMake: /usr/bin/cmake (3.21.3)
- WARNING: CMake Toolchain: Failed to determine CMake compilers state
- llvm-config found: YES (/usr/bin/llvm-config32) 12.0.1
- Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, coverage, engine, executionengine, instcombine, instrumentation, ipo, irreader, linker, lto, mcdisassembler, mcjit, native, objcarcopts, option, profiledata, scalaropts, transformutils, coroutines, frontendopenmp) found: YES 12.0.1
- Run-time dependency libelf found: YES 0.185
- Run-time dependency libglvnd found: YES 1.3.4
- Program bison found: YES (/usr/bin/bison)
- Program bison found: YES 3.8.2 (/usr/bin/bison)
- Program flex found: YES (/usr/bin/flex)
- Run-time dependency libunwind found: YES 1.5.0
- Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (1.8.0)
- Build-time dependency wayland-scanner found: YES 1.19.0
- Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
- Run-time dependency wayland-protocols found: YES 1.23
- Run-time dependency wayland-client found: YES 1.19.0
- Run-time dependency wayland-server found: YES 1.19.0
- Run-time dependency wayland-egl-backend found: YES 3
- Run-time dependency x11 found: YES 1.7.2
- Run-time dependency xext found: YES 1.3.4
- Run-time dependency xfixes found: YES 6.0.0
- 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.7.2
- 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
- Dependency xcb-shm found: YES 1.14 (cached)
- 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 (/usr/bin/nm)
- Program symbols-check.py found: YES (/usr/bin/python /home/kevin/mesa-git/lib32-mesa-git/src/mesa/bin/symbols-check.py)
- Program install_megadrivers.py found: YES (/usr/bin/python /home/kevin/mesa-git/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
- Checking for function "mmap" : YES
- Program decode.py found: YES (/home/kevin/mesa-git/lib32-mesa-git/src/mesa/src/compiler/isaspec/decode.py)
- Program encode.py found: YES (/home/kevin/mesa-git/lib32-mesa-git/src/mesa/src/compiler/isaspec/encode.py)
- 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)
- Compiler for C++ supports arguments -Wno-unused-variable: YES
- Compiler for C++ supports arguments -Wno-unused-local-typedefs: YES
- Compiler for C++ supports arguments -Wno-unused-but-set-variable: YES
- Compiler for C++ supports arguments -Wno-maybe-uninitialized: YES
- Compiler for C++ supports arguments -fno-exceptions: YES
- Compiler for C++ supports arguments -fno-rtti: YES
- Compiler for C++ supports arguments -Wimplicit-fallthrough: YES
- Compiler for C++ supports arguments -Wshadow: YES
- Compiler for C++ supports arguments -DNOMINMAX: YES
- Compiler for C supports arguments -Wimplicit-fallthrough: YES (cached)
- Compiler for C supports arguments -Wshadow: 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/kevin/mesa-git/lib32-mesa-git/src/mesa/bin/install_megadrivers.py found: YES (/usr/bin/python /home/kevin/mesa-git/lib32-mesa-git/src/mesa/bin/install_megadrivers.py)
- Compiler for C++ supports arguments -Wno-ignored-attributes: YES
- Library Polly found: NO
- Library PollyISL found: NO
- Library clang-cpp found: YES
- Compiler for C++ supports link arguments -Wl,--rpath=/usr/lib32: YES
- Checking if "dep-clang-usable" with dependencies LLVM, -lclang-cpp, threads runs: DID NOT COMPILE
- Library clangCodeGen found: YES
- Library clangFrontendTool found: YES
- Library clangFrontend found: YES
- Library clangDriver found: YES
- Library clangSerialization found: YES
- Library clangParse found: YES
- Library clangSema found: YES
- Library clangAnalysis found: YES
- Library clangAST found: YES
- Library clangASTMatchers found: YES
- Library clangEdit found: YES
- Library clangLex found: YES
- Library clangBasic found: YES
- Checking if "dep-clang-usable" with dependencies LLVM, -lclangCodeGen, -lclangFrontendTool, -lclangFrontend, -lclangDriver, -lclangSerialization, -lclangParse, -lclangSema, -lclangAnalysis, -lclangAST, -lclangASTMatchers, -lclangEdit, -lclangLex, -lclangBasic, -lPolly, -lPollyISL, threads runs: DID NOT COMPILE
- src/gallium/targets/opencl/meson.build:83:6: ERROR: Problem encountered: No usable clang found!
- A full log can be found at /home/kevin/mesa-git/lib32-mesa-git/src/mesa/build_32/meson-logs/meson-log.txt
##########################################################################################################
CLANG/LLVM/LIBCLC/POLLY/LLVM-LIBS/LIBC++ABI/LIBC++/LIBC++EXPERIMENTAL/LLVM-OCAML/OPENMP/LLDB/LLD/LIB32-LLVM/LIB32-LLVM-LIBS/LIB32-CLANG version 14.0.0 commit : e8806d748643e4b90fa67ed6f4819653e64e66d9
This error appear only on 32-Bit builds and not on x86-64 builds
Maybe it can be on llvm/clang or lib32-llvm/lib32-clang side ??
Mesa commit : 9e3293bc LLVM commit : e8806d748643e4b90fa67ed6f4819653e64e66d9
To build with succes we need to pass -Dgallium-opencl=disabled
With gallium-opencl=(icd or standalone) build fail
log file in attachement