[llvm-dev] Help run benchmark test for arm

Ben Shi via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 28 02:58:56 PDT 2020


Hello, 


I am trying to run benchmark test for llvm with llvm-test-suite, but failed. I do not have an arm-linux board, but an android userdebug phone. So I planned to run on PC with qemu-arm.


My step (on ubuntu 18.04)


1. git clone https://github.com/llvm/llvm-test-suite
2. apt-get install qemu arm-linux-gnueabihf-gcc -y
3. cd llvm-test-suite
4. mkdir build & cd build
5.  cmake -DCMAKE_C_COMPILER=/home/llvm-dev-3/build/bin/clang -DCMAKE_C_FLAGS=" -O2 --target=arm-linux-gnueabihf -I/usr/arm-linux-gnueabihf/include/ " -DCMAKE_BUILD_TYPE=Release -DTEST_SUITE_RUN_UNDER=qemu-arm -DTEST_SUITE_BENCHMARKING_ONLY=On  -DTEST_SUITE_RUN_BENCHMARKS=On -DCMAKE_INCLUDE_PATH=/usr/arm-linux-gnueabihf/include  ../


But got errors like,
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindThreads.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  MicroBenchmarks/libs/benchmark-1.3.0/CMakeLists.txt:189 (find_package)
-- Configuring incomplete, errors occurred!


The pthread.h does exist in /usr/arm-linux-gnueabihf/include/, why cmake still can not find it?


Or any other suggestion to run benchmark on arm? Do I need to by a raspberry-pi board? Or qemu and anrdoird dev phone are OK enough?


Ben  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200728/1d227a47/attachment.html>


More information about the llvm-dev mailing list