tvm-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mnboos via TVM Discuss <>
Subject [TVM Discuss] [Development] ONNX model compilation fails with a model that previously worked
Date Wed, 03 Apr 2019 06:22:55 GMT

Okay, I for some reason, there was `opt_level=3` set here. I changed it to 2 and now it fails

  File "/home/martin/Dev/xyz/src/tvm/", line 112, in compile_model
  File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/",
line 128, in export_library
    fcompile(file_name, files, **kwargs)
  File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/contrib/",
line 33, in create_shared
    _linux_shared(output, objects, options, cc)
  File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/contrib/",
line 90, in _linux_shared
    raise RuntimeError(msg)
RuntimeError: Compilation error:
/usr/bin/ld: /tmp/tmp_i8odkrm/lib.o: relocation R_X86_64_32S against `.rodata.cst4' can not
be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

[Visit Topic](
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](

Tianqi Chen, UW, Seattle, WA, 98105, United States
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message