Skip to content
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

Installation Guide for v1.1.0 #1775

Open
zaki-29871 opened this issue Aug 16, 2024 · 0 comments
Open

Installation Guide for v1.1.0 #1775

zaki-29871 opened this issue Aug 16, 2024 · 0 comments

Comments

@zaki-29871
Copy link

zaki-29871 commented Aug 16, 2024

Installation approach that used by myself.

#!/bin/bash build-riscv-isa-sim-v1.1.0.sh
set -euo pipefail

# Install required packages.
sudo apt install device-tree-compiler libboost-regex-dev libboost-system-dev

# Install LLVM and Clang.
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04.tar.xz
# Extract to the folder you want.

wget https://github.com/riscv-software-src/riscv-isa-sim/archive/refs/tags/v1.1.0.tar.gz
# Extract to the folder you want.

LLVM_HOME=$(pwd)/clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04

export CC=$LLVM_HOME/bin/clang CXX=$LLVM_HOME/bin/clang++
export CFLAGS="-I$LLVM_HOME/lib/clang/17/include"
export CXXFLAGS="-I$LLVM_HOME/lib/clang/17/include"

cd riscv-isa-sim/
rm -rf build/ && mkdir build
cd build
bash ../configure \
    --prefix=$(pwd)/../spike/

make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant