intel / intel-graphics-compiler

Other
594 stars 155 forks source link

Intel graphics compiler fails to build #293

Closed ht990332 closed 7 months ago

ht990332 commented 1 year ago

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_OPTIONARCHITECTURE_TARGET='Linux64' \ -DIGC_OPTIONLINK_KHRONOS_SPIRV_TRANSLATOR=ON \ -DIGC_OPTIONSPIRV_TOOLS_MODE=Prebuilds \ -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds \ -DIGC_OPTIONLLVM_MODE=Prebuilds \ -DIGC_OPTIONUSE_PREINSTALLED_SPRIV_HEADERS=ON \ -DIGC_OPTIONVC_INTRINSICS_MODE=Prebuilds \ -DIGC_OPTION__LLVM_PREFERRED_VERSION=16.0.6 \ -DINSTALL_GENX_IR=ON \ -Wno-dev build.log

vmustya commented 1 year ago

IGC doesn't support LLVM-16 yet: https://github.com/intel/intel-graphics-compiler/issues/289. Please build it against LLVM-14.

ht990332 commented 1 year ago

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

ht990332 commented 1 year ago

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

pszymich commented 1 year ago

Hi @ht990332, yes, see here: https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md#build-from-sources

AGindinson commented 1 year ago

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

ht990332 commented 1 year ago

Hello. No. Not yet. It keeps looking for projectd in unexpected places. However, if you are properly tracking it elsewhere, please close this bug.On 8/18/23, 11:59 Artem Gindinson @.***> wrote:

Hi @ht990332, was the source-based build successful? Can we close this issue, given that LLVM 16 support is being tracked in #289? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

AGindinson commented 1 year ago

@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
pszymich commented 7 months ago

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