Skip to content

Build failure both with system LLVM v12, and GCC v11 #228

@eero-t

Description

@eero-t

Setup / dependencies

Ubuntu 21.10 (container) packages:

  • gcc g++ libc-dev flex bison pkg-config make cmake ninja-build libz-dev clang-12 llvm-12-dev liblld-12-dev libopencl-clang-dev
  • GCC = v11.2.0

Git builds of following source versions:

  • GMMlib: "intel-gmmlib-22.0.2" (latest tag)
  • SPIRV-Tools: "sdk-1.3.204.0" (latest tag)
  • SPIRV-Headers: "sdk-1.3.204.0" (latest tag)
  • SPIRV-LLVM-Translator: "llvm_release_120" (branch HEAD)
  • vc-intrinsics: "main" (branch HEAD)
    • Because that project is still missing tags and releases despite complaints from multiple distro maintainers
  • IGC: "igc-1.0.10200" (latest release), and several older ones

Build options

-DCMAKE_BUILD_TYPE=Release
-DIGC_OPTION__LLVM_PREFERRED_VERSION=12
-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Source
-DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON

Build failures

First build failure:

-- [lld] No mode was specified, searching for lld
CMake Error at external/llvm/llvm_deps.cmake:50 (file):
  file COPY cannot find
  "/home/nobody/source/intel-graphics-compiler/IGC/DEFAULT_IGC_LLVM_SOURCES_DIR-NOTFOUND/libunwind/include/mach-o/compact_unwind_encoding.h":
  No such file or directory.

is due to change added by commit 661333e to external/llvm/llvm_deps.cmake which breaks build when system LLVM is used (i.e. there's no path to LLVM sources). Reverting that change fixes the issue.

Note: I'm actually more interested about LLVM v13 support, but because the tests are not passing with it yet (according to IGC status page), I tried using v12 instead. Above issue is relevant for both though.

Next build failure:

visa/LocalScheduler/SWSB_G4IR.cpp: In member function 'vISA::SBNode* vISA::SWSB::reuseTokenSelection(const vISA::SBNode*) const':
visa/LocalScheduler/SWSB_G4IR.cpp:1459:34: error: 'numeric_limits' is not a member of 'std'
 1459 |         int maxTokenDelay = std::numeric_limits<int>::min(); //The delay may cause if reuse
      |                                  ^~~~~~~~~~~~~~
visa/LocalScheduler/SWSB_G4IR.cpp:1459:49: error: expected primary-expression before 'int'
 1459 |         int maxTokenDelay = std::numeric_limits<int>::min(); //The delay may cause if reuse
      |                                                 ^~~
visa/LocalScheduler/SWSB_G4IR.cpp:1460:37: error: 'numeric_limits' is not a member of 'std'
 1460 |         int minTokenDistance = std::numeric_limits<int>::max(); //The distance from the reused node
      |                                     ^~~~~~~~~~~~~~
visa/LocalScheduler/SWSB_G4IR.cpp:1460:52: error: expected primary-expression before 'int'
 1460 |         int minTokenDistance = std::numeric_limits<int>::max(); //The distance from the reused node
      |                                                    ^~~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions