Emit-bundle creates softfp object code despite triple set to arm-linux-gnueabihf #2181
Description
I successfully compiled GLOW (commit-id: 5bb41e1) using default triple settings (i.e. x86_64).
AOT compilation for sample example (mnist) finished properly, emitting mnix.onnx.o. I used command:
/../bin/image-classifier ../tests/images/mnist/2_1065.png -model ../../models/mnist.onnx -image-mode=0to255 -model-input-name=data_0 -cpu -target arm-linux-gnueabihf -emit-bundle ./bundle_dir
But emit-bundle step, created softfp object file (despite "-cpu -target arm-linux-gnueabihf" options set).
Is there any other command line option required for specific cross-compilation?
Thank you!
djdjds
p.s.
..../build_x86/LENET/bundle_dir$ readelf -a mnist.onnx.o
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: ARM
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 8260 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 40 (bytes)
Number of section headers: 12
Section header string table index: 1
Similarly on attempt to create executable on target, reported softfp for mnist.onnx.o
g++ main.cpp mnist.onnx.o -lpng -o lenet_mnist
/usr/lib/gcc/arm-linux-gnueabi/7.2.1/../../../../arm-linux-gnueabi/bin/ld: error: lenet_mnist uses VFP register arguments, mnist.onnx.o does not
/usr/lib/gcc/arm-linux-gnueabi/7.2.1/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file mnist.onnx.o