https://bugs.freedesktop.org/show_bug.cgi?id=111077
--- Comment #12 from Matt Turner mattst88@gmail.com --- (In reply to roland@rptd.ch from comment #11)
../src/amd/common/ac_nir_to_llvm.c ../src/amd/common/ac_nir_to_llvm.c: In function ‘ac_llvm_finalize_module’: ../src/amd/common/ac_nir_to_llvm.c:6614:2: error: implicit declaration of function ‘LLVMAddPromoteMemoryToRegisterPass’; did you mean ‘LLVMAddDemoteMemoryToRegisterPass’? [-Werror=implicit-function-declaration] LLVMAddPromoteMemoryToRegisterPass(passmgr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LLVMAddDemoteMemoryToRegisterPass cc1: some warnings being treated as errors [425/1549] Compiling C object 'src/mesa/bbe4a73@@mesa_gallium@sta/main_format_utils.c.o'. ninja: build stopped: subcommand failed.
Is this during the bisect, or when?
Try adding
#if HAVE_LLVM >= 0x0700 #include <llvm-c/Transforms/Utils.h> #endif
to the #include section of src/amd/common/ac_nir_to_llvm.c