Model compilation for MIPS targets?

I’m trying to compile for a generic MIPS CPU and was using

target = 'llvm -target=mips-linux-gnu'

and export the model with

lib.export_library(path_lib, cc='/usr/bin/mips-linux-gnu-g++-5')

where I’m using ubuntu’s c+±compiler-mips-linux-gnu package.

However I get following errors:

mips-linux-gnu/bin/ld: /tmp/tmpos9j_g96/lib0.o: CALL16 reloc at 0x414 not against global symbol
/tmp/tmpos9j_g96/lib0.o: error adding symbols: Bad value

Anyone has had similar experience, or related insight? It seems such error msg is usually caused by non-conformant source code, however in this case, I don’t know where to look.

try to add -mlong-calls compiler options.

Thanks for the suggestion but adding options=['-mlong-calls'] to export_library() didn’t fix the issue.

Tried to workaround the issue by using ‘c’ target, however the conv2d implementation inside lib.cc generated by TVM contains large amount of float6/float8 usage, which is unable to get exported by any standard c/c++ compiler.