Skip to content

Commit

Permalink
Deps updates: TBB, Ninja, Folly and fmtlib, Centos OpenSSL, Blosc (#7…
Browse files Browse the repository at this point in the history
…246)

* deps: bump tbb to 2021.8.0 and fix tsan config

* deps: bump ninja to 1.11.1

* deps: bump folly to 2023.02.20.00 and fmtlib to 9.1.0

Disable folly exception tracer to fix static linking.
See facebook/folly#1623

* deps: bump centos openssl to 1.1.1m

* deps: bump blosc to 1.21.2

Signed-off-by: Misiu Godfrey <[email protected]>
  • Loading branch information
steveblackmon-mapd authored and Misiu Godfrey committed Aug 15, 2023
1 parent 440b4f1 commit f2827aa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
27 changes: 19 additions & 8 deletions scripts/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ "$TSAN" = "true" ]; then
ARROW_TSAN="-DARROW_JEMALLOC=OFF -DARROW_USE_TSAN=ON"
TBB_TSAN="-fsanitize=thread -fPIC -O1 -fno-omit-frame-pointer"
elif [ "$TSAN" = "false" ]; then
ARROW_TSAN="-DARROW_JEMALLOC=BUNDLED"
TBB_TSAN=""
fi

ARROW_USE_CUDA="-DARROW_CUDA=ON"
Expand Down Expand Up @@ -292,8 +290,8 @@ function install_geos() {

}

FOLLY_VERSION=2021.02.01.00
FMT_VERSION=7.1.3
FOLLY_VERSION=2023.02.20.00
FMT_VERSION=9.1.0
function install_folly() {
# Folly depends on fmt
download https://github.com/fmtlib/fmt/archive/$FMT_VERSION.tar.gz
Expand Down Expand Up @@ -325,6 +323,7 @@ function install_folly() {
cmake -GNinja \
-DCMAKE_CXX_FLAGS="-fPIC -pthread" \
-DFOLLY_USE_JEMALLOC=OFF \
-DFOLLY_NO_EXCEPTION_TRACER=ON \
-DBUILD_SHARED_LIBS=${FOLLY_SHARED} \
-DCMAKE_INSTALL_PREFIX=$PREFIX ..
cmake_build_and_install
Expand Down Expand Up @@ -397,7 +396,7 @@ function install_go() {
mv go $PREFIX
}

NINJA_VERSION=1.10.0
NINJA_VERSION=1.11.1

function install_ninja() {
download https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/ninja-linux.zip
Expand Down Expand Up @@ -450,7 +449,7 @@ EOF
fi
}

TBB_VERSION=2021.3.0
TBB_VERSION=2021.8.0

function install_tbb() {
patch_old_thrust_tbb
Expand All @@ -459,14 +458,26 @@ function install_tbb() {
pushd oneTBB-${TBB_VERSION}
mkdir -p build
pushd build
if [ "$TSAN" == "false" ]; then
TBB_CFLAGS=""
TBB_CXXFLAGS=""
TBB_TSAN=""
elif [ "$TSAN" = "true" ]; then
TBB_CFLAGS="-fPIC -fsanitize=thread -fPIC -O1 -fno-omit-frame-pointer"
TBB_CXXFLAGS="-fPIC -fsanitize=thread -fPIC -O1 -fno-omit-frame-pointer"
TBB_TSAN="-DTBB_SANITIZE=thread"
fi
if [ "$1" == "static" ]; then
cmake -E env CFLAGS="$TBB_CFLAGS" CXXFLAGS="$TBB_CXXFLAGS" \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DTBB_TEST=off -DBUILD_SHARED_LIBS=off \
-DTBB_TEST=off \
-DBUILD_SHARED_LIBS=off \
${TBB_TSAN} \
..
else
cmake -E env CFLAGS="$TBB_CFLAGS" CXXFLAGS="$TBB_CXXFLAGS" \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
Expand Down Expand Up @@ -544,7 +555,7 @@ function install_glm() {
mv glm-${GLM_VERSION}/glm $PREFIX/include/
}

BLOSC_VERSION=1.21.1
BLOSC_VERSION=1.21.2

function install_blosc() {
wget --continue https://github.com/Blosc/c-blosc/archive/v${BLOSC_VERSION}.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions scripts/mapd-deps-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ makej
make install PREFIX=$PREFIX
popd

# https://www.openssl.org/source/openssl-1.0.2u.tar.gz
download_make_install ${HTTP_DEPS}/openssl-1.0.2u.tar.gz "" "linux-$(uname -m) no-shared no-dso -fPIC"
# https://www.openssl.org/source/openssl-1.1.1m.tar.gz
download_make_install ${HTTP_DEPS}/openssl-1.1.1m.tar.gz "" "linux-$(uname -m) no-shared no-dso -fPIC"

# libarchive
CFLAGS="-fPIC" download_make_install ${HTTP_DEPS}/xz-5.2.4.tar.xz "" "--disable-shared --with-pic"
Expand Down

0 comments on commit f2827aa

Please sign in to comment.