Hi
I’m deploying a project to Artemis module, and I’m using the Arduino library option. While compiling using Arduino 1.8.15
and arm-none-eabi-gcc 8-2018-q4
I get this error. I’m building another TFLM-based project with Mbed studio without throughing this error in comparisons.h
.
Error details:
/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++ -include /home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/variants/SFE_ARTEMIS_MODULE/mbed/mbed_config.h -include /home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino/sdk/ArduinoSDK.h -iprefix /home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/ @/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/variants/SFE_ARTEMIS_MODULE/mbed/.cxx-flags -MMD -DARDUINO=10815 -DARDUINO_APOLLO3_SFE_ARTEMIS_MODULE -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI @/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/variants/SFE_ARTEMIS_MODULE/mbed/.cxx-symbols -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/variants/SFE_ARTEMIS_MODULE -I/home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src -I/home/yahya/snap/arduino/current/Arduino/libraries/DFRobot_BMX160 -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/libraries/Wire/src -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/libraries/SPI/src -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino/mbed-bridge -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino/mbed-bridge/core-api -I/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/cores/arduino/mbed-bridge/core-api/api/deprecated @/home/yahya/snap/arduino/61/.arduino15/packages/SparkFun/hardware/apollo3/2.1.1/variants/SFE_ARTEMIS_MODULE/mbed/.includes /home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/dequantize.cpp -o /tmp/arduino_build_281072/libraries/IMU_inferencing/edge-impulse-sdk/tensorflow/lite/micro/kernels/dequantize.cpp.o
In file included from /home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/micro/kernels/comparisons.cpp:15:
/home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/kernels/internal/reference/comparisons.h:64:54: error: macro "F" passed 2 arguments, but takes just 1
output_data[i] = F(input1_data[i], input2_data[i]);
^
/home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/kernels/internal/reference/comparisons.h:105:60: error: macro "F" passed 2 arguments, but takes just 1
output_data[i] = F(scaled_input1_val, scaled_input2_val);
^
/home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/kernels/internal/reference/comparisons.h:147:70: error: macro "F" passed 2 arguments, but takes just 1
input2_data[SubscriptToIndex(dims.desc2, b, y, x, c)]);
^
/home/yahya/snap/arduino/current/Arduino/libraries/IMU_inferencing/src/edge-impulse-sdk/tensorflow/lite/kernels/internal/reference/comparisons.h:205:53: error: macro "F" passed 2 arguments, but takes just 1
F(scaled_input1_val, scaled_input2_val);
^