Skip to content

Unrecognized command-line option ‘-m32’ when compiling to AArch32 target #865

@robinvanemden

Description

@robinvanemden

Compling a WAMR application to AArch32 (using the latest official ARM gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf toolchain, or any previous versions thereof) results in the following error message:

arm-none-linux-gnueabihf-gcc: error: unrecognized command-line option ‘-m32’; did you mean ‘-mbe32’?

These are the offending lines:

add_definitions (-m32)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32")

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