Okay, I for some reason, there was `opt_level=3` set here. I changed it to 2 and now it fails with:
```python File "/home/martin/Dev/xyz/src/tvm/compile_model.py", line 112, in compile_model lib.export_library(lib_name) File "/home/martin/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/module.py", 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/cc.py", 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/cc.py", 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](https://discuss.tvm.ai/t/onnx-model-compilation-fails-with-a-model-that-previously-worked/2081/5) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/dc8586351c622e6c603f33954ac4cb99105a6ebf976a90aa40d5ec27c5154577). Tianqi Chen, UW, Seattle, WA, 98105, United States http://tracking.discuss.tvm.ai/tracking/unsubscribe?msgid=v2xKOQon2dXtTy-z6jqg4w2