IMPALA-12354: Add aarch64 native-toolchain build

Pre-built toolchains are identified by a TOOLCHAIN_BUILD_ID. This commit
adds an aarch64 (64-bit ARM) native-toolchain build, separate from the
x86_64 native-toolchain build, with its own environment variable set in
impala-config.sh. bootstrap_toolchain.py selects which version to use
based on 'uname -m'.

impala-config.sh also verifies that IMPALA_TOOLCHAIN_BUILD_ID_AARCH64
and IMPALA_TOOLCHAIN_BUILD_ID_X86_64 were produced from the same
native-toolchain ref by checking the 2nd token of the build ID.

Updates package version to include the architecture tag to match how
native-toolchain now names them.

Testing:
- successfully built on ARM, and tests passed (exceptions noted in
  IMPALA-12490)

Change-Id: I9bfa7125dbc647b33041c5572d97b7f7ccad6258
Reviewed-on: http://gerrit.cloudera.org:8080/20519
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Tested-by: Michael Smith <michael.smith@cloudera.com>
This commit is contained in:
Michael Smith
2023-09-20 11:25:06 -07:00
parent 96d49b603a
commit 1599360678
4 changed files with 21 additions and 15 deletions

View File

@@ -424,7 +424,7 @@ bootstrap_dependencies() {
git remote add toolchain "${IMPALA_TOOLCHAIN_REPO}"
git fetch toolchain "${IMPALA_TOOLCHAIN_BRANCH}"
# Specifying a branch avoids a large message from git about detached HEADs.
git checkout "${IMPALA_TOOLCHAIN_COMMIT_HASH}" -b "${IMPALA_TOOLCHAIN_BUILD_ID}"
git checkout "${IMPALA_TOOLCHAIN_COMMIT_HASH}" -b "${IMPALA_TOOLCHAIN_BRANCH}"
else
pushd "${NATIVE_TOOLCHAIN_HOME}"
fi