Closed alucryd closed 2 years ago
Hi @alucryd,
Can you try adding -DCCLANG_BUILD_INTREE_LLVM=1 -DLLVM_ENABLE_PROJECTS=\"clang\"
CMake flags to your configuration config?
Thanks for the suggestion. I already had the first param but not the second one. It didn't help though unfortunately. Also symlinking my system clang to clang-tool didn't work as expected.
What is "clang-tool"? There does not seem to be any such thing in whole Ubuntu (and IGC builds fine with Ubuntu system clang): https://packages.ubuntu.com/search?searchon=contents&mode=&suite=impish&arch=any&keywords=clang-tool
There's clang-tools package, but even that does not contain binary called clang-tool: https://packages.ubuntu.com/impish/amd64/clang-tools-12/filelist
Yeah, it seems to be an alias created in the IGC build system, probably to avoid conflicting with system clang, but the problem is this clang aka clang-tool is never actually built.
@eero-t
References to clang-tool:
I'm not seeing such issue when doing build on Ubuntu, like this:
$ git clone --branch 22.20.23198 --depth 1 https://github.com/intel/compute-runtime.git
$ cd compute-runtime && mkdir build && cd build
$ cmake -LH -Wno-dev -G Ninja \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_BUILD_TYPE=Release \
-DSUPPORT_GEN8=0 -DSUPPORT_GEN9=1 -DSUPPORT_GEN11=1 \
-DSUPPORT_TGLLP=1 -DSUPPORT_DG1=1 -DSUPPORT_XE_HP_SDV=1 \
-DSUPPORT_DG2=1 -DSUPPORT_PVC=1 \
-DNEO_DISABLE_LD_GOLD=1 \
-DDO_NOT_RUN_AUB_TESTS=1 -DDONT_CARE_OF_VIRTUALS=1 \
../
$ ninja && ninja install
Could you include "-LH" to your CMake options and paste CMake config output here?
No submitter response for the last 2 weeks. @alucryd If the issue still exists, please reopen the issue.
was there ever a solution on this?
was there ever a solution on this?
No, been patching the cmake files ever since to use clang instead of clang-tool.
Hi guys, I'm trying to build the latest release from source with everything in-tree. I've set up my workspace following the documentation. One particularity I have is that I use a local toolchain instead of my system tools because I want to produce generic binaries with an older glibc, so even if I'm on the same architecture, I'm technically cross-compiling, and IGC rightfully thinks so.
Even though I've got everything in-tree, the build insists on using llvm/clang from my system and I had to procure 11.1.0 builds. Even then, the build ends up failing with the following error:
Any idea? I would assume clang-tool would be built in-tree but it doesn't seem to be the case. I can find some clang binary in a weird place, but it doesn't seem right:
./build/llvm-project/clang/test/Tooling/Inputs/mock-libcxx/bin/clang
.I'll try symlinking the clang 11 binary I had to build on the host system, but I assume this command will need opencl-clang for this :/
Here's the full configure output: https://paste.xinu.at/WaSGxxloU3iB3PcT/