Closed
Description
I was trying to compile tensorflow-lite 2.7 with Raspberry Pi GCC Cross-Compiler Toolchains (Bullseye). I got error:
... [ 73%] Building C object _deps/xnnpack-build/CMakeFiles/XNNPACK.dir/src/qc8-igemm/gen/1x16c4-minmax-fp32-neondot.c.o [ 73%] Building C object _deps/xnnpack-build/CMakeFiles/XNNPACK.dir/src/qc8-igemm/gen/4x8c4-minmax-fp32-neondot.c.o [ 73%] Building C object _deps/xnnpack-build/CMakeFiles/XNNPACK.dir/src/qc8-igemm/gen/4x16c4-minmax-fp32-neondot.c.o /tmp/ccLir1WO.s: Assembler messages: /tmp/ccLir1WO.s:60: Error: selected processor does not support `vsdot.s8 q8,q11,d7[0]' in ARM mode /tmp/ccLir1WO.s:62: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode /tmp/ccLir1WO.s:65: Error: selected processor does not support `vsdot.s8 q8,q9,d7[1]' in ARM mode /tmp/ccLir1WO.s:69: Error: selected processor does not support `vsdot.s8 q10,q9,d7[1]' in ARM mode /tmp/ccLir1WO.s:141: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode /tmp/ccLir1WO.s:144: Error: selected processor does not support `vsdot.s8 q8,q11,d7[0]' in ARM mode make[2]: *** [_deps/xnnpack-build/CMakeFiles/XNNPACK.dir/build.make:5458: _deps/xnnpack-build/CMakeFiles/XNNPACK.dir/src/qc8-gemm/gen/1x8c4-minmax-fp32-neondot.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /tmp/ccpalmhZ.s: Assembler messages:
Using Buster toolchain tensorflow-lite compiles without any errors.
It can be related with:
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101723
- Cross-compilation for RPi3 (armv7) fails on assembly google/XNNPACK#1465
- CMake build error on armv7 with latest gcc google/XNNPACK#2003
Maybe you can apply patch like you did here #89