Skip to content

Commit 58c6d39

Browse files
committed
build(Dockerfile): fix deps
- use gcc11 - add gawk for performance analysis scripts - add numpy, etc. for performance analysis .py scripts
1 parent 9f45cfa commit 58c6d39

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Dockerfile

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN apt-get update && \
1414
tree \
1515
time \
1616
curl \
17+
gawk \
1718
# build toolchain
1819
autoconf \
1920
build-essential \
@@ -23,20 +24,21 @@ RUN apt-get update && \
2324
bison \
2425
m4 \
2526
scons \
26-
gcc-11 \
27-
gcc \
28-
g++ \
29-
gcc-riscv64-linux-gnu \
3027
verilator \
3128
clang \
3229
llvm \
3330
mold \
3431
pkg-config \
3532
python3-pip \
3633
device-tree-compiler \
34+
# install gcc 11 to sync with our server environment
35+
gcc-11 \
36+
g++-11 \
37+
gcc-11-riscv64-linux-gnu \
3738
# runtime
3839
openjdk-21-jre \
3940
# libraries
41+
libc6-dev-riscv64-cross \
4042
libreadline6-dev \
4143
libsdl2-dev \
4244
zlib1g \
@@ -62,9 +64,17 @@ RUN curl -L https://repo1.maven.org/maven2/com/lihaoyi/mill-dist/1.0.4/mill-dist
6264
RUN python3 -m pip install --break-system-packages \
6365
jupyter \
6466
notebook \
65-
matplotlib
67+
# for performance analysis scripts
68+
matplotlib \
69+
numpy \
70+
pandas \
71+
scipy
72+
73+
# use gcc-11 to sync with our server environment
74+
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 && \
75+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 && \
76+
update-alternatives --install /usr/bin/riscv64-linux-gnu-gcc riscv64-linux-gnu-gcc /usr/bin/riscv64-linux-gnu-gcc-11 100
6677

67-
# use gcc-11 and g++-11 as default gcc and g++ for GEM5
6878
# also use python3.9-config as default python3-config for GEM5 scons script
6979
RUN rm /usr/bin/python3-config && \
7080
ln -s /usr/bin/python3.9-config /usr/bin/python3-config

0 commit comments

Comments
 (0)