GNU bug report logs - #70889
29.3; GCC14.1 MinGW compilation error

Previous Next

Package: emacs;

Reported by: Cyril Arnould <2006parcy <at> gmail.com>

Date: Sun, 12 May 2024 09:35:01 UTC

Severity: normal

Merged with 70890, 71036

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Cyril Arnould <cyril.arnould <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 70889 <at> debbugs.gnu.org
Subject: bug#70889: 29.3; GCC14.1 MinGW compilation error
Date: Sun, 12 May 2024 14:52:12 +0200
[Message part 1 (text/plain, inline)]
> So please try to figure out how come HAVE_SYS_WAIT_H is not defined in
> your case.  It should be.

I see, I was not aware that HAVE_SYS_WAIT_H should be defined. It's
the ./configure test that fails, the log is as follows:

configure:11647: checking for sys/wait.h that is POSIX.1 compatible
configure:11674: gcc -I ./nt/inc -c -g3 -O2 -gdwarf-2 -mtune=generic   
conftest.c >&5
conftest.c: In function 'main':
conftest.c:69:3: error: implicit declaration of function 'wait' 
[-Wimplicit-function-declaration]
   69 |   wait (&s);
      |   ^~~~
configure:11674: $? = 1
configure: failed program was:
| /* confdefs.h */

Is this an issue that should be solved by GNU autoconf? Or should the
'wait' function be added to nt/inc/sys/wait.h?

More worrying, I've checked through the config.log and found 28
occurences of the "implicit declaration of function XY" error. The
<sys/wait.h> test might not be the only one that works under GCC 13
but fails under GCC 14.

To ease reproducibility of the issue, I've switched to the emacs-29.3
tag. I've attached the config.log so you can see the other errors.
[config.log.tar.gz (application/x-gzip, attachment)]

This bug report was last modified 1 year and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.