Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure error #29

Open
PPParticle opened this issue Nov 4, 2021 · 11 comments
Open

Configure error #29

PPParticle opened this issue Nov 4, 2021 · 11 comments

Comments

@PPParticle
Copy link

$ git clone https://github.com/plctlab/llvm-project
GCC_TOOLCHAIN_DIR=$RISCV/
SYSROOT_DIR= $GCC_TOOLCHAIN_DIR/riscv64-unknown-elf/
$ cd llvm_project/
$ mkdir build
$ cd build
$ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$GCC_TOOLCHAIN_DIR/riscv64-unknown-elf/ -DLLVM_ENABLE_PROJECTS="clang" -S /home/qiao_sh_pudong/RISCV/Src/llvm-project/clang/

it shows
-- Linker detection: GNU ld
/usr/bin/ar: creating t.a
-- Building with -fPIC
-- Clang version: 10.0.0
CMake Error at tools/driver/CMakeLists.txt:56 (export_executable_symbols_for_plugins):
Unknown CMake command "export_executable_symbols_for_plugins".

-- Configuring incomplete, errors occurred!

What have I missed?

@PPParticle
Copy link
Author

I have installed riscv-gnu-toolchain, riscv-pk and riscv-isa-sim. The reason why I installed this is I want to use rvv benchmark to test riscv-v-spec isa.

@ChunyuLiao
Copy link
Collaborator

You can try this cmake command:
cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm

@PPParticle
Copy link
Author

I try what you have told.

You can try this cmake command: cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm

It shows that
cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/qiao_sh_pudong/RISCV/Src/llvm-project/build/CMakeFiles/CMakeOutput.log".

In CMakeOutput.log, I found nothing except
The system is: Linux - 5.10.16.3-microsoft-standard-WSL2 - x86_64

@ChunyuLiao
Copy link
Collaborator

I try what you have told.

You can try this cmake command: cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm

It shows that cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/qiao_sh_pudong/RISCV/Src/llvm-project/build/CMakeFiles/CMakeOutput.log".

In CMakeOutput.log, I found nothing except The system is: Linux - 5.10.16.3-microsoft-standard-WSL2 - x86_64

install ninja
command: ninja
or:
cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold ../llvm
make

@lazyparser
Copy link
Member

I try what you have told.

You can try this cmake command: cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm

It shows that cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/qiao_sh_pudong/RISCV/Src/llvm-project/build/CMakeFiles/CMakeOutput.log".

In CMakeOutput.log, I found nothing except The system is: Linux - 5.10.16.3-microsoft-standard-WSL2 - x86_64

Try
sudo apt install ninja-build to fix the ` Error: CMake was unable to find a build program corresponding to "Ninja".

@PPParticle
Copy link
Author

I try what you have told.

You can try this cmake command: cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm

It shows that cmake -DLLVM_TARGETS_TO_BUILD="X86;RISCV" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_USE_LINKER=gold -G Ninja ../llvm CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/qiao_sh_pudong/RISCV/Src/llvm-project/build/CMakeFiles/CMakeOutput.log".
In CMakeOutput.log, I found nothing except The system is: Linux - 5.10.16.3-microsoft-standard-WSL2 - x86_64

Try sudo apt install ninja-build to fix the ` Error: CMake was unable to find a build program corresponding to "Ninja".

Thanks for your answers. It works.

@PPParticle
Copy link
Author

Another problem, how to fix this?
$ make
clang --target=riscv64-unknown-elf -menable-experimental-extensions -march=rv64gcv1p0 --sysroot=/home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf --gcc-toolchain=/home/qiao_sh_pudong/RISCV/Bin/riscv64/ -o rvv-test main.c memcpy.s sgemm.S strlen.s vvaddint32.s saxpy.s strcpy.s strncpy.s
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
clang-14: error: invalid arch name 'rv64gcv1p0', unsupported version number 1.0 for experimental extension 'v'(this compiler supports 0.10)
make: *** [Makefile:25: rvv-test] Error 1

我的clang安装步骤如下

$ cmake -DLLVM_ENABLE_PROJECTS="clang" -G Ninja ../llvm
$ ninja
$ sudo cmake --build . --target install
clang版本如下
clang version 14.0.0 (https://gitee.com/mirrors/llvm-project.git 824ddeb)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64

How to solve the difference of version?

@Xinlong-Wu
Copy link
Collaborator

(this compiler supports 0.10)

use rv64gcv0p10 and try again

@PPParticle
Copy link
Author

PPParticle commented Dec 10, 2021

use rv64gcv0p10 and try again

It worked. However, it failed into another problems.
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: error: /tmp/main-1cdbbf.o: Mis-matched ISA version for 'v' extension. 0.10 vs 1.0

/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /tmp/main-1cdbbf.o
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-exit.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-impure.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-init.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-memset.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-printf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-vfprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-wsetup.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-__call_atexit.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-atexit.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fflush.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-findfp.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fini.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-freer.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fwalk.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-ldtoa.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-localeconv.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-makebuf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-mallocr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-memchr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-mlock.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-mprec.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-s_frexp.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-sbrkr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-sprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-stdio.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-svfprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-vfiprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-writer.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-_atexit.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-assert.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-callocr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-closer.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-errno.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fclose.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fiprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fputwc.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fstatr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-fvwrite.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-isattyr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-locale.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-lseekr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-mbtowc_r.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-memmove-stub.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-readr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-reallocr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-reent.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-strcmp.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-svfiprintf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-wbuf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-wcrtomb.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-wctomb_r.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-abort.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-ctype
.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-signal.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libc.a(lib_a-signalr.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_close.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_exit.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_fstat.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_getpid.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_isatty.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_kill.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_lseek.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_read.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_sbrk.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_write.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/riscv64-unknown-elf/lib/libgloss.a(sys_conv_stat.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(eqtf2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(getf2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(letf2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(multf3.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(subtf3.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(fixtfsi.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(floatsitf.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(extenddftf2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(trunctfdf2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(_clzsi2.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/libgcc.a(_clz.o)
/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: failed to merge target specific data of file /home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/crtend.o

@ChunyuLiao
Copy link
Collaborator

this may be a gnu-toolchain's error. You can try different branches of riscv-gnu-toolchain and rebuild.

@PPParticle
Copy link
Author

PPParticle commented Dec 10, 2021

this may be a gnu-toolchain's error. You can try different branches of riscv-gnu-toolchain and rebuild.

/home/qiao_sh_pudong/RISCV/Bin/riscv64/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../bin/riscv64-unknown-elf-ld: error: /tmp/main-1cdbbf.o: Mis-matched ISA version for 'v' extension. 0.10 vs 1.0

What about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants