KhronosGroup / KhronosGroup/SPIR

Cannot build spirv compiler. What i am doing wrong?

Open
#44 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
183
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Hello

I am trying to build SPIRV compiler.
I think i do all according to instructions:

  1. git clone -b khronos/spirv-3.6.1 https://github.com/KhronosGroup/SPIRV-LLVM.git llvm
  2. cd llvm/tools
  3. git clone -b spirv-1.1 https://github.com/KhronosGroup/SPIR clang
  4. cd ../..
  5. mkdir build
  6. cd build
  7. ../llvm/configure --prefix=$PWD/done --enable-optimized --enable-targets=x86_64
  8. make

I get error during compiling:

make[2]: *** No rule to make target '/home/nick/opencl/build/Release+Asserts/lib/libLLVMSPIRVLib.a', needed by '/home/nick/opencl/build/Release+Asserts/bin/llvm-c-test'. Stop.

What i am doing wrong?

Besides that i was able to build older version of SPIR compiler from branch spir_12
But as i understand modern compiler is not a SPIR but SPIRV.. I think i should not study solution from older things..

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the listed SPIRV-LLVM checkout, llvm/configure command, and make invocation. Inspect the build configuration and the missing build/Release+Asserts/lib/libLLVMSPIRVLib.a dependency; the issue is resolved when the documented checkout and build sequence completes successfully or the required correction is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.