I want to use FPU on Arm Cortex a9. I set the target variable in the python file as:
target = “llvm -target=arm-poky-linux-gnueabi -mfloat-abi=hard”
I then changed the toolchain in the make file as follows:
CXX = /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
PKG_CFLAGS = -std=c++11 -O2 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=neon -fPIC
After doing all this I am getting the error as:
/opt/poky/1.7/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:10:29: fatal error: gnu/stubs-hard.h: No such file or directory #include <gnu/stubs-hard.h>
If I replace “hard” with “softfp” then tvm compiles perfectly and I am facing this issue only with “hard” option.
How can I correct this issue? I checked the gnu folder location and there is no stubs-hard.h file. If someone has faced similar issue then please let me know.