Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10828

Impala 4.0 should pin to a specifit toolchain commit when building on ARM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.1
    • Infrastructure
    • None
    • aarch64

    Description

      While building on ARM platform, bin/bootstrap_system.sh will compile native-toolchain:

      if [[ $ARCH_NAME == 'aarch64' ]]; then
        echo -e "\nexport SKIP_TOOLCHAIN_BOOTSTRAP=true" >> \
          "${IMPALA_HOME}/bin/impala-config-local.sh"
        SET_TOOLCHAIN_HOME="export NATIVE_TOOLCHAIN_HOME=${IMPALA_HOME}/../native-toolchain"
        echo -e "\n$SET_TOOLCHAIN_HOME" >> ~/.bashrc
        echo -e "\n$SET_TOOLCHAIN_HOME" >> "${IMPALA_HOME}/bin/impala-config-local.sh"
        eval "$SET_TOOLCHAIN_HOME"
        if ! [[ -d "$NATIVE_TOOLCHAIN_HOME" ]]; then
          time -p git clone https://github.com/cloudera/native-toolchain/ \
            "$NATIVE_TOOLCHAIN_HOME"
        fi
        cd "$NATIVE_TOOLCHAIN_HOME"
        git pull
        echo "Begin build tool chain, may need several hours, please be patient...."
        sudo chmod 755 ~/.cache
        ./buildall.sh
        cd -
        mkdir -p ${IMPALA_HOME}/toolchain
      fi 

      However, it checks out the master branch of native-toolchain, which will result in compile errors. The corresponding commit should be 701500a90f2539a1d3f4ef3fe7546135b670f0a5.

      Attachments

        Activity

          People

            stigahuang Quanlong Huang
            stigahuang Quanlong Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: