Repository: pytorch
Issue: complie error when i use python setup.py build on arm computer
Labels: module: build,triaged,module: arm

## ❓ Questions and Help

### Please note that this issue tracker is not a help form and this issue will be closed.

htscc) root@htdata:/home/gaomi1/package/pytorch# python setup.py build
Building wheel torch-1.10.0a0+gitdfd2edc
-- Building version 1.10.0a0+gitdfd2edc
cmake --build . --target install --config Release -- -j 4
[1/2975] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x8.c.o
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x8.c.o 
/usr/bin/ccache /usr/bin/cc -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -I../third_party/XNNPACK/include -I../third_party/XNNPACK/src -I../third_party/cpuinfo/deps/clog/include -I../third_party/cpuinfo/include -I../third_party/pthreadpool/include -I../third_party/FXdiv/include -I../third_party/FP16/include -isystem ../third_party/protobuf/src -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -O3 -DNDEBUG -fPIC -Wno-psabi -pthread -std=gnu99  -march=armv8.2-a+fp16  -O2 -MD -MT confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x8.c.o -MF confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x8.c.o.d -o confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x8.c.o -c ../third_party/XNNPACK/src/f16-clamp/gen/neonfp16arith-x8.c
../third_party/XNNPACK/src/f16-clamp/gen/neonfp16arith-x8.c:1:0: error: unknown value ‘armv8.2-a+fp16’ for -march
 // Auto-generated file. Do not edit!
 ^
[2/2975] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c.o
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c.o 
/usr/bin/ccache /usr/bin/cc -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -I../third_party/XNNPACK/include -I../third_party/XNNPACK/src -I../third_party/cpuinfo/deps/clog/include -I../third_party/cpuinfo/include -I../third_party/pthreadpool/include -I../third_party/FXdiv/include -I../third_party/FP16/include -isystem ../third_party/protobuf/src -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -O3 -DNDEBUG -fPIC -Wno-psabi -pthread -std=gnu99  -march=armv8.2-a+fp16  -O2 -MD -MT confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c.o -MF confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c.o.d -o confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c.o -c ../third_party/XNNPACK/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c
../third_party/XNNPACK/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c:1:0: error: unknown value ‘armv8.2-a+fp16’ for -march
 // Auto-generated file. Do not edit!
 ^
[3/2975] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x16.c.o
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x16.c.o 
/usr/bin/ccache /usr/bin/cc -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -I../third_party/XNNPACK/include -I../third_party/XNNPACK/src -I../third_party/cpuinfo/deps/clog/include -I../third_party/cpuinfo/include -I../third_party/pthreadpool/include -I../third_party/FXdiv/include -I../third_party/FP16/include -isystem ../third_party/protobuf/src -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -O3 -DNDEBUG -fPIC -Wno-psabi -pthread -std=gnu99  -march=armv8.2-a+fp16  -O2 -MD -MT confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x16.c.o -MF confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x16.c.o.d -o confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-clamp/gen/neonfp16arith-x16.c.o -c ../third_party/XNNPACK/src/f16-clamp/gen/neonfp16arith-x16.c
../third_party/XNNPACK/src/f16-clamp/gen/neonfp16arith-x16.c:1:0: error: unknown value ‘armv8.2-a+fp16’ for -march
 // Auto-generated file. Do not edit!
 ^
[4/2975] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c.o
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c.o 
/usr/bin/ccache /usr/bin/cc -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -I../third_party/XNNPACK/include -I../third_party/XNNPACK/src -I../third_party/cpuinfo/deps/clog/include -I../third_party/cpuinfo/include -I../third_party/pthreadpool/include -I../third_party/FXdiv/include -I../third_party/FP16/include -isystem ../third_party/protobuf/src -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -O3 -DNDEBUG -fPIC -Wno-psabi -pthread -std=gnu99  -march=armv8.2-a+fp16  -O2 -MD -MT confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c.o -MF confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c.o.d -o confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c.o -c ../third_party/XNNPACK/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c
../third_party/XNNPACK/src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c:1:0: error: unknown value ‘armv8.2-a+fp16’ for -march
 // Auto-generated file. Do not edit!
 ^
ninja: build stopped: subcommand failed.



cc @malfet @seemethere @walterddr