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

perf: Upgrade elfutils & disable libdebuginfod #372

Merged
merged 4 commits into from
Jun 6, 2022
Merged
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
22 changes: 15 additions & 7 deletions scripts/perf_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,26 @@ apt-get install -y --no-install-recommends \
libbabeltrace-ctf-dev \
systemtap-sdt-dev \
libslang2-dev \
libzstd-dev \
libbz2-dev \
flex \
bison

cd /tmp

# build & install libzstd (elfutils requires newer versions than available in apt)
curl -L https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz -o zstd-1.5.2.tar.gz
tar -xf zstd-1.5.2.tar.gz
pushd zstd-1.5.2
make -j && make install
popd
rm -r zstd-1.5.2 zstd-1.5.2.tar.gz

# install newer versions of elfutils
curl -L ftp://sourceware.org/pub/elfutils/0.179/elfutils-0.179.tar.bz2 -o elfutils-0.179.tar.bz2
tar -xf elfutils-0.179.tar.bz2
pushd elfutils-0.179
./configure --disable-debuginfod --prefix=/usr && make -j 8 && make install
curl -L ftp://sourceware.org/pub/elfutils/0.187/elfutils-0.187.tar.bz2 -o elfutils-0.187.tar.bz2
tar -xf elfutils-0.187.tar.bz2
pushd elfutils-0.187
# disable debuginfod, otherwise it will try to dlopen("libdebuginfod.so") in runtime & that can
# cause problems, see https://github.com/Granulate/gprofiler/issues/340.
./configure --disable-debuginfod --disable-libdebuginfod --prefix=/usr && make -j 8 && make install
popd
rm -r elfutils-0.179
rm elfutils-0.179.tar.bz2
rm -r elfutils-0.187 elfutils-0.187.tar.bz2