Hej!
 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, ... .

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? Can I do something to correct it?

Best regards
Bo Johansson
*Async-native-compile-log* buffer

The following replacements are done:

{path_use-package}/ = "d:/MSYS64/mingw64/share/emacs/29.4/lisp/use-package/"
{path_lisp}/        = "d:/MSYS64/mingw64/share/emacs/29.4/lisp/"
{path_user}/        = "c:/Users/bojoh/AppData/Roaming/.emacs.d/"
Collect2            = "collect2.exe: error: ld returned"
"libgccjit-0.dll: error invoking gcc driver" =
   "d:\\MSYS64\\mingw64\\bin\\libgccjit-0.dll: error: error invoking gcc 
driver",
"Native_compiler_error" =
    "Error: Internal native compiler error failed to compile"

The content of the buffer:
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/map.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/gv.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/bytecomp.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/byte-opt.el... 
Compiling   {path_lisp}/ - - - - - - - json.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/eieio.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ json.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/eieio.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/eieio-core.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/cl-macs.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/map.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - auth-source.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/gv.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - url/url-handlers.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/eieio-core.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - net/mailcap.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url-handlers.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ net/mailcap.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - url/url-util.el... 
Compiling   {path_lisp}/ - - - - - - - url/url-cookie.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ auth-source.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - url/url-history.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url-util.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - url/url-methods.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url-history.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - url/url.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url-cookie.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url-methods.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - net/browse-url.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/package.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/byte-opt.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - info.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ url/url.el:   Native_compiler_error
Compiling   {path_use-package}/ - - - - - - - use-package-core.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/bytecomp.el:   Native_compiler_error
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ net/browse-url.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/easy-mmode.el... 
Compiling   {path_use-package}/ - - - - - - - use-package-ensure.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_use-package}/ use-package-ensure.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/cl-extra.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/cl-macs.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - help-mode.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_use-package}/ use-package-core.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/easy-mmode.el:   Native_compiler_error
Compiling   {path_user}/ - - - - - - - elpa/dash-20240510.1327/dash.el... 
Compiling   {path_user}/ - - - - - - - 
elpa/auto-package-update-20211108.2025/auto-package-update.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ help-mode.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emulation/cua-base.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_user}/ elpa/auto-package-update-20211108.2025/auto-package-update.el:   
Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - delsel.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/cl-extra.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - filenotify.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ delsel.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emulation/cua-base.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - autorevert.el... 
Compiling   {path_lisp}/ - - - - - - - wid-edit.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ autorevert.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ info.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - tree-widget.el... 
Compiling   {path_lisp}/ - - - - - - - recentf.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ filenotify.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - server.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ tree-widget.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/package.el:   Native_compiler_error
Compiling   {path_user}/ - - - - - - - 
elpa/which-key-20240620.2145/which-key.el... 
Compiling   {path_lisp}/ - - - - - - - nxml/xmltok.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ recentf.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - nxml/rng-loc.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ nxml/xmltok.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ server.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/advice.el... 
Compiling   {path_user}/ - - - - - - - 
elpa/yasnippet-20240406.1314/yasnippet.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ wid-edit.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_user}/ elpa/dash-20240510.1327/dash.el:   Native_compiler_error
Compiling   
c:/Users/bojoh/AppData/Roaming/.emacs.d/elpa/smartscan-20170211.2033/smartscan.el...
=

In smartscan-symbol-at-pt:
smartscan.el:159:2: Warning: docstring wider than 80 characters
Compiling   {path_lisp}/ - - - - - - - time.el... 
smartscan.el:232:31: Warning: defcustom for `global-smartscan-mode' fails to 
specify containing group
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
c:/Users/bojoh/AppData/Roaming/.emacs.d/elpa/smartscan-20170211.2033/smartscan.el:
 Error: Internal native compiler error failed to compile
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ time.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/rx.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ nxml/rng-loc.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/icons.el... 
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/comp-cstr.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_user}/ elpa/which-key-20240620.2145/which-key.el:   
Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/icons.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - emacs-lisp/comp.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/advice.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/rx.el:   Native_compiler_error
Compiling   {path_lisp}/ - - - - - - - dired.el... 
Compiling   {path_lisp}/ - - - - - - - dired-aux.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/comp-cstr.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_user}/ elpa/yasnippet-20240406.1314/yasnippet.el:   
Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ dired-aux.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ dired.el:   Native_compiler_error
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ emacs-lisp/comp.el:   Native_compiler_error
... Compilation finished.
Compiling   {path_lisp}/ - - - - - - - international/mule-util.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ international/mule-util.el:   Native_compiler_error
... Compilation finished.
Compiling   {path_lisp}/ - - - - - - - calendar/time-date.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ calendar/time-date.el:   Native_compiler_error
... Compilation finished.
Compiling   {path_lisp}/ - - - - - - - thingatpt.el... 
  Collect2  collect2.exe: error: ld returned   5 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ thingatpt.el:   Native_compiler_error
... Compilation finished.
Compiling   {path_lisp}/ - - - - - - - misearch.el... 
  Collect2  collect2.exe: error: ld returned   1 exit status
  libgccjit-0.dll: error invoking gcc driver
  {path_lisp}/ misearch.el:   Native_compiler_error
... Compilation finished.


Reply via email to