Skip to content

R_LARCH_SOP_PUSH_PCREL against `PyObject_GenericGetAttr':PLT shouldn't be with r_addend. #252

Description

@zenghaiy

在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

Activity

  1. mrbean-bremen commented on Feb 14, 2025

    @mrbean-bremen
    Contributor

    Please add information about your system and setup, and please try to write in English.

  2. zenghaiy commented on Feb 14, 2025

    @zenghaiy
    Author

    Image

  3. mrbean-bremen commented on Feb 14, 2025

    @mrbean-bremen
    Contributor

    This seems to be specific to LoongArch - I don't know if anyone here has any experience with that.

  4. zenghaiy commented on Feb 14, 2025

    @zenghaiy
    Author

    error info:

    Image

  5. usiems commented on Feb 19, 2025

    @usiems
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions