Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

riscv-tools build.sh failed #347

Open
athurwo opened this issue Aug 18, 2021 · 5 comments
Open

riscv-tools build.sh failed #347

athurwo opened this issue Aug 18, 2021 · 5 comments

Comments

@athurwo
Copy link

athurwo commented Aug 18, 2021

Hi, failed log like blow:

/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-bitbang.o):/home/fso/riscv-tools/riscv-openocd/build/../src/jtag/drivers/bitbang.h:60: multiple definition of `bitbang_swd'; src/.libs/libopenocd.a(libocdjtagdrivers_la-remote_bitbang.o):/home/fso/riscv-tools/riscv-openocd/build/../src/jtag/drivers/bitbang.h:60: first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:2897: src/openocd] Error 1
gmake[1]: *** [Makefile:4181: all-recursive] Error 1
gmake: *** [Makefile:1953: all] Error 2

Thanks

@jim-wilson
Copy link
Collaborator

riscv-tools is unmaintained and stopped building a while ago. You might want to avoid using it. If you do want to use it, you should update the submodules as they are all 2+ years old. Just cd into each subdir, git checkout master, and then git pull, to get recent copies of them. If you want to double check, you can use git log -1 before and after to see the last commit.

@athurwo
Copy link
Author

athurwo commented Aug 27, 2021

riscv-tools is unmaintained and stopped building a while ago. You might want to avoid using it. If you do want to use it, you should update the submodules as they are all 2+ years old. Just cd into each subdir, git checkout master, and then git pull, to get recent copies of them. If you want to double check, you can use git log -1 before and after to see the last commit.

thanks, I should download riscv-gnu-toolchain.

@yooyoopanda
Copy link

Hi,I have installed riscv-gnu-toolchain, and the path of $RISCV have checked ,and already update the submodule and checked each file name.But the build.sh failed:

Starting RISC-V Toolchain build process

Removing existing riscv-openocd/build directory
Configuring project riscv-openocd
Building project riscv-openocd
gmake[2]: *** No rule to make target 'all'. Stop.
gmake[1]: *** [Makefile:4832: all-recursive] Error 1
gmake: *** [Makefile:2007: all] Error 2

what should I do to build tools ?

@jim-wilson
Copy link
Collaborator

There is a build log in the riscv-openocd dir you can try looking at. But in general, riscv-tools isn't expected to build anymore because it has been unmaintained for too long.

@yooyoopanda
Copy link

Thanks a lots for your suggestion !
I would like to try for I want to simulate the RISCV environment and try disassembling the RISCV code to find some ROP-Gadgets for my graduate research.
Thank you again.

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

No branches or pull requests

3 participants