Skip to content

Compiled binaries do not run on really old Android versions #1195

Open
@nullchinchilla

Description

@nullchinchilla

Checklist

Describe your issue

On Android 5, compiled binaries fail to run with messages on stderr like:

WARNING: linker: /data/app/io.geph.android-1/lib/arm/libgeph.so: unused DT entry: type 0x6ffffef5 arg 0x15d4
...
CANNOT LINK EXECUTABLE: cannot locate symbol "__register_atfork" referenced by "/data/app/io.geph.android-1/lib/arm/libgeph.so"...

From some googling, this looks like it's targeting too new of an Android SDK version. Is there any place where this can be configured?

What target(s) are you cross-compiling for?

aarch64-linux-android, armv7-linux-androideabi

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.4 (80c9f91 2023-01-20)

Example

No response

Additional information / notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions