-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Kernel load segfault #298
Comments
I am also facing to this issue. Distribution: Ubuntu 22.04 I built and installed sudo apt update
git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git
cd riscv-gnu-toolchain
mkdir build
./configure --prefix=/usr/local/riscv
make -j$(nproc)
make install I built and installed sudo apt update
sudo apt install device-tree-compiler
git clone https://github.com/riscv-software-src/riscv-isa-sim.git
cd riscv-isa-sim
mkdir build
cd build
../configure --prefix=/usr/local/riscv
make -j$(nproc)
sudo make install I built and installed git clone https://github.com/riscv-software-src/riscv-pk.git
cd riscv-pk
mkdir build
cd build
../configure --prefix=/usr/local/riscv --host=riscv64-unknown-elf
make -j$(nproc)
sudo make install I built an sample program: int main()
{
return 0;
} Then, compiled and executed it as follows: /usr/local/riscv/bin/riscv64-unknown-elf-gcc -static hello.c
/usr/local/riscv/bin/spike /usr/local/riscv/riscv64-unknown-elf/bin/pk a.out Then, got the following error:
I also tested
Thus, I think |
I faced the same problem. My Distribution: Ubuntu 22.04 |
@mga-sc could you please take a look? |
Yes, it seems like my commit https://github.com/riscv-software-src/riscv-pk/pull/296/files broke this. But my inner testsuite wasn't broken, I'm sorry. So, in order to solve this issue, first we should roll back changes. But the second problem is connected with csr and fence. We must include im_zicsr_zifencei in march. Can't we get info about rv32/rv64 from host if -march wasn't set? |
I reverted #296 until this is resolved. |
I compiled the whole build toolchain from scratch, likewise
spike
andpk
. When trying to run the simplest "Hello, World" program on my Linux box, I'm getting the following error: "Kernel load segfault @ 0x0000000010000005".Any advice on what to check/recompile/whatever would be highly appreciated.
The text was updated successfully, but these errors were encountered: