Giter Site home page Giter Site logo

Comments (6)

rswarbrick avatar rswarbrick commented on July 20, 2024

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.

Krishnakumarmohanraj avatar Krishnakumarmohanraj commented on July 20, 2024

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.

rswarbrick avatar rswarbrick commented on July 20, 2024

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.

Krishnakumarmohanraj avatar Krishnakumarmohanraj commented on July 20, 2024

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.

rswarbrick avatar rswarbrick commented on July 20, 2024

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.

Krishnakumarmohanraj avatar Krishnakumarmohanraj commented on July 20, 2024

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

image
image

Let me know which gcc version we need to use in ubuntu 22.04

from ibex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.