Re: Native compilation warnings, GNU Emacs 29.4, Windows 11

Eli Zaretskii <[email protected]> Tue, 04 Feb 2025 14:44:55 +0200
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
> Date: Tue, 4 Feb 2025 01:26:00 +0100
> From: Bo Johansson <[email protected]>
> 
>  I have updated my MSYS. I am using Windows 11.
> 
> $ uname -a gives: MSYS_NT-10.0-26100 BOS3 3.5.7-2644508f.x86_64 2025-01-30 09:08 UTC x86_64
> Msys
> 
> The emacs was also updated. The new version is: GNU Emacs 29.4 (build 1, x86_64-w64-mingw32) of
> 2025-02-01
> 
> I have now got a lot of "Warning (comp): collect2.exe: error: ld returned 1 exit status, ... .

Was GCC and/or Binutils and/or libgccjit also updated?  If so, do you
know which of those were updated and to which versions?

What do the following commands print?

  gcc --version
  gcc --print-prog-name cc1
  gcc --print-prog-name collect2
  gcc --print-prog-name as
  gcc --print-prog-name ld
  gcc --print-search-dirs
  ld --version
  as --version

> By adding (setq native-comp-async-report-warnings-errors 'silent) to my ~/.emacs.d/init.el file, I have
> stopped the buffer with the warnings to pop-up.
> 
> Attached to this mail is the content of the *Async-native-compile-log* buffer after the start of my emacs.
> 
> Do I have a problem in my system?

Yes, it looks like you have a broken installation of libgccjit, so
Emacs is unable to perform JIT native compilation.

> Can I do something to correct it?

Most probably, but not yet clear what.  My first suspicion is that
your libgccjit DLL and your GCC are from different GCC versions.