Sujet : Re: Python recompile
De : olegsivokon (at) *nospam* gmail.com (Left Right)
Groupes : comp.lang.pythonDate : 02. Mar 2025, 23:26:07
Autres entêtes
Message-ID : <mailman.122.1740954379.2912.python-list@python.org>
References : 1 2 3
I think Python compiles with fPIC by default. Something else had
happened to the OPs checkout that caused these errors. OP needs to
better describe what they were doing to properly understand the
problem.
On Sun, Mar 2, 2025 at 10:10 PM Lew Pitcher via Python-list
<
python-list@python.org> wrote:
>
>
First off, this isn't really on-topic for comp.lang.c, as it is a question regarding a linker, interacting
with the results of various options given to a specific compiler.
>
However...
>
On Sun, 02 Mar 2025 14:35:08 +0000, The Doctor wrote:
>
How do I compensate for
>
ld: error: relocation R_X86_64_32 cannot be used against symbol '_PyRuntime'; recompile with -fPIC
>
The error message tells you exactly how to fix the problem: recompile the module using the
-fPIC
option to the compiler. -fPIC tells your compiler to generate a specific type of position-independant
code, which your linker (apparently) requires for a specific type of relocation.
>
>
[snip]
>
HTH
--
Lew Pitcher
"In Skills We Trust"
--
https://mail.python.org/mailman/listinfo/python-list