Skip to content

the clang compiler does not support '-march=armv8.2-a+bf16' when build xnnpack for android #6924

Closed
@feifeicoder

Description

@feifeicoder

Follow the tutorial to build xnnpack runtime lib for android with NDK r19 and meet such errors:

[ 91%] Building C object backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfmlal.c.o
[ 91%] Building C object backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o
[ 91%] Building C object backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x8c2-minmax-neonbf16-bfdot-lane-ld128.c.o
clang: error: the clang compiler does not support '-march=armv8.2-a+bf16'
gmake[2]: *** [backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-all.dir/build.make:43241: backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfmlal.c.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: androidIssues related to Android code, build, and executionmodule: xnnpackIssues related to xnnpack delegation and the code under backends/xnnpack/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions