Install gdb 12 from source (#7842)

* Install gdb12 from source

* nit: remove tar file

* nit

* Separate GDB installation and purge libs

* Pass -y to purge

* use remove --purge
This commit is contained in:
Navidem 2022-06-15 11:09:02 -05:00 committed by GitHub
parent bdfa1ef3d2
commit 3ad57541c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -15,4 +15,11 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-runner
RUN apt-get update && apt-get install -y gdb valgrind zip
RUN apt-get update && apt-get install -y valgrind zip
# Installing GDB 12, re https://github.com/google/oss-fuzz/issues/7513.
RUN apt-get install -y build-essential libgmp-dev && \
wget https://ftp.gnu.org/gnu/gdb/gdb-12.1.tar.xz && \
tar -xf gdb-12.1.tar.xz && cd gdb-12.1 && ./configure && \
make && make install && cd .. && rm -rf gdb-12.1* && \
apt-get remove --purge -y build-essential libgmp-dev