Comments (6)
This is an error building the Spike code (a dependency that we don't maintain). It looks like you've got a recent version of upstream's Spike: that code was added in June this year.
To get things working, you'll need the version of spike that we describe in the documentation.
from ibex.
Hi Mr.Rupert Swarbrick,
I downloaded exact spike version "riscv-isa-sim-ibex-cosim-v0.5.tar.gz" and configure with --enable-commitlog --enable-misaligned option, then when we run "make IBEX_CONFIG=opentitan SIMULATOR=vcs ISS=spike ITERATIONS=1 SEED=1 TEST=riscv_arithmetic_basic_test WAVES=0 COV=0 VERBOSE=1"
am getting following error
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lriscv \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lsoftfloat \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -ldisasm \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lfdt \
When we checked the spike installation location we got .a file and not getting .so file, I pasted the files detail as below
lib]$ ls
libcustomext.so libfdt.a libriscv.a pkgconfig
libdisasm.a libfesvr.a libsoftfloat.so
phkconfig folder having:
riscv-disasm.pc riscv-fdt.pc riscv-fesvr.pc riscv-riscv.pc
Any suggestion on this please?
from ibex.
That file list looks sensible to me. I suspect that the build command isn't passing the right -L
flags to the linker. Maybe it's worth you looking at the ld
command that actually ran. I think we pick up those flags from pkgconfig
, so you might find you need to check that you have set up PKG_CONFIG_PATH
to something sensible.
from ibex.
Hi Mr.Rupert Swarbrick,
**if we run make without PFG_CONFIG_PATH, am getting below error**
Traceback (most recent call last):
File "scripts/compile_tb.py", line 75, in _main
subprocess.check_output(['pkg-config', '--exists'] + spike_iss_pc)
File "/opt/python-3.7.0/lib/python3.7/subprocess.py", line 376, in check_output
**kwargs).stdout
File "/opt/python-3.7.0/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pkg-config', '--exists', 'riscv-riscv', 'riscv-disasm', 'riscv-fdt']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "scripts/compile_tb.py", line 110, in
sys.exit(_main())
File "scripts/compile_tb.py", line 79, in _main
f'Did you set the PKG_CONFIG_PATH correctly?') from err
RuntimeError: Failed to find ['riscv-riscv', 'riscv-disasm', 'riscv-fdt'] pkg-config packages. Did you set the PKG_CONFIG_PATH correctly?
But if I set PKG_CONFIG_PATH, setenv PKG_CONFIG_PATH /Projects/marmik_project/manicka.vinodhini/krishna/spike-13.09.23/lib/pkgconfig. am getting error as below
/tools/VCS_VT_2022.06.SP1/vcs/T-2022.06-SP1/linux64/lib/vcs_save_restore_new.o -ldl
-lc -lm -lpthread -ldl
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lriscv \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lsoftfloat \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -ldisasm \
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: cannot find -lfdt \
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:117: product_timestamp] Error 1
from ibex.
OK, it looks like you have set PKG_CONFIG_PATH. You'll still need to look at the actual ld
command to work out what's going wrong. This is also now a little beyond what you might expect as help from a GitHub issue conversation. :-) Good luck getting things working!
from ibex.
Hi Rupert Swarbrick,
we installed ubuntu and installed spike and ibex , when we run "make IBEX_CONFIG=opentitan SIMULATOR=vcs ISS=spike ITERATIONS=1 SEED=1 TEST=riscv_arithmetic_basic_test WAVES=0 COV=0 VERBOSE=1" am getting below error
Let me know which gcc version we need to use in ubuntu 22.04
from ibex.
Related Issues (20)
- ERROR: Conflicting requirements:o Ibex HOT 1
- Replacement of Xcelium HOT 4
- Error in Simple system VCS+Verdi simulation, Failed to find the Verdi database HOT 3
- Security vulnerability: Ibex leaks data when multiplication is aborted HOT 2
- Floating-point support (software) HOT 1
- File not found HOT 1
- File not found
- Installation Issue: FuseSoC build doesn't work HOT 2
- Exception occuring when calling cryptographic function
- Compilation issue in ibex bring-up
- Is it possible to support Verilator as the RTL simulator for cosim?
- x0 is not zero HOT 1
- Trap Return with activated Branch Prediction results in an unintended instruction retire
- Report a bug in Ibex
- Spike not generating csrrw and compressed instructions
- Incorrect stalling behaviour for configurations with writeback stage but without branch target ALU results in an incorrect branch target HOT 1
- Ask a question related to Ibex
- [dv] Implement fault injection tests for `prim_ram_1p_scr` MUBI values
- [dv] Implement fault injection test for hardening in register file HOT 1
- [dv] Implement spurious memory response test HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibex.