Unable to compile and install Percona-xtrabackup80 in ARM architecture

My os version:

root@221121ba4f56:/mnt/percona-xtrabackup# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

gcc version:

root@221121ba4f56:/mnt/percona-xtrabackup# gcc --version
gcc (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

xtrabackup version:

$ git clone -b release-8.0.32-25 https://github.com/percona/percona-xtrabackup.git

error log :

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3bba5/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_3bba5.dir/build.make CMakeFiles/cmTC_3bba5.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3bba5.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD  -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics  -fPIE -o CMakeFiles/cmTC_3bba5.dir/src.c.o -c /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_3bba5
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3bba5.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics  -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_3bba5.dir/src.c.o -o cmTC_3bba5 
ld.lld: error: undefined symbol: pthread_create
>>> referenced by src.c:11 (./build/CMakeFiles/CMakeTmp/src.c:11)
>>>               CMakeFiles/cmTC_3bba5.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_detach
>>> referenced by src.c:12 (./build/CMakeFiles/CMakeTmp/src.c:12)
>>>               CMakeFiles/cmTC_3bba5.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_cancel
>>> referenced by src.c:13 (./build/CMakeFiles/CMakeTmp/src.c:13)
>>>               CMakeFiles/cmTC_3bba5.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_join
>>> referenced by src.c:14 (./build/CMakeFiles/CMakeTmp/src.c:14)
>>>               CMakeFiles/cmTC_3bba5.dir/src.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_3bba5.dir/build.make:99: cmTC_3bba5] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_3bba5/fast] Error 2


Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2cfae/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2cfae.dir/build.make CMakeFiles/cmTC_2cfae.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2cfae.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_2cfae.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_2cfae
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2cfae.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_2cfae.dir/CheckFunctionExists.c.o -o cmTC_2cfae  -lpthreads 
ld.lld: error: unable to find library -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_2cfae.dir/build.make:99: cmTC_2cfae] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_2cfae/fast] Error 2



Determining if the function floor exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_9ac47/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_9ac47.dir/build.make CMakeFiles/cmTC_9ac47.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9ac47.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=floor -fPIE -o CMakeFiles/cmTC_9ac47.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
<command-line>: warning: conflicting types for built-in function 'floor'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:7:3: note: in expansion of macro 'CHECK_FUNCTION_EXISTS'
    7 |   CHECK_FUNCTION_EXISTS(void);
      |   ^~~~~~~~~~~~~~~~~~~~~
/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:1:1: note: 'floor' is declared in header '<math.h>'
  +++ |+#include <math.h>
    1 | #ifdef CHECK_FUNCTION_EXISTS
Linking C executable cmTC_9ac47
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9ac47.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=floor -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_9ac47.dir/CheckFunctionExists.c.o -o cmTC_9ac47 
ld.lld: error: undefined symbol: floor
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_9ac47.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_9ac47.dir/build.make:99: cmTC_9ac47] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_9ac47/fast] Error 2



Determining if the function dlopen exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_d5169/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_d5169.dir/build.make CMakeFiles/cmTC_d5169.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d5169.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=dlopen -fPIE -o CMakeFiles/cmTC_d5169.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_d5169
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d5169.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=dlopen -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_d5169.dir/CheckFunctionExists.c.o -o cmTC_d5169 
ld.lld: error: undefined symbol: dlopen
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_d5169.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_d5169.dir/build.make:99: cmTC_d5169] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_d5169/fast] Error 2



Determining if the function timer_create exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_0f3dc/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_0f3dc.dir/build.make CMakeFiles/cmTC_0f3dc.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0f3dc.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=timer_create -fPIE -o CMakeFiles/cmTC_0f3dc.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_0f3dc
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0f3dc.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=timer_create -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_0f3dc.dir/CheckFunctionExists.c.o -o cmTC_0f3dc 
ld.lld: error: undefined symbol: timer_create
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_0f3dc.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_0f3dc.dir/build.make:99: cmTC_0f3dc] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_0f3dc/fast] Error 2



Determining if files sys/types.h;sasl/sasl.h exist failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f1672/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_f1672.dir/build.make CMakeFiles/cmTC_f1672.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f1672.dir/HAVE_SASL_SASL_H.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics  -fPIE -o CMakeFiles/cmTC_f1672.dir/HAVE_SASL_SASL_H.c.o -c /mnt/percona-xtrabackup/build/CMakeFiles/CheckIncludeFiles/HAVE_SASL_SASL_H.c
/mnt/percona-xtrabackup/build/CMakeFiles/CheckIncludeFiles/HAVE_SASL_SASL_H.c:3:10: fatal error: sasl/sasl.h: No such file or directory
    3 | #include <sasl/sasl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_f1672.dir/build.make:78: CMakeFiles/cmTC_f1672.dir/HAVE_SASL_SASL_H.c.o] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_f1672/fast] Error 2


