R_LARCH_SOP_PUSH_PCREL against `PyObject_GenericGetAttr':PLT shouldn't be with r_addend.
在Linux下编译报错: /data/zhy/python39/lib/python3.9/config-3.9/libpython3.9.a(object.o)(.text.hot+0xc94): error: R_LARCH_SOP_PUSH_PCREL against `PyObject_GenericGetAttr': PLT shouldn't be with r_addend. /usr/bin/ld: 最后的链结失败: nonrepresentable section on output collect2: error: ld returned 1 exit status make[1]: *** [Makefile:270:../lib/libPythonQt-Qt5-Python3.9.so.3.2.0] 错误 1 make[1]: 离开目录“/data/zhy/pythonqt-3.5.7/src” make: *** [Makefile:77:sub-src-all] 错误 2
Please add information about your system and setup, and please try to write in English.
This seems to be specific to LoongArch - I don't know if anyone here has any experience with that.
error info:
This seems to be very LoongArch specific. What I notice about the error message is that libpython3.9 seems to be a static library (at least if the same naming conventions apply to LoongArch as for any other architecture). I'm not completely sure if PythonQt can work with a statically linked Python. Normally it should link with a libpython file ending on .so.