all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Cyril Arnould <cyril.arnould@outlook.com>
Cc: 70889@debbugs.gnu.org
Subject: bug#70889: 29.3; GCC14.1 MinGW compilation error
Date: Sun, 12 May 2024 17:49:40 +0300	[thread overview]
Message-ID: <86o79bytiz.fsf@gnu.org> (raw)
In-Reply-To: <DU0PR10MB610721074CE7B734BD92F2D6F0E12@DU0PR10MB6107.EURPRD10.PROD.OUTLOOK.COM> (message from Cyril Arnould on Sun, 12 May 2024 14:52:12 +0200)

> Date: Sun, 12 May 2024 14:52:12 +0200
> Cc: 70889@debbugs.gnu.org
> From: Cyril Arnould <cyril.arnould@outlook.com>
> 
>  > 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 */

I don't understand something: -Wimplicit-function-declaration is a
_warning_ option, so how come it causes an error?  Is -Werror also in
effect or something?  If so, we just need to add -Wno-error to the
compiler options.  Warnings should not fail test programs.

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

If we need to add to our w32 headers every single function that can
fail the compilation of some test program, we will never recover from
this slippery slope.  So I'd like first to understand why a warning
causes a compilation error.

> 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.

Of course.  There'll be no end to this madness.





  reply	other threads:[~2024-05-12 14:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86o79bytiz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70889@debbugs.gnu.org \
    --cc=cyril.arnould@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.