Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build_gdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ PWD=$(pwd)
# if you prefer the gdb with debug symbol use commented line to build
# $PWD/../configure -disable-binutils --with-python --disable-ld --disable-gold --disable-gas --disable-sim --disable-gprof CXXFLAGS='-g' CFLAGS='-g' --prefix=/usr

$PWD/../configure --with-python --prefix=/usr
# If gcc version is 15 or higher, add -std=gnu17 to the CFLAGS in configure option
gcc_version=$(gcc -dumpversion | cut -f1 -d.)
if [ "$gcc_version" -ge 15 ]; then
CONF_OPTIONS="CFLAGS=-std=gnu17"
fi

$PWD/../configure --with-python --prefix=/usr $CONF_OPTIONS
make -j 8 && sudo make install # do not remove the build folder && rm -rf $build_folder
echo "if you want to remove the build folder, please run \"rm -rf $build_folder\""
12 changes: 9 additions & 3 deletions test/regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ set -ex
# ubuntu:24.04, ubuntu:22.04, ubuntu:20.04
# debian:trixie(13), debian:bookworm(12) (debian:bullseye(11) fails for tcmalloc 2.16 due to gcc/g++ version)
# redhat/ubi10, redhat/ubi9 (redhat/ubi8 fails because tcache_entry is mangled, presumably for security reasons)
# fedora:41, fedora:40 (fedora:42 fails due to default gcc, EXTRA_CFLAGS=-std=gnu17 may fix)
# opensuse/leap:15.6, opensuse/leap:15.5 (opensuse/leap:16.0 fails due to gcc 15 and readline issues https://lists.buildroot.org/pipermail/buildroot/2025-May/777877.html)
# fedora:42, fedora:41, fedora:40 (fedora:43 fails because of glibc 2.42, which is not supported by core_analyzer ptmalloc 2.35 parser)
# opensuse/leap:16.0, opensuse/leap:15.6, opensuse/leap:15.5
#

docker system prune -af > /dev/null
Expand Down Expand Up @@ -52,7 +52,10 @@ docker system prune -af > /dev/null
docker build --build-arg VARIANT="redhat/ubi9" --build-arg GDB_VERSION="12.1" -t ca_test -q -f test/DockerfileTest_redhat .

# docker system prune -af > /dev/null
# docker build --build-arg VARIANT="redhat/ubi8" -t ca_test -q -f test/DockerfileTest_redhat .
# docker build --build-arg VARIANT="redhat/ubi8" --build-arg GDB_VERSION="12.1" -t ca_test -q -f test/DockerfileTest_redhat .

docker system prune -af > /dev/null
docker build --build-arg VARIANT="fedora:42" --build-arg GDB_VERSION="16.3" -t ca_test -q -f test/DockerfileTest_redhat .

docker system prune -af > /dev/null
docker build --build-arg VARIANT="fedora:41" --build-arg GDB_VERSION="16.3" -t ca_test -q -f test/DockerfileTest_redhat .
Expand All @@ -63,6 +66,9 @@ docker build --build-arg VARIANT="fedora:40" --build-arg GDB_VERSION="16.3" -t c
#docker system prune -af > /dev/null
#docker build --build-arg VARIANT="opensuse/tumbleweed" --build-arg GDB_VERSION="12.1" -t ca_test -q -f test/DockerfileTest_suse .

docker system prune -af > /dev/null
docker build --build-arg VARIANT="opensuse/leap:16.0" --build-arg GDB_VERSION="16.3" -t ca_test -q -f test/DockerfileTest_suse .

docker system prune -af > /dev/null
docker build --build-arg VARIANT="opensuse/leap:15.6" --build-arg GDB_VERSION="12.1" -t ca_test -q -f test/DockerfileTest_suse .

Expand Down
16 changes: 11 additions & 5 deletions test/setup_redhat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ set -ex

# Update the package list and install required packages

yum install -y wget procps-ng git autoconf gettext \
dnf update -y
dnf install -y wget procps-ng git autoconf gettext \
gcc gcc-c++ make automake zlib-devel libtool diffutils \
libcurl-devel sqlite-devel xz \
python3-devel python3-pip sudo yum-utils cpan patch
Expand All @@ -18,8 +19,13 @@ pip install distro && python3 ./test/extra_setup.py

ln -sf /usr/bin/python3 /usr/bin/python

debuginfo-install -y glibc
dnf debuginfo-install -y glibc

# If gcc version is 15 or higher, add -std=gnu17 to the CFLAGS in configure option
gcc_version=$(gcc -dumpversion | cut -f1 -d.)
if [ "$gcc_version" -ge 15 ]; then
CONF_OPTIONS="CFLAGS=-std=gnu17"
fi

cd /opt && \
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.tar.gz && \
Expand All @@ -37,15 +43,15 @@ cd /opt && \
wget https://ftp.gnu.org/gnu/texinfo/texinfo-7.0.3.tar.gz && \
tar xvf texinfo-7.0.3.tar.gz && \
cd texinfo-7.0.3 && \
./configure && make -j 4 && make install
./configure $CONF_OPTIONS && make -j 4 && make install

cd /opt && \
wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz && \
tar xvf gmp-6.2.1.tar.xz && \
cd gmp-6.2.1 && \
./configure && make -j 4 && make install
./configure $CONF_OPTIONS && make -j 4 && make install

cd /opt && \
git clone https://gitlab.inria.fr/mpfr/mpfr.git && \
cd mpfr && \
./autogen.sh && ./configure && make -j 4 && make install
./autogen.sh && ./configure $CONF_OPTIONS && make -j 4 && make install
16 changes: 4 additions & 12 deletions test/setup_suse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ set -ex
zypper install -y gcc gcc-c++ && \
zypper install -y wget sudo texinfo && \
zypper install -y tar gzip xz && \
zypper install -y gmp-devel mpfr-devel && \
zypper install -y git make makeinfo m4 automake libtool python3-devel patch

cd /opt && \
wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz && \
tar xvf gmp-6.2.1.tar.xz && \
cd gmp-6.2.1 && \
./configure && make -j 4 && make install

cd /opt && \
git clone https://gitlab.inria.fr/mpfr/mpfr.git && \
cd mpfr && \
./autogen.sh && ./configure && make -j 4 && make install

zypper mr -ea && \
zypper install -y glibc-debuginfo
zypper install -y glibc-debuginfo && \
zypper ref && \
zypper dup -y

ln -s /usr/bin/python3 /usr/bin/python

Expand Down
Loading