Skip to content

Improper target flag for newer NDKs #1440

Open
@GglLfr

Description

@GglLfr

cc's auto-detection for NDK supplies --target arm-linux-android instead of something like --target armv7a-linux-androideabi35, causing the wrong (and non-existent) sysroot to be used and leading to this error:

ld.lld: error: cannot open crtbegin_dynamic.o: No such file or directory
ld.lld: error: cannot open crtend_android.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-androidOperating system: Androidbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions