Databases 9 min read

Compiling and Installing Percona XtraBackup 8.0 on Aarch64 (Kylin v10)

This guide explains how to prepare the environment, install required dependencies and a newer GCC toolset, and then compile, build, and install Percona XtraBackup 8.0 from source on an Aarch64 Kylin v10 system, including troubleshooting tips for common issues.

Aikesheng Open Source Community
Aikesheng Open Source Community
Aikesheng Open Source Community
Compiling and Installing Percona XtraBackup 8.0 on Aarch64 (Kylin v10)

Background : The official upstream does not provide a pre‑built binary for the ARM architecture, so the article demonstrates compiling Percona XtraBackup from source.

Environment preparation : The target machine runs Kylin v10 on an aarch64 CPU with kernel 4.19.90‑17.5.

# uname -a
Linux wx-test 4.19.90-17.5.ky10.aarch64 #1 SMP Fri Aug 7 13:35:33 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
# cat /etc/os-release
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Tercel)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Tercel)"
ANSI_COLOR="0;31"

Source acquisition and initial setup : Download the XtraBackup source tarball, extract it, and create a dedicated build directory.

# ll
总用量 291168
-rw-rw-r-- 1 dba dba 298154792 6月 27 14:18 percona-xtrabackup-8.0.27-19.tar.gz
# tar xf percona-xtrabackup-8.0.27-19.tar.gz
# cd percona-xtrabackup-8.0.27-19
# mkdir build
# cd build

Installing required packages via yum :

# yum install openssl-devel libaio libaio-devel automake autoconf \
  bison libtool ncurses-devel libgcrypt-devel libev-devel libcurl-devel zlib-devel \
  vim-common libcurl-devel libudev-devel

Installing a newer GCC toolset (gcc‑toolset‑11) because XtraBackup requires gcc >= 5.3:

# yum -y install kylin-release scl-utils scl-utils-build
# yum -y install gcc-toolset-11-gcc
# yum -y install gcc-toolset-11-gcc-c++

If the repository does not contain gcc-toolset , add an external CentOS 8 repo or download the RPM manually (e.g., from Alibaba Cloud).

Enable the toolset for the current session:

source /opt/rh/gcc-toolset-11/enable
source scl_source enable gcc-toolset-11
# gcc -v   # verify version 11.2.1

Compiling XtraBackup : Run cmake , using an offline Boost package if the machine cannot access the internet.

# cmake3 -DDOWNLOAD_BOOST=ON -DWITH_BOOST=./ -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF ..
# (offline) tar xf boost_1_73_0.tar.bz2
# cmake3 -DWITH_BOOST=./boost_1_73_0 -DDOWNLOAD_BOOST=OFF -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF ..

Configuration completes and generates build files in /home/dba/percona-xtrabackup-8.0.27-19/build .

Building with parallel jobs (adjust -j to the number of CPU cores):

# make -j22

Typical warnings may appear (e.g., string truncation), but the build usually succeeds.

Installation and verification:

# make install
# /usr/local/xtrabackup/bin/xtrabackup --version
xtrabackup version 8.0.27-19 based on MySQL server 8.0.27 Linux (aarch64)

Notes : The compilation step can fail due to missing dependencies that vary by environment; consult the error messages and install the required libraries. The make step is generally stable, but unexpected issues may still arise and should be addressed case‑by‑case.

CompilationLinuxMySQLdatabase backupAarch64Percona XtraBackup
Aikesheng Open Source Community
Written by

Aikesheng Open Source Community

The Aikesheng Open Source Community provides stable, enterprise‑grade MySQL open‑source tools and services, releases a premium open‑source component each year (1024), and continuously operates and maintains them.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.