Re: Python recompile

Liste des GroupesRevenir à cl python 
Sujet : Re: Python recompile
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.c comp.lang.python
Date : 04. Mar 2025, 19:16:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vq7g1p$1vmg5$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
On 04/03/2025 17:42, Kaz Kylheku wrote:
On 2025-03-04, Muttley@DastardlyHQ.org <Muttley@DastardlyHQ.org> wrote:
On Tue, 4 Mar 2025 09:57:16 +0000
Richard Heathfield <rjh@cpax.org.uk> wibbled:
On 04/03/2025 09:23, Muttley@DastardlyHQ.org wrote:
because plenty of compilation issues are caused by code issues.
>
Undoubtedly true, and equally undoubtedly irrelevant in this
case. Were it relevant, the OP would by now have shown us the
problem code.
>
So what you're saying is you can't troubleshoot linking problems. Do you
get someone else to compile your code for you?
 Python is not "your code" for any value of "your" referring to any
regular here in comp.lang.c.
 
A compiler is a compiler, a linker is a linker. Troubleshooting both is part
of the development process of any competent C dev. But we know already you
don't consider that to be the case because its beyond your abilities.
 Troubleshooting an open source package build problem is often a complex
problem that in most cases requires direct access to the environment
where the problem is happening.
 
The CPython source bundle doesn't come with any makefiles. The first step appears to be to run a 35,000-line 'configure' script. Part of its job appears to be generate the necessary makefiles. I see options like "-fPIC" inside it set according to platform type and other settings.
Maybe the OP was trying to build it independently. I tried it once on Windows; I was told by the people at comp.lang.python that it was a piece of cake; it wasn't. (I notice this is cross-posted there; I will keep that in.)
On Windows, CPython must be built via MSVC, not gcc.
That involving installing VS20xx, a 6GB download, which itself first needed a 4GB .NET update. Then I needed GIT. Then SVN. Then MSBUILD tools. Then something else...
Whatever I fixed, it always found something else to fail on. After several hours and a lot of downloads, I gave up.

It's actually a case of porting. When Python does not build in some OS
distro with certain compilers, that's a kind of porting challenge.
Yet CPython exists on Windows; it must work for somebody!
I'd been interested in fiddling with the source to make it faster, but the first thing I discovered was that on Linux, CPython makes use of gcc's extensions to use computed-gotos for its dispatch loop.
MSVC doesn't have that feature, so on Windows, CPython is a little bit slower than on Linux as it has to use a regular 'switch', because the developers couldn't manage to build it with gcc on Windows.

Date Sujet#  Auteur
2 Mar 25 * Re: Python recompile60Lew Pitcher
2 Mar 25 +* Re: Python recompile58Muttley
2 Mar 25 i+* Re: Python recompile2Lew Pitcher
3 Mar 25 ii`- Re: Python recompile1Muttley
2 Mar 25 i`* Re: Python recompile55James Kuyper
3 Mar 25 i `* Re: Python recompile54Muttley
3 Mar 25 i  +* Re: Python recompile5Richard Heathfield
3 Mar 25 i  i`* Re: Python recompile4Muttley
3 Mar 25 i  i +* Re: Python recompile2bart
3 Mar 25 i  i i`- Re: Python recompile1Muttley
3 Mar 25 i  i `- Re: Python recompile1Richard Heathfield
3 Mar 25 i  `* Re: Python recompile48James Kuyper
3 Mar 25 i   +- Re: Python recompile1Muttley
3 Mar 25 i   `* Re: Python recompile46geodandw
3 Mar 25 i    +- Re: Python recompile1Muttley
3 Mar 25 i    +* Re: Python recompile26James Kuyper
3 Mar 25 i    i+* Re: Python recompile23Muttley
3 Mar 25 i    ii+* Re: Python recompile3David Brown
4 Mar 25 i    iii`* Re: Python recompile2Muttley
4 Mar 25 i    iii `- Re: Python recompile1Kaz Kylheku
3 Mar 25 i    ii+* Re: Python recompile18Richard Heathfield
4 Mar 25 i    iii`* Re: Python recompile17Muttley
4 Mar 25 i    iii `* Re: Python recompile16Richard Heathfield
4 Mar 25 i    iii  +* Re: Python recompile14Muttley
4 Mar 25 i    iii  i`* Re: Python recompile13Richard Heathfield
4 Mar 25 i    iii  i `* Re: Python recompile12Muttley
4 Mar 25 i    iii  i  +* Re: Python recompile2Richard Heathfield
4 Mar 25 i    iii  i  i`- Re: Python recompile1Muttley
4 Mar 25 i    iii  i  `* Re: Python recompile9Kaz Kylheku
4 Mar 25 i    iii  i   `* Re: Python recompile8bart
5 Mar 25 i    iii  i    +* Re: Python recompile6Muttley
6 Mar 25 i    iii  i    i`* Re: Python recompile5Waldek Hebisch
7 Mar 25 i    iii  i    i +- Re: Python recompile1Muttley
7 Mar 25 i    iii  i    i `* Re: Python recompile3Lawrence D'Oliveiro
7 Mar 25 i    iii  i    i  +- Re: Python recompile1bart
10 Mar 25 i    iii  i    i  `- Re: Python recompile1Waldek Hebisch
6 Mar 25 i    iii  i    `- Re: Python recompile1Lawrence D'Oliveiro
5 Mar 25 i    iii  `- Re: Python recompile1James Kuyper
4 Mar 25 i    ii`- Re: Python recompile1Kenny McCormack
3 Mar 25 i    i`* Re: Python recompile2geodandw
3 Mar 25 i    i `- Re: Python recompile1James Kuyper
3 Mar 25 i    +* Re: Python recompile10Richard Heathfield
3 Mar 25 i    i`* Re: Python recompile9geodandw
3 Mar 25 i    i +* Re: Python recompile4Richard Heathfield
4 Mar 25 i    i i`* Re: Python recompile3geodandw
4 Mar 25 i    i i +- Re: Python recompile1Kaz Kylheku
4 Mar 25 i    i i `- Re: Python recompile1Richard Heathfield
4 Mar 25 i    i `* Re: Python recompile4David Brown
4 Mar 25 i    i  +* Re: Python recompile2Richard Heathfield
4 Mar 25 i    i  i`- Re: Python recompile1Muffley
4 Mar 25 i    i  `- Re: Python recompile1Michael S
3 Mar 25 i    +* Re: Python recompile3David Brown
4 Mar 25 i    i`* Re: Python recompile2Muttley
4 Mar 25 i    i `- Re: Python recompile1Kaz Kylheku
6 Mar 25 i    `* Re: Python recompile5Stuart Redmann
6 Mar 25 i     +* Re: Python recompile2Richard Heathfield
6 Mar 25 i     i`- Re: Python recompile1Muttley
6 Mar 25 i     +- Re: Python recompile1Chris M. Thomasson
7 Mar 25 i     `- Re: Python recompile1James Kuyper
2 Mar 25 `- Re: Python recompile1Left Right

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal