mollybuild / riscv-measurement Goto Github PK
View Code? Open in Web Editor NEWThis is a repo for recording and reporting RISCV platform's test and measurement continuously.
This is a repo for recording and reporting RISCV platform's test and measurement continuously.
按照https://github.com/mollybuild/RISCV-Measurement/blob/master/Build-RISCV-LLVM-and-run-testsuite.md 执行交叉编译的时候,cmake报错:
xj@e2ba8bd04169:~/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build$ cmake -DCMAKE_TOOLCHAIN_FILE=/home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/clang_riscv_linux.cmake -DCMAKE_C_COMPILER="/home/xj/RISCV/llvm-project0/build/bin/clang" ../test-suite
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- Check for working C compiler: /home/xj/RISCV/llvm-project0/build/bin/clang
-- Check for working C compiler: /home/xj/RISCV/llvm-project0/build/bin/clang -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/home/xj/RISCV/llvm-project0/build/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_c5958/fast && /usr/bin/make -f CMakeFiles/cmTC_c5958.dir/build.make CMakeFiles/cmTC_c5958.dir/build
make[1]: Entering directory '/home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c5958.dir/testCCompiler.c.o
/home/xj/RISCV/llvm-project0/build/bin/clang --target=riscv64-unknown-linux-gnu --gcc-toolchain=/home/xj/RISCV/linux/ -o CMakeFiles/cmTC_c5958.dir/testCCompiler.c.o -c /home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_c5958
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c5958.dir/link.txt --verbose=1
/home/xj/RISCV/llvm-project0/build/bin/clang --target=riscv64-unknown-linux-gnu --gcc-toolchain=/home/xj/RISCV/linux/ -static CMakeFiles/cmTC_c5958.dir/testCCompiler.c.o -o cmTC_c5958
/home/xj/RISCV/linux/lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: warning: -z relro ignored
/home/xj/RISCV/linux/lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: unrecognized option '--hash-style=gnu'
/home/xj/RISCV/linux/lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: use the --help option for usage information
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [CMakeFiles/cmTC_c5958.dir/build.make:87: cmTC_c5958] Error 1
make[1]: Leaving directory '/home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_c5958/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred!
See also "/home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeOutput.log".
See also "/home/xj/RISCV/llvm-project0/llvm/projects/test-suite-riscv-build/CMakeFiles/CMakeError.log".
Cakefile:27: *** missing separator. Stop.
wget https://github.com/Kitware/CMake/releases/download/v3.20.1/cmake-3.20.1-linux-x86_64.tar.gz
tar -zxvf cmake-3.20.1-linux-x86_64.tar.gz
vi ~/.bashrc
source ~/.bashrc
which cmake
cmake --version
给小白的友情补充:(大佬可以跳过)
Hi there, I see you have already post some steps to run spec2006 and spec2017, and is there any shareable results for your evaluation on unmatched?
Hi,
Thank you for sharing.
I have a question regarding the SW Compiler version
for SPEC CPU 2006 that I would like to inquire about.
You use GCC 10.x to compile SPEC 2006 benchmarks, but in the SPEC CPU 2006 configuration files (cfg),
I noticed that GCC 4.x versions are specified.
GCC 10.x in CPU2006-GCC.config
I look forward to your response. Thank you.
QL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.