Sujet : Re: Python recompile
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 07. Mar 2025, 21:15:42
Autres entêtes
Organisation : None to speak of
Message-ID : <871pv861ht.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Gnus/5.13 (Gnus v5.13)
bart <
bc@freeuk.com> writes:
[...]
I just (well, nearly 2 hours ago!) downloaded the sources for gcc. It
was 0.75GB in all, 142,000 files, 5,500 folders. There are 84,000 .c
files, and 4,600 .h files.
>
It took something over 90 MINUTES to unzip, using a SSD.
Whatever you downloaded, it wasn't (just) the sources for gcc.
The latest release of gcc (14.2.0) has 58503 .c files and 4131
.h files, and the gcc project does not make it available as a
.zip file. When you say "the sources for gcc", I presume you're
referring to some software package that includes gcc. Why didn't
you mention that?
On my system, unpacking gcc-14.2.0.tar.gz and gcc-14.2.0.tar.xz took
15 and 20 seconds, respectively. I created a zip file; unzipping
it took 23 seconds.
Whatever is wrong with your system, I suggest it's not topical here.
The fact that somebody is providing gcc sources in a zip file
probably implies that it's intended to be built on Windows. It's
likely that the providers of the zip file would have provided build
instructions. Since I have no idea what package you downloaded,
I can't provide more information. (Not that you asked.)
I haven't started to look at what's involved in building it for
Windows Actually I haven't got a clue how to go about it. Neither do I
know how long it might take.
Is this what you mean by 'simpler'?
The gcc maintainers are not particularly interested in supporting
Windows (and are under no obligation to do so), so it's not
surprising that building it from source on Windows is awkward.
Complaining about it here is not useful.
From <
https://gcc.gnu.org/install/specific.html> :
GCC contains support for x86-64 using the mingw-w64 runtime library,
available from
https://www.mingw-w64.org/downloads/. This library
should be used with the target triple x86_64-pc-mingw32.
and :
Ports of GCC are included with the Cygwin environment.
GCC will build under Cygwin without modification; it does not build
with Microsoft’s C++ compiler and there are no plans to make it do
so.
I've never tried to build gcc on Windows without using some Unix-like
emulation layer, so I can't help you with that (not that you asked).
I don't know whether it's possible.
[...]
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */