undefined reference to `expf' despite seemingly correct configuration and pristine builds

I am trying to build an application on nRF Connect SDK on VS Code and I keep getting this error:

c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: ../../third_party/neuton/lib/libneuton_arm_cortex-m4.a(neuton_nn_backend.c.obj): in function `nn_activation_exp_f32':
neuton_nn_backend.c:(.text.nn_activation_exp_f32+0x6): undefined reference to `expf'

This third party library comes from Neuton.AI which is an official partner of Nordic. I was trying the integration out but it seems like my project isn't configured properly? 

Here are the things I already tried and got the same error: 

  • SDK versions 2.6.2, 2.8.0, and 3.0.0 and with toolchains 2.8.0 and 3.0.0. 
  • adding CONFIG_COMPILER_OPT="-mfloat-abi=hard" or CONFIG_COMPILER_OPT="-lm -mfloat-abi=hard" to project configuration file.
  • define CONFIG_FPU=y
  • define CONFIG_NEWLIB_LIBC=y

Neuton did not have any support channel and also I think this problem is more related to my project setup. Thank you in advance.

Parents Reply Children
No Data
Related