[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Native compilation on Windows, was Re: Bootstrap Compilation Speed
From: |
H. Dieter Wilhelm |
Subject: |
Re: Native compilation on Windows, was Re: Bootstrap Compilation Speed |
Date: |
Tue, 01 Feb 2022 13:45:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Corwin Brust <corwin@bru.st> writes:
> On Mon, Jan 31, 2022 at 9:58 AM H. Dieter Wilhelm
> <dieter@duenenhof-wilhelm.de> wrote:
>>
>> Currently we have 19 DLLs in the /bin folder (28.0.91), whereas 27.2 has
>> 77 DLLs! Corwin could you please check your build configuration, maybe
>> together with Phil? (I'm sorry, I'm still of no help here.)
>
> Excellent observation.
>
> I hope Phil will chime-in with suggestions of what I may have
> missed/broken. I'll investigate also, obviously, and others'
> kibitzing most welcome too.
I think I've got, at least, a workaround!
I realised that ntldd.exe doesn't show any msys/mingw dependencies at
all, only Windows stuff! -> So I removed all Windows references from
PATH. (Don't ask me why ntldd searches Windows paths first.)
Then, it seem's, that the msys/mingw people changed the tree layout of
their files! When I'm changing "msys64" with "mingw64" in
build-dep-zips.py:
def ntldd_munge(out):
deps = out.splitlines()
rtn = []
for dep in deps:
## Output looks something like this
## KERNEL32.dll => C:\Windows\SYSTEM32\KERNEL32.dll
(0x0000000002a30000)
## libwinpthread-1.dll => C:\msys64\mingw64\bin\libwinpthread-1.dll
(0x0000000000090000)
## if it's the former, we want it, if its the later we don't
splt = dep.split()
## if len(splt) > 2 and "msys64" in splt[2]:
if len(splt) > 2 and "mingw64" in splt[2]:
print("Adding dep", splt[0])
rtn.append(splt[0].split(".")[0])
return rtn
It copies much more DLLs to the deps folder. :-)
(Oh dear, as if the whole building process wouldn't be complicated
enough..)
> Meanwhile, I suggest we should solve this problem before pushing
> 28.0.1 to the apha FTP site. I don't want people to have different
> expectations (needing to install MSYS) vs 27.1 and the pre-releases
> Phillip created for that.
>
> (Phil, is "Phil" fine? Preference for "Philip"? I obsess on the oddest
> things.)
I hope so, at least he signed his emails himself repeatedly with
"Phil"... ;-)
--
Dieter
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany