Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197291

Re: Python recompile

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Left Right <olegsivokon@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python recompile
Date Sun, 2 Mar 2025 23:26:07 +0100
Lines 39
Message-ID <mailman.122.1740954379.2912.python-list@python.org> (permalink)
References <vq1qas$j22$1@gallifrey.nk.ca> <vq1uvb$qbuq$1@dont-email.me> <CAJQBtgm_TpmJ8=U1P4krp0rTye3OLq8zOd9kxiXs8fquFdF4+A@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de P3XHjOxnYPn47WpYO2M2Iwo6WzlQwklqDt0H7JafGRFQ==
Cancel-Lock sha1:rW7HPCMiKbe03EX83MrWhWtQvVE= sha256:LCcsXeOJlFPc+JND8U4OfdoGSXWRTyLuCmSJ1cdBwR4=
Return-Path <olegsivokon@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
Authentication-Results mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=hZn+Pk6N; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'error:': 0.05; 'happened': 0.07; 'interacting': 0.07; 'mar': 0.07; 'sun,': 0.07; 'url:mailman': 0.09; 'cc:addr:python-list': 0.09; 'compiler': 0.09; 'describe': 0.09; 'subject:Python': 0.12; 'cc:no real name:2**0': 0.14; 'problem.': 0.15; 'url:listinfo': 0.15; '"in': 0.16; '2025': 0.16; '[snip]': 0.16; 'default.': 0.16; 'received :mail-qt1-x82a.google.com': 0.16; 'symbol': 0.16; 'wrote:': 0.16; 'python': 0.16; 'cc:addr:python.org': 0.20; 'option': 0.20; 'url- ip:188.166.95.178/32': 0.20; 'url-ip:188.166.95/24': 0.20; 'url- ip:188.166/16': 0.24; 'cannot': 0.25; 'cc:2**0': 0.25; "isn't": 0.27; 'else': 0.27; 'think': 0.29; 'error': 0.29; 'code,': 0.31; 'module': 0.31; 'message-id:@mail.gmail.com': 0.31; 'question': 0.32; 'python-list': 0.32; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'requires': 0.34; 'from:addr:gmail.com': 0.34; 'fix': 0.36; 'really': 0.36; "skip:' 10": 0.37; 'using': 0.37; 'something': 0.40; 'your': 0.64; 'exactly': 0.68; 'compensate': 0.84; 'caused': 0.86; 'doctor': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740954378; x=1741559178; darn=python.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zoG+TC9jSMcERfHRqHQ5Gtp5mF207yZgDS7GPv2nzE4=; b=hZn+Pk6N1qAwHd93Lud6HW7IbfiCgFZ1dtGtSR/Lmtkg9UTUyMe9RvKyBxxW/ZNM/4 0wFpEHatzaSzCCK1dQ803jWgzy0an0Uj4uxX1DDrK+PxYEl9y8y0zrNXB8PMxoCGvuns Tj1firl2OGNyyXdABjf8Zaj0i7i10ZkWg4EDrpLMbwsnwcRFZeeMo8brIgSUQyzdlStx DRztoEz+QDORZhjnUqZbGPpuiyD5YI4EvoBogJu//gMUuxWZLyM4c9LeJFN/0YAaRBJN MKQGgnOYE3Qy1UR/u2qseTTz/q+XdtwmW+6XYmZx/A3RG6TPkodWmRmIS0iGm2N3E28O BpQA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740954378; x=1741559178; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zoG+TC9jSMcERfHRqHQ5Gtp5mF207yZgDS7GPv2nzE4=; b=Xo7pp+gSOtOE5Z7dqAFZs/lj3RJgmGQ/LA46lVhKkOVQ2qD+cZmqWEKjznG/PueDzs wfYUirIPreidertRiNEh0IgGVMaWbrunXgm5d3WQ9HNgl+1ARjwBdkCdyoKDoYvossak im0cBimpylRMlKGTopn6/OLyDAZTvFKS/WpNwF9l1sqp5GIAwOj76bC8IchPyF5fU9t0 gkZCEUyEjHHAEsI8fCr54EWaADD+hpLm8osDbPeBQwh4/VLaBtUNPzDl4Z6LbHyKh9pj 4CuO/MiFwxCv4gemjMcqDFxhSDACxf0PwuADMOt1Wozgz090q39R2VHCWAMDnSyLk7Zq s1OA==
X-Gm-Message-State AOJu0Yz2m3a+kIqTIydd949+0URmka4Sh2Pcpsw4xhvDZ8CLnCHDsNNq tNduN21F/ibIz6qYsTnHLtuK+Y46Ut9ad1XNZZSzAZxTw0bTZA1athFIdqsU1JiwywWIijT6Lsy Ui0nueERIl2FEW1O3gsCQHqNy+QBT8g==
X-Gm-Gg ASbGnct0y5yHu7kSuWD9FYFmtF+vN1jES/LsKxb5F8tHV8w4jbL6Z3nz3AgaFMaOC4e s3GnGoTTjmoV/7yE5g7ZzkaCjhTD7McFDPfP2DdUZUsNFDlakz6hU3fadcaR0/KoNiHEK5wBFJk HzV1sxKbTmyVDf4X+kFdMGXzsGyC5MpQ30w1bUn3bKHVSXaH9oEyKB
X-Google-Smtp-Source AGHT+IGpYldyvQ6d+3C2+s/lLDCQXgu+JLjpnmI/2BmeObDuN02BV4CHzapOHgMzetg2QkSahjUKCEOkAy0Z+FBEjb8=
X-Received by 2002:a05:622a:1391:b0:471:f508:98fd with SMTP id d75a77b69052e-474bb4e72f3mr179591471cf.5.1740954378118; Sun, 02 Mar 2025 14:26:18 -0800 (PST)
In-Reply-To <vq1uvb$qbuq$1@dont-email.me>
X-Gm-Features AQ5f1Jq5AfVnbm1eUZp6R1zXXzc2mnuSxA7uyhNDiEggpB4IK1FDVQJyWVDR8Vg
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.39
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <https://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAJQBtgm_TpmJ8=U1P4krp0rTye3OLq8zOd9kxiXs8fquFdF4+A@mail.gmail.com>
X-Mailman-Original-References <vq1qas$j22$1@gallifrey.nk.ca> <vq1uvb$qbuq$1@dont-email.me>
Xref csiph.com comp.lang.python:197291

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-02 14:35 +0000
  Re: Python recompile Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-03-02 15:54 +0000
    Re: Python recompile Muttley@dastardlyhq.com - 2025-03-02 16:58 +0000
      Re: Python recompile Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-03-02 17:08 +0000
        Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 08:14 +0000
      Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 12:30 -0500
        Re: Python recompile scott@slp53.sl.home (Scott Lurndal) - 2025-03-02 18:35 +0000
        Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 08:13 +0000
          Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 08:31 +0000
            Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 10:44 +0000
              Re: Python recompile bart <bc@freeuk.com> - 2025-03-03 12:20 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 15:03 +0000
              Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 12:47 +0000
          Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 10:22 -0500
            Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:19 +0000
            Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 11:24 -0500
              Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:26 +0000
              Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 11:39 -0500
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:56 +0000
                Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-03 18:22 +0100
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:31 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 17:28 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:25 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:32 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 08:56 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 09:23 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 09:57 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 10:03 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 10:25 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 11:19 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 17:42 +0000
                Re: Python recompile bart <bc@freeuk.com> - 2025-03-04 18:16 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-05 09:10 +0000
                Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-06 19:21 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-07 09:53 +0000
                Re: Python recompile Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-07 21:26 +0000
                Re: Python recompile bart <bc@freeuk.com> - 2025-03-07 21:33 +0000
                Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-10 14:39 +0000
                Re: Python recompile Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-06 03:16 +0000
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-04 19:12 -0500
                Re: Python recompile gazelle@shell.xmission.com (Kenny McCormack) - 2025-03-03 23:42 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 13:29 -0500
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 16:52 -0500
              Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:19 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 13:33 -0500
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 19:15 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 18:51 -0500
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 00:49 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 02:29 +0000
                Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-04 09:12 +0100
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 11:33 +0000
                Re: Python recompile Muffley@DinkyHQ.org - 2025-03-04 12:00 +0000
                Re: Python recompile Michael S <already5chosen@yahoo.com> - 2025-03-04 15:31 +0200
              Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-03 18:28 +0100
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:33 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 18:06 +0000
              Re: Python recompile Stuart Redmann <DerTopper@web.de> - 2025-03-06 07:35 +0100
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-06 07:32 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-06 08:39 +0000
                Re: Python recompile "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-03-06 12:40 -0800
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-07 13:17 -0500
          Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 16:12 +0000
    Re: Python recompile Left Right <olegsivokon@gmail.com> - 2025-03-02 23:26 +0100
  Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-02 17:54 +0000
    Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-02 19:15 +0000
    Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 13:38 -0500
      Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 00:42 +0000
        Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 00:46 +0000
        Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 22:24 -0500
      Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-03 17:20 +0000
        Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:28 +0000
        Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 12:57 -0500
        Re: Python recompile scott@slp53.sl.home (Scott Lurndal) - 2025-03-03 18:02 +0000
        Re: Python recompile bart <bc@freeuk.com> - 2025-03-03 19:37 +0000
  Re: Python recompile (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-04 05:46 +0000

csiph-web