Comments (18)
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.
no
from riscv-pk.
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.
spike: symbol lookup error: //usr/local/lib/libriscv.so: undefined symbol: _ZN6htif_t6mem_mbEv
I am unable to identify this error
from riscv-pk.
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.
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.
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.
Okay, can you run:
ldd `which spike`
And paste the output?
from riscv-pk.
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.
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.
Okay, and now:
nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb
from riscv-pk.
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.
I need the output from:
nm -C /usr/local/lib/libfesvr.so | grep htif_t::mem_mb
from riscv-pk.
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.
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.
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.
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.
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)
- error when build RV32 HOT 1
- RV32 bbl loader ../machine/minit.c:78: assertion failed: !(read_csr(misa) & fd_mask) HOT 1
- [question]A request on c-based bbl payload example
- Pk doesn't recognize vector instructions HOT 1
- Compiling error in Mac M1 HOT 1
- Error While configuring Berkeley boot loader HOT 2
- how to suppres "bbl loader" output by spike pk? HOT 1
- Redundant Load and Branch Instructions from HTIF while executing binaries HOT 3
- bbl error
- Loading large file into memory HOT 2
- could not open pk HOT 1
- "Cannot open output file dummy_payload" when building with docker HOT 1
- Linux kernel not showing output after earlycon0 disabled
- macOS 14,compile fail ,"./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d make linux"
- Issue with linux HOT 1
- pk: mmap based on `p_filesz` fails when it is 0 (zero) HOT 2
- Support RVC program without requiring RVC pk HOT 1
- Issue while installing the riscv-pk -- ../pk/pk.c:188: Error: unknown CSR `senvcfg' HOT 2
- GCC 15 + RVV cause illegal instruction sequence in PK HOT 1
- Issue when installing PK for RV32E
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 riscv-pk.