unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70889: 29.3; GCC14.1 MinGW compilation error
@ 2024-05-12  7:29 Cyril Arnould
  2024-05-12  8:24 ` bug#70890: " Cyril Arnould
  2024-05-12 10:31 ` bug#70889: " Eli Zaretskii
  0 siblings, 2 replies; 17+ messages in thread
From: Cyril Arnould @ 2024-05-12  7:29 UTC (permalink / raw)
  To: 70889

I wanted to check how the MinGW related issues #63365 and #63752 behave
under GCC 14.1, however I did not get that far. Running the following:


git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
./autogen.sh
./configure
make


I get the error:


sysdep.c: In function 'get_child_status':
sysdep.c:479:13: error: implicit declaration of function 'waitpid' 
[-Wimplicit-function-declaration]
   479 |       pid = waitpid (child, status, options);
       |             ^~~~~~~
sysdep.c:479:13: warning: nested extern declaration of 'waitpid' 
[-Wnested-externs]
sysdep.c: In function 'child_status_changed':
sysdep.c:525:43: error: 'WNOHANG' undeclared (first use in this function)
   525 |   return get_child_status (child, status, WNOHANG | options, 0);
       |                                           ^~~~~~~
sysdep.c:525:43: note: each undeclared identifier is reported only once 
for each function it appears in
sysdep.c:526:1: warning: control reaches end of non-void function 
[-Wreturn-type]
   526 | }
       | ^
make[2]: *** [Makefile:452: sysdep.o] Error 1
make[2]: Leaving directory '/e/git/emacs-debug-gcc14/emacs/src'
make[1]: *** [Makefile:554: src] Error 2
make[1]: Leaving directory '/e/git/emacs-debug-gcc14/emacs'
make[1]: Entering directory '/e/git/emacs-debug-gcc14/emacs'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:418: advice-on-failure] Error 2
make[1]: Leaving directory '/e/git/emacs-debug-gcc14/emacs'
make: *** [Makefile:374: all] Error 2


Currently I'm on commit 67b1da215c9. According to the GCC 14 porting
page "It is no longer possible to call a function that has not been
declared", so I guess that's the issue here. I've noticed that in
src/syswait.c, <sys/wait.h> is only included if HAVE_SYS_WAIT_H is
defined, which it isn't. If I do include <sys/wait.h> nonetheless in
this file, the compilation continues.

For the record, I run into an internal compiler issue in thread.c
after that, but that's not on emacs to solve I guess.





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-05-19 10:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12  7:29 bug#70889: 29.3; GCC14.1 MinGW compilation error Cyril Arnould
2024-05-12  8:24 ` bug#70890: " Cyril Arnould
2024-05-12 10:22   ` Eli Zaretskii
2024-05-12 10:31 ` bug#70889: " Eli Zaretskii
2024-05-12 12:52   ` Cyril Arnould
2024-05-12 14:49     ` Eli Zaretskii
2024-05-12 15:04       ` Cyril Arnould
2024-05-12 15:39         ` Eli Zaretskii
2024-05-12 16:21           ` Cyril Arnould
2024-05-12 17:16             ` Eli Zaretskii
2024-05-12 19:18               ` Paul Eggert
2024-05-13  4:43                 ` Eli Zaretskii
2024-05-17 17:19                   ` Cyril Arnould
2024-05-17 17:41                     ` Eli Zaretskii
2024-05-19  8:01                   ` Eli Zaretskii
2024-05-19 10:06                     ` Cyril Arnould
2024-05-19 10:24                       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).