Skip to content

Compile Tesseract-OCR for Android ARM64 Autotools error "__aarch64_ldadd8_relax" #4493

@pol2095

Description

@pol2095

Hello,

When I configure a Tesseract-OCR project for Android arm64-v8a on Ubuntu, I use the following settings :

./autogen.sh
./configure \
    --host=aarch64-linux-android \
    --disable-doc \
    --without-archive \
    --disable-openmp \
    --without-curl \
    --prefix=$ROOT/build/android/arm64-v8a
make -j$(nproc)
make install

I receive this message error using make command :

ld.lld: error: non-exported symbol '__aarch64_ldadd8_relax' in 'android-ndk/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18/lib/linux/libclang_rt.builtins-aarch64-android.a(outline_atomic_ldadd8_1.S.o)' is referenced by DSO './.libs/libtesseract.so'

How I can fix this error ?
Thanks

Operating System

Ubuntu 24.04 amd64

Other Operating System

Android NDK R29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions