Skip to content

hard float ABI passed to arm32 android compilations, which require softfp ABI #21488

@Beyley

Description

@Beyley

Zig Version

0.14.0-dev.1632+d83a3f174

Steps to Reproduce and Observed Behavior

Clone the 1ed2bd6b00604eceeb4cc28937eec4e962e2ea30 commit of this repo.

install the android NDK version 21

uncomment these lines
https://github.com/LittleBigRefresh/scetool/blob/1ed2bd6b00604eceeb4cc28937eec4e962e2ea30/build.zig#L72

receive this error

error: sub-compilation of libunwind failed
    /home/beyley/zig-versions/master/lib/libunwind/src/UnwindRegistersRestore.S:1:1: note: clang exited with code 1
    :1:1: note: unsupported option '-mfloat-abi=hard' for target 'armv4t-unknown-linux-android'
    :1:1: note: '-mfloat-abi=hard': selected processor lacks floating point registers

Expected Behavior

Compilation succeeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    abi-sfThe software floating point ABI for various architecturesbugObserved behavior contradicts documented or intended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions