intel / intel-graphics-compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intel graphics compiler fails to build

ht990332 opened this issue · comments

cmake -B build -S intel-graphics-compiler
-G 'Unix Makefiles'
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
-DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_INSTALL_LIBDIR=lib
-DIGC_OPTION__ARCHITECTURE_TARGET='Linux64'
-DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON
-DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds
-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds
-DIGC_OPTION__LLVM_MODE=Prebuilds
-DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS=ON
-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds
-DIGC_OPTION__LLVM_PREFERRED_VERSION=16.0.6
-DINSTALL_GENX_IR=ON
-Wno-dev
build.log

IGC doesn't support LLVM-16 yet: #289. Please build it against LLVM-14.

It depends on other components that are already built using llvm16.
I'll need to wait then.

Are there any instructions on compiling intel-graphics-conpiler without any prebuilts?

Hi @ht990332, was the source-based build successful? Can we close this issue, given that LLVM 16 support is being tracked in #289?

@ht990332, just to clarify, do these errors persist with LLVM 14-based components (as per @vmustya/@pszymich's advice) and CMake options updated to something like below for source-based build?

-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Source
-DIGC_OPTION__LLVM_MODE=Source
-DIGC_OPTION__VC_INTRINSICS_MODE=Source
-DIGC_OPTION__LLVM_PREFERRED_VERSION=14.0.5

@ht990332 if you check @AGindinson 's tips and further problems emerge please reopen.