Skip to content

Commit 94a5485

Browse files
excelle08facebook-github-bot
authored andcommitted
Download binutils proactively before building folly in TaoBench
Summary: When installing TaoBench, download binutils/libiberty's tarball package from ftpmirror.gnu.org proactively before building folly to address the installation failure due to folly downloading binutils from the unstable ftp.gnu.org website Differential Revision: D84540059
1 parent e89b477 commit 94a5485

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/tao_bench/install_tao_bench_x86_64.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ else
8181
echo "[SKIPPED] libevent-2.1.8"
8282
fi
8383

84+
# Download binutils
85+
BINUTILS_TARBALL_PATH="${FOLLY_BUILD_ROOT}/downloads/libiberty-binutils-2.42.tar.xz"
86+
BINUTILS_TARBALL_URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-2.42.tar.xz"
87+
if ! [ -f "${BINUTILS_TARBALL_PATH}" ]; then
88+
echo "Downloading libiberty-binutils-2.42.tar.xz..."
89+
source "${BENCHPRESS_ROOT}/scripts/download_with_retry.sh"
90+
mkdir -p "$(dirname "${BINUTILS_TARBALL_PATH}")"
91+
download_with_retry "${BINUTILS_TARBALL_URL}" "${BINUTILS_TARBALL_PATH}" 5
92+
fi
93+
8494
# Installing folly
8595
if ! [ -d "folly" ]; then
8696
git clone https://github.com/facebook/folly

0 commit comments

Comments
 (0)