Re: Python recompile

Liste des GroupesRevenir à l c 
Sujet : Re: Python recompile
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c
Date : 04. Mar 2025, 06:46:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vq644c$1o5s3$3@dont-email.me>
References : 1
User-Agent : Pan/0.162 (Pokrosvk)
On Sun, 2 Mar 2025 14:35:08 -0000 (UTC), The Doctor wrote:

How do I compensate for
 
ld: error: relocation R_X86_64_32 cannot be used against symbol '_PyRuntime'; recompile with -fPIC
defined in /usr/local/lib/libpython3.13.a(pylifecycle.o)
referenced by thread_pthread.h:138 (Python/thread_pthread.h:138)
              thread.o:(PyThread_init_thread) in archive /usr/local/lib/libpython3.13.a

[etc]

So, at a wild guess, it looks like the symbol “_PyRuntime” is defined
in one module (pylifecycle.o) which is compiled non-PIC, and is being
referenced in another module (thread.o) which was compiled as PIC. Or
maybe it’s the other way round.

How you managed to end up with inconsistent flags for different parts
of your build, I don’t know. But that’s what needs to be fixed.

Date Sujet#  Auteur
4 Mar 25 o Re: Python recompile1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal