[ARM NN on Raspberry PI] libarmnn.so: undefined reference to `powf@GLIBC_2.27'

I am trying "Cross-compiling Arm NN for the Raspberry Pi and TensorFlow" 

I have followed exact steps mentioned in the below link,

https://developer.arm.com/technologies/machine-learning-on-arm/developer-material/how-to-guides/cross-compiling-arm-nn-for-the-raspberry-pi-and-tensorflow/extracting-arm-nn-on-your-raspberry-pi-and-running-a-sample-program

But I got below error when compiling sample application on raspberry pi.

pi@raspberrypi:~/armnn-dist $ export LD_LIBRARY_PATH=/home/pi/armnn-dist/armnn/lib
pi@raspberrypi:~/armnn-dist $ g++ SimpleSample.cpp -I/home/pi/armnn-dist/armnn/include -I/home/pi/armnn-dist/boost/include -L/home/pi/armnn-dist/armnn/lib -larmnn -larmnnTfParser -lprotobuf -o SimpleSample
/home/pi/armnn-dist/armnn/lib/libarmnn.so: undefined reference to `powf@GLIBC_2.27'
/home/pi/armnn-dist/armnn/lib/libarmnn.so: undefined reference to `expf@GLIBC_2.27'
/home/pi/armnn-dist/armnn/lib/libarmnn.so: undefined reference to `logf@GLIBC_2.27'
collect2: error: ld returned 1 exit status
pi@raspberrypi:~/armnn-dist $

Parents
No Data
Reply
  • Instead I suspect on the cross compiler version used in HOST  and Pi Target, and they are built with different glibc version.

    On Host(Ubuntu 18.04)

    arm-linux-gnueabihf-g++ -v
    gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)


    On Pi Target,

    arm-linux-gnueabihf-g++ -v
    gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)

Children
No Data