Skip to content

Commit

Permalink
ARROW-17536: [Packaging][RPM][Gandiva] Fix build error on CentOS Stre…
Browse files Browse the repository at this point in the history
…am 9

LLVM is built with gcc-toolset-12 and it can't be used with the
default g++. We also need to use gcc-toolset-12.

Error message:

    /usr/bin/ld: .../libgandiva.so.1000: undefined reference to
    `std::__glibcxx_assert_fail(char const*, int, char const*, char const*)'
  • Loading branch information
kou committed Aug 27, 2022
1 parent 1b9c57e commit 8031f6b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
ARG FROM=quay.io/centos/centos:stream9
FROM ${FROM}

ENV SCL=gcc-toolset-12

ARG DEBUG

RUN \
quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
dnf install -y ${quiet} epel-release && \
dnf install --enablerepo=crb -y ${quiet} \
${SCL} \
bison \
boost-devel \
brotli-devel \
Expand Down

0 comments on commit 8031f6b

Please sign in to comment.