Giter Site home page Giter Site logo

spike pk test about riscv-pk HOT 18 OPEN

riscv-software-src avatar riscv-software-src commented on July 26, 2024
spike pk test

from riscv-pk.

Comments (18)

gkelly avatar gkelly commented on July 26, 2024

That warning occurs when spike is trying to allocate memory but has to shrink it because the allocation fails. However, I think that the actual error is due to spike not being able to find pk. Is pk in the current directory?

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

no

from riscv-pk.

ccelio avatar ccelio commented on July 26, 2024

The pk is suppose to be in a particular location relative to Spike:

$RISCV/riscv64-unknown-elf/bin

You can manually specify the full path to your pk, and see if that works.

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

spike: symbol lookup error: //usr/local/lib/libriscv.so: undefined symbol: _ZN6htif_t6mem_mbEv
I am unable to identify this error

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

That's the linker being unable to find htif_t::mem_mb(), which is from libfesvr.so. Can you run ldd spike and see if it's resolving libfesvr.so properly?

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

I added like
" ldd spike pk test"
Now it is giving

spike:
ldd: ./spike no such file or directory

pk:
ldd: ./pl no such file or directory

On Fri, May 13, 2016 at 6:40 PM, Garret Kelly [email protected]
wrote:

That's the linker being unable to find htif_t::mem_mb(), which is from
libfesvr.so. Can you run ldd spike and see if it's resolving libfesvr.so
properly?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

The problem of symbol lookup error is coming when I type " spike pk hello"
the exact error is,
spike: symbol lookup error: //usr/local/lib/libriscv.so: undefined symbol: _ZN6htif_t6mem_mbEv
I am unable to identify this error

Can you please tell the solution to this problem. Previously you told to add ldd before spike, but it is not giving solution. Can you please elaborate on this.

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

Okay, can you run:

ldd `which spike`

And paste the output?

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

output is ...
linux-vdso.so.1 => (0x00007ffea1dfc000)
libriscv.so => //usr/local/lib/libriscv.so (0x00007f459db56000)
libfesvr.so => //usr/local/lib/libfesvr.so (0x00007f459d92b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f459d707000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f459d3fa000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f459d1e4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f459ce1e000)
libsoftfloat.so => //usr/local/lib/libsoftfloat.so (0x00007f459cc14000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f459c9f6000)
/lib64/ld-linux-x86-64.so.2 (0x000055a480515000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f459c6ef000)

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

output is ...
linux-vdso.so.1 => (0x00007ffea1dfc000)
libriscv.so => //usr/local/lib/libriscv.so (0x00007f459db56000)
libfesvr.so => //usr/local/lib/libfesvr.so (0x00007f459d92b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f459d707000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f459d3fa000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f459d1e4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f459ce1e000)
libsoftfloat.so => //usr/local/lib/libsoftfloat.so (0x00007f459cc14000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f459c9f6000)
/lib64/ld-linux-x86-64.so.2 (0x000055a480515000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f459c6ef000)

On Sun, May 15, 2016 at 10:26 PM, Suseela Budi [email protected]
wrote:

ldd: ./which spike: No such file or directory

On Sun, May 15, 2016 at 10:24 PM, Garret Kelly [email protected]
wrote:

Okay, can you run:

ldd which spike

And paste the output?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

Okay, and now:

nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

I did.
But same error for "spike pk hello"
i.e. spike: symbol lookup error: //usr/local/lib/libriscv.so: undefined
symbol: _ZN6htif_t6mem_mbEv

On Sun, May 15, 2016 at 10:35 PM, Garret Kelly [email protected]
wrote:

Okay, and now:

nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

I need the output from:

nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

no output.

On Sun, May 15, 2016 at 10:42 PM, Garret Kelly [email protected]
wrote:

I need the output from:

nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

Okay, that means that the symbol doesn't exist in that library. I suspect that you might have an old copy of libfesvr.so installed. Can you update your riscv-fesvr and riscv-isa-sim repositories, rebuild, reinstall and try again?

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

i had taken from git repository only. Can you tell where the new ones are?

On Sun, May 15, 2016 at 10:46 PM, Garret Kelly [email protected]
wrote:

Okay, that means that the symbol doesn't exist in that library. I suspect
that you might have an old copy of libfesvr.so installed. Can you update
your riscv-fesvr and riscv-isa-sim repositories, rebuild, reinstall and
try again?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

gkelly avatar gkelly commented on July 26, 2024

https://github.com/riscv/riscv-fesvr and https://github.com/riscv/riscv-isa-sim. Build and install riscv-fesvr first, then riscv-isa-sim. Make sure the --prefix you specify is the same for both. Also, choose a new --prefix that you haven't used yet to ensure you're not mixing versions.

from riscv-pk.

susi655 avatar susi655 commented on July 26, 2024

I am following build.sh which was given in the github.

I have a general doubt? Just to know..
Why these tools are making problem with installation?
Why can't we have a standardized procedure, so that no one gets error?

On Sun, May 15, 2016 at 11:00 PM, Garret Kelly [email protected]
wrote:

https://github.com/riscv/riscv-fesvr and
https://github.com/riscv/riscv-isa-sim. Build and install riscv-fesvr
first, then riscv-isa-sim. Make sure the --prefix you specify is the same
for both. Also, choose a new --prefix that you haven't used yet to ensure
you're not mixing versions.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#20 (comment)

Regards,
Suseela Budi,
M.tech 1st year,
DESE,
IISc.

from riscv-pk.

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.