How to set target_host for yocto embedded platform?


#1

Yocto embedded platform use “arm-poky-linux-gnueabi-gxx” toolchain, it can’t regonize by LLVM, after set "target_host = ‘llvm -device=arm_cpu -target=arm-poky-linux-gnueabi -mattr=+neon -mfloat-abi=hard -mcpu=cortex-a7’ ", encounter such error

costs=(RuntimeError('Compilation error:\n/usr/bin/ld: /tmp/tmptrc7o04d/lib.o: Relocations in generic ELF (EM: 40)\n/usr/bin/ld: /tmp/tmptrc7o04d/lib.o: Relocations in generic ELF (EM: 40)\n/tmp/tmptrc7o04d/lib.o: error adding symbols: File in wrong format\ncollect2: error: ld returned 1 exit status\n',),

Could you share how to set target_host for yocto embedded platform? Thanks very much!