I have been working on a 64 bit yocto project and accidently used a wrong compiler to compile code. Normally I use
arm-oemllib32-linux-gnueabi-g++