Linker error in debug LibreOffice build for android (under Ubuntu)

asked 2021-05-14 15:31:15 +0200

updated 2021-05-14 15:32:42 +0200

I am trying to build debug version of LibreOffice for android (I need to debug C++ core).

If I do release build, all works OK:

./autogen.sh --with-distro=LibreOfficeAndroidAarch64 -with-android-sdk=/home/alex/Android/Sdk --with-android-ndk=/home/alex/Android/Sdk/ndk/19.2.5345600

But if I add --enable-dbgutil or --enable-debug option then I get build error ld.gold: internal error in fix_errata_and_relocate_erratum_stubs:

/home/alex/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld.gold: internal error in fix_errata_and_relocate_erratum_stubs, at /buildbot/src/android/binutils/toolchain/binutils/binutils-2.27/gold/aarch64.cc:2006

What is the reason of this error and how can I solve this?

I use gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

Thanks

edit retag flag offensive close merge delete