-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot build spirv compiler. What i am doing wrong? #44
Comments
Try to use SPIR’s spirv-1.0 branch rather than spirv-1.1, as SPIRV-LLVM’s readme points to SPIR’s spirv-1.0 branch. |
i think i found solution for my issue: i should use "cmake" instead of "configure". "Configure" does not create proper Makefiles I guess.
These above steps allow to build both spirv-1.1 and spirv-1.0 branches properly (at least without compile errors). Result is clang compilers in folder build/done. It would be good if You could add these description into README file because for me, as beginner, it took about 4 days to understand how to build everything. |
Thank you soooooooooooo much marsohod4you!!!!!!!!!!!!!!!!!!!! |
cool. random observation: seems there is a spirv-3.8 by now (one year later). I wonder if we should use that?
|
(hmmm, using anything other than the branches marsohod supplies gave me errors actually: trying spirv-3.8 of llvm:
trying
|
Hello
I am trying to build SPIRV compiler.
I think i do all according to instructions:
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..
The text was updated successfully, but these errors were encountered: