Skip to content

linker error when using aarch64 tokenizer_c.a #91

Description

@NaveenMittal0

Getting following linker errors when using cross compiled tokenizer_c.a in a project.

The problem is some object files in tokenizer_c.a archive are not compiling for aarch64 and still getting compiled to x86 instead.

aarch64-unknown-linux-gnu/bin/ld.bfd: tokenizers-cpp-build/aarch64-unknown-linux-gnu/release/libtokenizers_c.a(a445302c6d3dcb51-regexec.o): Relocations in generic ELF (EM: 62)
aarch64-unknown-linux-gnu/bin/ld.bfd: tokenizers-cpp-build/aarch64-unknown-linux-gnu/release/libtokenizers_c.a(a445302c6d3dcb51-regexec.o): Relocations in generic ELF (EM: 62)
aarch64-unknown-linux-gnu/bin/ld.bfd: tokenizers-cpp-build/aarch64-unknown-linux-gnu/release/libtokenizers_c.a(a445302c6d3dcb51-regexec.o): Relocations in generic ELF (EM: 62)
aarch64-unknown-linux-gnu/bin/ld.bfd: tokenizers-cpp-build/aarch64-unknown-linux-gnu/release/libtokenizers_c.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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