kou commented on PR #13991:
URL: https://github.com/apache/arrow/pull/13991#issuecomment-1230874753

   > @kou It seems the [centos-7-amd64 
job](https://github.com/ursacomputing/crossbow/runs/8075428150?check_suite_focus=true#step:6:148)
 uses gcc 4.8.5, should we switch to the devtoolset instead?
   
   Sure. The following patch will work:
   
   ```diff
   diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile 
b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
   index 04e74012f9..1da8e0fb79 100644
   --- a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
   +++ b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
   @@ -18,13 +18,20 @@
    ARG FROM=centos:7
    FROM ${FROM}
    
   +ENV \
   +  SCL=devtoolset-11
   +
    ARG DEBUG
    
    RUN \
      quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
      yum update -y ${quiet} && \
   -  yum install -y ${quiet} epel-release && \
      yum install -y ${quiet} \
   +    centos-release-scl-rh \
   +    epel-release && \
   +  yum install -y ${quiet} \
   +    ${SCL}-gcc-c++ \
   +    ${SCL}-make \
        bison \
        boost169-devel \
        brotli-devel \
   @@ -33,7 +40,6 @@ RUN \
        cmake3 \
        curl-devel \
        flex \
   -    gcc-c++ \
        gflags-devel \
        git \
        glog-devel \
   @@ -42,7 +48,6 @@ RUN \
        json-devel \
        libzstd-devel \
        lz4-devel \
   -    make \
        ninja-build \
        openssl-devel \
        pkg-config \
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to