foss-xtensa/nnlib-hifi4

Compilation error when compiling xa_nn_lib with xtensa RG-2018.9

Closed this issue · 2 comments

When compiling xa_nn_lib with xtensa RG-2018.9 in TFLM, the following error accurs:

//
/tmp/xa_nn_activations_asym8_asym8-5f24de.s: Assembler messages:
/tmp/xa_nn_activations_asym8_asym8-5f24de.s:1320: 错误: operand 3 of 'slli' has invalid value '0'
clang-3.9: error: Xtensa-as command failed with exit code 1 (use -v to see invocation)
make: *** [gen/xtensa_hifi4_default/obj/third_party_kernels/tensorflow/lite/micro/tools/make/downloads/xa_nnlib_hifi4/algo/kernels/activations/hifi4/xa_nn_activations_asym8_asym8.o] 错误 1
//

But there are no errors when compiling xa_nn_lib with RI-2020.4. I have no idea why this is so. Does it not support compiling with RG-2018.9?The command I use is:
make -f tensorflow/lite/micro/tools/make/Makefile -j TARGET=xtensa TARGET_ARCH=hifi4 OPTIMIZED_KERNEL_DIR=xtensa

Thanks a lot.

Hi @steveyanjq,

we have added xt-clang support from RI.2 onwards, No support in RG.9 tools.
Could you please use the latest tools for compilation.
Or
Switch the compiler from xt-clang to xt-xcc in the makefile
and try passing the -clang flag for compilation.

Thanks,
Bhanu