Re: Python recompile

Liste des GroupesRevenir à c programming 
Sujet : Re: Python recompile
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.lang.c comp.lang.c++ comp.lang.python
Date : 02. Mar 2025, 16:54:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vq1uvb$qbuq$1@dont-email.me>
References : 1
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)

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"

Date Sujet#  Auteur
8 Jun 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal