Hi devs,
I’m able to build llvm/clang following these instructions:
-
git clone https://github.com/llvm/llvm-project.git
-
cd llvm-project
-
mkdir build
-
cd build
-
cmake -DLLVM_ENABLE_PROJECTS=clang -G “Unix Makefiles” …/llvm
-
make
For the test suite, I’m following the directions found here:
https://llvm.org/docs/TestSuiteGuide.html
and execute the following commands in the same directory where I have cloned lllvm-project:
-
**git clone [https://github.com/llvm/llvm-test-suite.git](https://github.com/llvm/llvm-test-suite.git) test-suite**
-
<b>mkdir test-suite-build </b>
-
**cd test-suite-build**
-
**cmake -DCMAKE_C_COMPILER=<path to my build of clang>/llvm-project/build/bin/****clang CMAKE_BUILD_TYPE=DEBUG -C../test-suite/cmake/caches/****O3.cmake ../test-suite**
-
**make**
but it seems to fail at 37% with this error (sorry for any formatting issues):
Scanning dependencies of target retref-bench
[ 37%] Building CXX object MicroBenchmarks/XRay/ReturnReference/CMakeFiles/retref-bench.dir/retref-bench.cc.o
/home/removed/release/test-suite/MicroBenchmarks/XRay/ReturnReference/retref-bench.cc:18:10: fatal error:
'xray/xray_interface.h' file not found
#include "xray/xray_interface.h"
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [MicroBenchmarks/XRay/ReturnReference/CMakeFiles/retref-bench.dir/build.make:63: MicroBenchmarks/XRay/ReturnReference/CMakeFiles/retref-bench.dir/retref-bench.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:19890: MicroBenchmarks/XRay/ReturnReference/CMakeFiles/retref-bench.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Any ideas what I may be missing? I haven't been able to turn anything up online. I should note I've also attempted to build both repos from the release 8.x branch as well, and ran into the same error.