[Tool] Fix not found gcov (#60775)

Signed-off-by: stdpain <drfeng08@gmail.com>
This commit is contained in:
stdpain 2025-07-10 14:27:57 +08:00 committed by GitHub
parent 4a6be879e9
commit f95b952ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -11,7 +11,16 @@ RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata && \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*
RUN ln -s -f /usr/bin/gcc-12 /usr/bin/gcc && ln -s -f /usr/bin/g++-12 /usr/bin/g++ && ln -s -f /usr/bin/cpp-12 /usr/bin/cpp
RUN ln -s -f /usr/bin/cpp-12 /usr/bin/cpp && \
ln -s -f /usr/bin/g++-12 /usr/bin/g++ && \
ln -s -f /usr/bin/gcc-12 /usr/bin/gcc && \
ln -s -f /usr/bin/gcc-ar-12 /usr/bin/gcc-ar && \
ln -s -f /usr/bin/gcc-nm-12 /usr/bin/gcc-nm && \
ln -s -f /usr/bin/gcc-ranlib-12 /usr/bin/gcc-ranlib && \
ln -s -f /usr/bin/gcov-12 /usr/bin/gcov && \
ln -s -f /usr/bin/gcov-dump-12 /usr/bin/gcov-dump && \
ln -s -f /usr/bin/gcov-tool-12 /usr/bin/gcov-tool && \
ln -s -f /usr/bin/lto-dump-12 /usr/bin/lto-dump
# Set the soft link to jvm
RUN ARCH=`uname -m` && \