Source:
/* */
#include <sys/types.h>
#include <sasl/sasl.h>


int main(void){return 0;}

Determining if the function _aligned_malloc exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_4b061/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_4b061.dir/build.make CMakeFiles/cmTC_4b061.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4b061.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=_aligned_malloc -fPIE -o CMakeFiles/cmTC_4b061.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_4b061
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4b061.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=_aligned_malloc -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_4b061.dir/CheckFunctionExists.c.o -o cmTC_4b061  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: _aligned_malloc
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_4b061.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_4b061.dir/build.make:99: cmTC_4b061] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_4b061/fast] Error 2



Determining if the function directio exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1881e/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_1881e.dir/build.make CMakeFiles/cmTC_1881e.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1881e.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=directio -fPIE -o CMakeFiles/cmTC_1881e.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_1881e
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1881e.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=directio -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_1881e.dir/CheckFunctionExists.c.o -o cmTC_1881e  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: directio
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_1881e.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_1881e.dir/build.make:99: cmTC_1881e] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_1881e/fast] Error 2



Determining if the function gethrtime exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_ba5be/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_ba5be.dir/build.make CMakeFiles/cmTC_ba5be.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ba5be.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=gethrtime -fPIE -o CMakeFiles/cmTC_ba5be.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_ba5be
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ba5be.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=gethrtime -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_ba5be.dir/CheckFunctionExists.c.o -o cmTC_ba5be  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: gethrtime
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_ba5be.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_ba5be.dir/build.make:99: cmTC_ba5be] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_ba5be/fast] Error 2



Determining if the function getpassphrase exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_8219d/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_8219d.dir/build.make CMakeFiles/cmTC_8219d.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8219d.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=getpassphrase -fPIE -o CMakeFiles/cmTC_8219d.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_8219d
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8219d.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=getpassphrase -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_8219d.dir/CheckFunctionExists.c.o -o cmTC_8219d  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: getpassphrase
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_8219d.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_8219d.dir/build.make:99: cmTC_8219d] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_8219d/fast] Error 2



Determining if the function issetugid exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_45501/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_45501.dir/build.make CMakeFiles/cmTC_45501.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_45501.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=issetugid -fPIE -o CMakeFiles/cmTC_45501.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_45501
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_45501.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=issetugid -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_45501.dir/CheckFunctionExists.c.o -o cmTC_45501  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: issetugid
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_45501.dir/CheckFunctionExists.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_45501.dir/build.make:99: cmTC_45501] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_45501/fast] Error 2



Determining if the function strlcpy exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_7703c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_7703c.dir/build.make CMakeFiles/cmTC_7703c.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7703c.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=strlcpy -fPIE -o CMakeFiles/cmTC_7703c.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_7703c
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7703c.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=strlcpy -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_7703c.dir/CheckFunctionExists.c.o -o cmTC_7703c  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: strlcpy
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_7703c.dir/CheckFunctionExists.c.o:(main)
>>> did you mean: strncpy
>>> defined in: /lib/aarch64-linux-gnu/libc.so.6
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_7703c.dir/build.make:99: cmTC_7703c] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_7703c/fast] Error 2



Determining if the function strlcat exists failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2c92f/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2c92f.dir/build.make CMakeFiles/cmTC_2c92f.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2c92f.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=strlcat -fPIE -o CMakeFiles/cmTC_2c92f.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c
Linking C executable cmTC_2c92f
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2c92f.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCHECK_FUNCTION_EXISTS=strlcat -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_2c92f.dir/CheckFunctionExists.c.o -o cmTC_2c92f  -lm -ldl -lpthread -lrt 
ld.lld: error: undefined symbol: strlcat
>>> referenced by CheckFunctionExists.c:17 (/usr/local/share/cmake-3.24/Modules/CheckFunctionExists.c:17)
>>>               CMakeFiles/cmTC_2c92f.dir/CheckFunctionExists.c.o:(main)
>>> did you mean: strncat
>>> defined in: /lib/aarch64-linux-gnu/libc.so.6
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_2c92f.dir/build.make:99: cmTC_2c92f] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_2c92f/fast] Error 2
...

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_6114b/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_6114b.dir/build.make CMakeFiles/cmTC_6114b.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6114b.dir/src.c.o
/usr/bin/cc -DHAVE_SOLARIS_AFFINITY -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Wwrite-strings -Wjump-misses-init -Wstringop-truncation -Wmissing-include-dirs -fno-strict-aliasing  -fPIE -o CMakeFiles/cmTC_6114b.dir/src.c.o -c /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.c
/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.c:3:10: fatal error: sys/lwp.h: No such file or directory
    3 | #include <sys/lwp.h>
      |          ^~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_6114b.dir/build.make:78: CMakeFiles/cmTC_6114b.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_6114b/fast] Error 2


Source file was:

#include <sys/types.h>
#include <sys/lwp.h>
#include <sys/processor.h>
#include <sys/procset.h>
int main()
{
  processorid_t cpu_id = (processorid_t)0;
  id_t tid = _lwp_self();
  processor_bind(P_LWPID, tid, cpu_id, 0);
}
Performing C++ SOURCE FILE Test HAVE_CXX_W_shadow_field failed with the following output:
Change Dir: /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_cab08/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_cab08.dir/build.make CMakeFiles/cmTC_cab08.dir/build
gmake[1]: Entering directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_cab08.dir/src.cxx.o
/usr/local/bin/c++ -DHAVE_CXX_W_shadow_field -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/mnt/percona-xtrabackup=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -march=armv8-a+crc -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=5 -Wstringop-truncation -Wsuggest-override -Wmissing-include-dirs -Wextra-semi -Wlogical-op  -Wshadow-field -fPIE -o CMakeFiles/cmTC_cab08.dir/src.cxx.o -c /mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command-line option '-Wshadow-field'; did you mean '-Wshadow-ivar'?
gmake[1]: *** [CMakeFiles/cmTC_cab08.dir/build.make:78: CMakeFiles/cmTC_cab08.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/mnt/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_cab08/fast] Error 2


Source file was:
int main(void) { return 0; }

Hi @Eric_Jones .

PXB compiles on arm - see Compiling Percona XtraBackup for ARM - Percona Database Performance Blog

I have also tested it on EC2 using Debian Bullseye:

# Installed all required packages and initialized submodules as per https://docs.percona.com/percona-xtrabackup/8.0/installation/compiling_xtrabackup.html

# check versions
root@ip-172-31-18-236:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@ip-172-31-18-236:~# uname -a
Linux ip-172-31-18-236 5.10.0-21-cloud-arm64 #1 SMP Debian 5.10.162-1 (2023-01-21) aarch64 GNU/Linux

$ gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.


# Compile
git clone -b release-8.0.32-25 https://github.com/percona/percona-xtrabackup.git --depth 10 --recurse-submodules

cd percona-xtrabackup/
mkdir bld
cd bld/
cmake ../ -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/boost
make -j 8 install

xtrabackup --version
/usr/local/xtrabackup/bin/xtrabackup version 8.0.32-25 based on MySQL server 8.0.32 Linux (aarch64) (revision id: 14f007fb)

From what I can see, the default GCC/G++ on Bullseyes is version 10. From gcc-12 - Debian Package Tracker it seems that gcc 12 is not stable and only available on testing repos. That is the only difference I can see from your setup and mine.

@Marcelo_Altmann

My os verison:

root@iZ2zecged3txs6wrvxlq8jZ:~/percona-xtrabackup/build# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

gcc version:

root@iZ2zecged3txs6wrvxlq8jZ:~/percona-xtrabackup/build# gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

cmake version:

root@iZ2zecged3txs6wrvxlq8jZ:~/percona-xtrabackup/build# cmake --version
cmake version 3.18.4

Complie

git clone -b release-8.0.32-25 https://github.com/percona/percona-xtrabackup.git --depth 10 --recurse-submodules

cd percona-xtrabackup/
mkdir bld
cd bld/
cmake ../ -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/boost
make -j 8 install

Get Error

Performing C SOURCE FILE Test C_LD_LLD_RESULT failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_3bc43/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_3bc43.dir/build.make CMakeFiles/cmTC_3bc43.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3bc43.dir/src.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -DC_LD_LLD_RESULT -fPIE -o CMakeFiles/cmTC_3bc43.dir/src.c.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_3bc43
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3bc43.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -DC_LD_LLD_RESULT -Wl,-z,relro  CMakeFiles/cmTC_3bc43.dir/src.c.o -o cmTC_3bc43  -fuse-ld=lld
collect2: fatal error: cannot find ‘ld’
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_3bc43.dir/build.make:106: cmTC_3bc43] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_3bc43/fast] Error 2


Source file was:
int main() {}
Performing C++ SOURCE FILE Test CXX_LD_LLD_RESULT failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_9a162/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_9a162.dir/build.make CMakeFiles/cmTC_9a162.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_9a162.dir/src.cxx.o
/usr/bin/c++   -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCXX_LD_LLD_RESULT -fPIE -o CMakeFiles/cmTC_9a162.dir/src.cxx.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_9a162
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9a162.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCXX_LD_LLD_RESULT -Wl,-z,relro  CMakeFiles/cmTC_9a162.dir/src.cxx.o -o cmTC_9a162  -fuse-ld=lld
collect2: fatal error: cannot find ‘ld’
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_9a162.dir/build.make:106: cmTC_9a162] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_9a162/fast] Error 2

...

gmake[1]: *** [CMakeFiles/cmTC_3cf38.dir/build.make:85: CMakeFiles/cmTC_3cf38.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_3cf38/fast] Error 2


Source file was:

      #include <arm_acle.h>
      int main() {
        __crc32cb(0, 0); __crc32ch(0, 0); __crc32cw(0, 0); __crc32cd(0, 0);
        __crc32b(0, 0); __crc32h(0, 0); __crc32w(0, 0); __crc32d(0, 0);
        return 0;
      }
Performing C++ SOURCE FILE Test HAVE_CXX_W_deprecated_non_prototype failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_b43bc/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_b43bc.dir/build.make CMakeFiles/cmTC_b43bc.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b43bc.dir/src.cxx.o
/usr/bin/c++   -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -march=armv8-a+crc -DHAVE_CXX_W_deprecated_non_prototype  -Wdeprecated-non-prototype -fPIE -o CMakeFiles/cmTC_b43bc.dir/src.cxx.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command-line option ‘-Wdeprecated-non-prototype’
gmake[1]: *** [CMakeFiles/cmTC_b43bc.dir/build.make:85: CMakeFiles/cmTC_b43bc.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_b43bc/fast] Error 2


Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test HAVE_CXX_W_documentation failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_03f4c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_03f4c.dir/build.make CMakeFiles/cmTC_03f4c.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_03f4c.dir/src.cxx.o
/usr/bin/c++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -march=armv8-a+crc -DHAVE_CXX_W_documentation  -Wdocumentation -fPIE -o CMakeFiles/cmTC_03f4c.dir/src.cxx.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command-line option ‘-Wdocumentation’
gmake[1]: *** [CMakeFiles/cmTC_03f4c.dir/build.make:85: CMakeFiles/cmTC_03f4c.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_03f4c/fast] Error 2


Source file was:
int main(void) { return 0; }

I don’t know what’s wrong, why tell me I can’t find ld.
It may depend on lld. When I recompile and install lld, I get another error.

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_ac48a/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_ac48a.dir/build.make CMakeFiles/cmTC_ac48a.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ac48a.dir/src.c.o
/usr/bin/cc   -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_ac48a.dir/src.c.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_ac48a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ac48a.dir/link.txt --verbose=1
/usr/bin/cc -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security   -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-z,relro -fuse-ld=lld  CMakeFiles/cmTC_ac48a.dir/src.c.o -o cmTC_ac48a
ld.lld: error: undefined symbol: pthread_create
>>> referenced by src.c:11 (./CMakeFiles/CMakeTmp/src.c:11)
>>>               CMakeFiles/cmTC_ac48a.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_detach
>>> referenced by src.c:12 (./CMakeFiles/CMakeTmp/src.c:12)
>>>               CMakeFiles/cmTC_ac48a.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_cancel
>>> referenced by src.c:13 (./CMakeFiles/CMakeTmp/src.c:13)
>>>               CMakeFiles/cmTC_ac48a.dir/src.c.o:(main)

ld.lld: error: undefined symbol: pthread_join
>>> referenced by src.c:14 (./CMakeFiles/CMakeTmp/src.c:14)
>>>               CMakeFiles/cmTC_ac48a.dir/src.c.o:(main)
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_ac48a.dir/build.make:106: cmTC_ac48a] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_ac48a/fast] Error 2

...


Run Build Command(s):/usr/bin/gmake cmTC_45780/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_45780.dir/build.make CMakeFiles/cmTC_45780.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_45780.dir/src.cxx.o
/usr/bin/c++   -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -march=armv8-a+crc -DHAVE_CXX_W_deprecated_non_prototype  -Wdeprecated-non-prototype -fPIE -o CMakeFiles/cmTC_45780.dir/src.cxx.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command-line option ‘-Wdeprecated-non-prototype’
gmake[1]: *** [CMakeFiles/cmTC_45780.dir/build.make:85: CMakeFiles/cmTC_45780.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_45780/fast] Error 2


Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test HAVE_CXX_W_documentation failed with the following output:
Change Dir: /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_b5fcc/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_b5fcc.dir/build.make CMakeFiles/cmTC_b5fcc.dir/build
gmake[1]: Entering directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b5fcc.dir/src.cxx.o
/usr/bin/c++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -std=c++17 -fno-omit-frame-pointer -ffp-contract=off -ftls-model=initial-exec -g -O2 -ffile-prefix-map=/root/percona-xtrabackup/build=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -moutline-atomics -march=armv8-a+crc -DHAVE_CXX_W_documentation  -Wdocumentation -fPIE -o CMakeFiles/cmTC_b5fcc.dir/src.cxx.o -c /root/percona-xtrabackup/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command-line option ‘-Wdocumentation’
gmake[1]: *** [CMakeFiles/cmTC_b5fcc.dir/build.make:85: CMakeFiles/cmTC_b5fcc.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/percona-xtrabackup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_b5fcc/fast] Error 2


Source file was:
int main(void) { return 0; }

Can you provide me with the Percona-xtrabackup package of the available arm architecture?

@Marcelo_Altmann thank you

Please send us the full output of cmake & make commands

For the complete cmake&make command output, see Connect
error/CMakeError.log at main · JokerDevops/error · GitHub

Looking forward to your reply.

Hi @Eric_Jones . I am unable to reproduce the same issues as you are seeing. What I am looking for is the full cmake command like:

+ cmake /work/mysql/src -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/work/mysql/ins -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/work/boost -DDEBUG_EXTNAME=OFF -DWITH_LZ4=system -DWITH_SSL=system '-DCOMPILATION_COMMENT=MySQL Community Server-Debug - GPL'
-- Running cmake version 3.22.1
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- CMAKE_MODULE_PATH is /work/mysql/src/cmake
-- MySQL 8.0.32
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0

( all the lines until )
-- CMAKE_BUILD_TYPE: Debug
-- COMPILE_DEFINITIONS: _GNU_SOURCE;_FILE_OFFSET_BITS=64;RAPIDJSON_NO_SIZETYPEDEFINE;RAPIDJSON_SCHEMA_USE_INTERNALREGEX=0;RAPIDJSON_SCHEMA_USE_STDREGEX=1;BOOST_NO_CXX98_FUNCTION_BASE;HAVE_CONFIG_H;__STDC_LIMIT_MACROS;__STDC_FORMAT_MACROS;_USE_MATH_DEFINES;LZ4_DISABLE_DEPRECATE_WARNINGS;HAVE_TLSv13
-- CMAKE_C_FLAGS: -fno-omit-frame-pointer -ftls-model=initial-exec  -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Wwrite-strings -Wjump-misses-init -Wstringop-truncation -Wmissing-include-dirs -Werror
-- CMAKE_CXX_FLAGS: -std=c++17 -fno-omit-frame-pointer -ftls-model=initial-exec  -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=5 -Wstringop-truncation -Wsuggest-override -Wmissing-include-dirs -Wextra-semi -Wlogical-op -Werror
-- CMAKE_CXX_FLAGS_DEBUG: -DSAFE_MUTEX -DENABLED_DEBUG_SYNC -g
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -g1
-- CMAKE_CXX_FLAGS_RELEASE: -ffunction-sections -fdata-sections -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_MINSIZEREL: -ffunction-sections -fdata-sections -Os -DNDEBUG
-- CMAKE_C_LINK_FLAGS: 
-- CMAKE_CXX_LINK_FLAGS: 
-- CMAKE_EXE_LINKER_FLAGS 
-- CMAKE_MODULE_LINKER_FLAGS 
-- CMAKE_SHARED_LINKER_FLAGS 
-- Configuring done
-- Generating done

And the full output of make too.

It was never clear where the problem occurred. I do not know how to fix him. Can you provide the ARM binary package for Xtrabackup? @Marcelo_Altmann Thanks so much !!!