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.