# Libreoffice android build error in linux arm64

**URL:** <https://forum.collaboraonline.com/t/libreoffice-android-build-error-in-linux-arm64/1827>\
**Category:** Installation & Configuration\
**Created:** [May 23, 2023, 6:00am UTC](https://forum.collaboraonline.com/t/libreoffice-android-build-error-in-linux-arm64/1827 "2023-05-23T06:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neho](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@neho](https://forum.collaboraonline.com/u/neho)\
**Post date:** [May 23, 2023, 6:00am UTC](https://forum.collaboraonline.com/t/libreoffice-android-build-error-in-linux-arm64/1827/1 "2023-05-23T06:00:33Z")

</div>

i use the libreoffice branch distro/collabora/cp-6.4  
and my computer is linux arm64 ubuntu 20.04

and my autogen.input

CC=/usr/bin/clang  
CXX=/usr/bin/clang++

–with-jdk-home=/usr/lib/jvm/java-11-openjdk-arm64  
–with-android-ndk=/home/$USER/Android/Sdk/ndk/android-ndk-r20b  
–with-android-sdk=/home/$USER/Android/Sdk  
–with-distro=CPAndroid  
–enable-sal-log

i add  
CC=/usr/bin/clang  
CXX=/usr/bin/clang++  
If I don’t add when run ./autogen.sh will report an error

but when i run make still error, i also try use ndk21, ndk23 all error too

error message here:  
pixman-glyph.c:401:16: warning: unknown attribute ‘ **force\_align\_arg\_pointer** ’ ignored [-Wunknown-attributes]  
**attribute** (( **force\_align\_arg\_pointer** ))  
^  
pixman-glyph.c:643:16: warning: unknown attribute ‘ **force\_align\_arg\_pointer** ’ ignored [-Wunknown-attributes]  
**attribute** (( **force\_align\_arg\_pointer** ))  
^  
2 warnings generated.  
CC pixman-region16.lo  
CC pixman-region32.lo  
CC pixman-solid-fill.lo  
CC pixman-timer.lo  
CC pixman-trap.lo  
CC pixman-utils.lo  
CCLD libpixman-1.la  
…/libtool: line 1720: /home/chunhao/Android/Sdk/ndk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86\_64/bin/aarch64-linux-android-ar: cannot execute binary file: Exec format error  
make[4]: \*\*\* [Makefile:725: libpixman-1.la] Error 126  
make[3]: \*\*\* [Makefile:503: all-recursive] Error 1  
make[2]: \*\*\* [Makefile:410: all] Error 2  
make[1]: \*\*\* [/home/chunhao/Desktop/octon/libreoffice/core/external/cairo/ExternalProject\_pixman.mk:33: /home/chunhao/Desktop/octon/libreoffice/core/workdir/ExternalProject/pixman/build] Error 1  
make: \*\*\* [Makefile:282: build] Error 2

In fact, I have successfully run it on an x86\_64 computer, and I don’t need to add CC &  
CXX settings, so I’m curious why it can’t run on an arm64 computer
