-
Notifications
You must be signed in to change notification settings - Fork 449
Always ending with error while building #351
Comments
riscv-tools doesn't build, and isn't being maintained. The submodules are all about 3 years out of date. This particular problem is fixed in the submodules. If you update submodules you can fix this. Just cd into each dir and do "git checkout master; git pull" Except in riscv-openocd where you need to do "git checkout riscv; git pull". |
Hi Jim,
Thanks for your email.
Still not working, screenshot is attached for your reference.
Thanks in advance.
With Best Regards,
*Sree*
Dr. Sree Ranjani Rajendran,
FICS Research Lab, University of Florida, Gainesville.
*******************************************************
*"All is well"*
…On Wed, Nov 10, 2021 at 4:25 PM Jim Wilson ***@***.***> wrote:
riscv-tools doesn't build, and isn't being maintained. The submodules are
all about 3 years out of date. This particular problem is fixed in the
submodules. If you update submodules you can fix this. Just cd into each
dir and do "git checkout master; git pull" Except in riscv-openocd where
you need to do "git checkout riscv; git pull".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUALSD6YUTDPWVLT5KTVAM3ULLPKZANCNFSM5HYTD6BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I don't see a screenshot. If you sent email, try visiting the github link and adding the screenshot there. |
I think that your copy of riscv-openocd is not up to date. Try "git log | more" to see what version you have. It should be November 12 2021. Make sure that you are on the riscv branch and that you did a git pull to get the latest version. |
If you do a git pull in the top level dir, it will revert changes to the submodules, so don't do that if you are updating submodules. |
Hi Jim, |
Once I update riscv-openocd it is showing updated date as Nov 3 2021. but when I build riscv-tools I am getting below error: Removing existing riscv-openocd/build directory |
Please review: oem@sree:
commit 641e51ff7fd0e73c8449e2994a55b64674ef17d6
commit bda1027191cfc49a6627d52cd6e894b765afd30b
--More-- libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
commit 641e51ff7fd0e73c8449e2994a55b64674ef17d6
commit bda1027191cfc49a6627d52cd6e894b765afd30b
--More-- Removing existing riscv-openocd/build directory |
Unfortunately riscv-tools is a mess because no one is maintaining it. It might be easier to compile the individual tools separately. It sounds like the riscv-openocd subdir is not OK. Try running "git status". There might be submodules that are missing, or submodules that aren't supposed to be there. Also try "git branch" to make sure you are on the riscv branch. Checking your log messages, the first one tells you what the problem is and how to fix: |
Hi Jim,
Thanks for your insights.
I fixed open riscv-openocd issues with your suggestion. Now while running
make verilate in ariane , I am getting below error:
/bin/sh: line 1: verilator: command not found
make: *** [Makefile:659: verilate] Error 127
I also installed Verilator as per suggestion, but still getting error. can
you help me how to include verilator in the ariane-sdk. Also I am bit
confused on which directories ariane, riscv-tools and verilator should be
installed, please advise. Thanks in advance.
With Best Regards,
*Sree*
Dr. Sree Ranjani Rajendran,
FICS Research Lab, University of Florida, Gainesville.
*******************************************************
*"All is well"*
…On Sun, Nov 14, 2021 at 5:11 PM Jim Wilson ***@***.***> wrote:
Unfortunately riscv-tools is a mess because no one is maintaining it. It
might be easier to compile the individual tools separately.
It sounds like the riscv-openocd subdir is not OK. Try running "git
status". There might be submodules that are missing, or submodules that
aren't supposed to be there. Also try "git branch" to make sure you are on
the riscv branch.
Checking your log messages, the first one tells you what the problem is
and how to fix:
Configuring project riscv-openocd
configure: error: jimtcl not found, run git submodule init and git
submodule update.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUALSDZGWU6LG5GGSYSZCLLUMAXY5ANCNFSM5HYTD6BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I'm not a hardware guy, and don't know anything about running ariane on verilator. You should proabably ask the ariane folks that question. |
Thanks, I'll check it out.
With Best Regards,
*Sree*
Dr. Sree Ranjani Rajendran,
FICS Research Lab, University of Florida, Gainesville.
*******************************************************
*"All is well"*
…On Tue, Nov 16, 2021 at 1:06 PM Jim Wilson ***@***.***> wrote:
I'm not a hardware guy, and don't know anything about running ariane on
verilator. You should proabably ask the ariane folks that question.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUALSD3BWUZHBCM4ELZGOATUMKMUHANCNFSM5HYTD6BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi Jim, Removing existing riscv-pk/build directory |
Do you have a RISC-V compiler? The errors look like x86_64 compiler errors. You need to have a riscv64-unknown-elf-gcc (usually from riscv-gnu-toolchain) in your path, or the makefile will try to use the native compiler with RISC-V command line arguments and you get an error like this. |
Dear Jim, ./configure --prefix=/opt/riscv |
build.common does this
so you need to remove the /bin from your RISCV environment variable. The value for RISCV needs to be the same value you passed to the --prefix environment variable. |
usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-bitbang.o):/home/sree/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/sree/riscv-tools/riscv-openocd/build/../src/jtag/drivers/bitbang.h:60: first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:2899: src/openocd] Error 1
gmake[1]: *** [Makefile:4183: all-recursive] Error 1
gmake: *** [Makefile:1955: all] Error 2
Hi I always get the above error, whenever build the tool. Kindly help me to fix this, my current dir is \home\sree\riscv-tools , what should be my path in export RISCV=/path/to/install/riscv/toolchain. Also in which dir Ariane design is to be placed. Thanks in advance. Also do I have to add this path in .bashrc file.
The text was updated successfully, but these errors were encountered: