tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug] uTVM bug with tflite demo

Open Theoo1997 opened this issue 3 years ago • 0 comments
trafficstars

Hi, I am trying to run the tflite demo that you have for uTVM. I install TVM from source. When I run the .py file the above problem appears:

/usr/bin/ld: build/crt/libmicrotvm_rpc_common.a(crcccitt.o): relocation R_X86_64_32S against symbol `crc_tabccitt' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libaot_executor_module.a(aot_executor_module.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libgraph_executor_module.a(graph_executor_module.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libgraph_executor.a(graph_executor.o): relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libgraph_executor.a(load_json.o): relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libcommon.a(packed_func.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libcommon.a(crt_runtime_api.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: build/crt/libcommon.a(ndarray.o): relocation R_X86_64_32S against `.rodata.cst8' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:81: build/main] Error 1
Traceback (most recent call last):
  File "micro_tflite.py", line 309, in <module>
    generated_project.build()
.............
subprocess.CalledProcessError: Command '['make', 'build/main']' returned non-zero exit status 2.

Any ideas how to solve that issue?

Theoo1997 avatar Sep 14 '22 11:09 Theoo1997