[cfe-dev] llvm-test-suite build failure

Tim Pugh via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 27 20:32:43 PST 2019


Hi devs,


I'm able to build llvm/clang following these instructions:


   1.

   *git clone https://github.com/llvm/llvm-project.git
   <https://github.com/llvm/llvm-project.git>*
   2.

   *cd llvm-project*
   3.

   * mkdir build*
   4.

   *cd build*
   5.

   *cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm*
   6.

   *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:

   1.

   *git clone https://github.com/llvm/llvm-test-suite.git
<https://github.com/llvm/llvm-test-suite.git> test-suite*

   2.

   *mkdir test-suite-build
   *

   3.


*cd test-suite-build   *

   4.

   *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*

   5.

   *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 2make: *** [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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190227/e8c19aee/attachment.html>


More information about the cfe-dev mailing list