Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: James Kuyper Newsgroups: comp.lang.c,comp.lang.c++,comp.lang.python Subject: Re: Python recompile Date: Sun, 2 Mar 2025 13:38:50 -0500 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 02 Mar 2025 22:38:02 +0100 (CET) Injection-Info: dont-email.me; posting-host="f3b06dd6224c11cddf0a4851005f26ce"; logging-data="1018356"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bR56J1V5vBpl/P+MKUo1nrcc3QdbK2yw=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jlI7cj5I1zAnLT8JBRF2N+1Lc1Y= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.c:390669 comp.lang.c++:121788 comp.lang.python:197290 On 3/2/25 12:54, Waldek Hebisch wrote: > In comp.lang.c 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 >> > > This is real world question and as such is considered off-topic > in comp.lang.c. However, you could try '-no-pie' to the compiler. Real world questions about the C programming language are entirely on-topic here. Note, however, that many questions posted here are not about C itself, but about the quirks of particular implementations of C. You can get better answers to such questions by asking in forums specific to the relevant implementation, and helpful people will remind your of that. It's a misunderstanding of those redirections to conclude that c.l.c is not for real world questions. However Python is NOT an implementation of C, not even by the loosest reasonable interpretation, so why should it be discussed here?.