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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Cyril Arnould <2006parcy@HIDDEN>; merged with #70889, #71036; dated Sun, 12 May 2024 09:35:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 70889 70890 71036. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 70889 70890. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70890 <at> debbugs.gnu.org:


Received: (at 70890) by debbugs.gnu.org; 12 May 2024 10:22:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 12 06:22:12 2024
Received: from localhost ([127.0.0.1]:53681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s66LM-0000nl-0J
	for submit <at> debbugs.gnu.org; Sun, 12 May 2024 06:22:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44000)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1s66LJ-0000na-Ux; Sun, 12 May 2024 06:22:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s66LD-0007zh-KX; Sun, 12 May 2024 06:22:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+BwUprOT5vw+N45t3E9EaNyAVklCN4+3neIbdwrcV0k=; b=Ukw9gU0hNzHZ
 wK4EsMPE2Dkgtx/xTkSaYcGPXTSj+0IkM+GX0FmSostL60p5Sv18CAFVsxjXa3rVDFVy/qocuf4Z2
 KLUpH1KZfx+pjeR3CveaCXvfustvfM5AhSlWs6PSx0VFh7bb9W2ByOqEp+TUOJVbgdjCYpMZAiJos
 9IYxR4aBRnmzcZJ8fcccDEnmw854/IROMWhqZfEOvR4fTJdcZTPZO4cFRuO0WPzRmlE+7dlCydurp
 RBZql0Twez0p99PLRqmrbUEzlKgdJBZ2PARWTsW2+AFIgI16LsD0cBFWDaeqlpDh2pgRy32rgDTMN
 taB3PQjS3H599O40Jq6GtQ==;
Date: Sun, 12 May 2024 13:22:01 +0300
Message-Id: <86v83jz5x2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Cyril Arnould <cyril.arnould@HIDDEN>
In-Reply-To: <b4531dc1-aac3-464e-b3e3-fb76e6e5d042@HIDDEN> (message from
 Cyril Arnould on Sun, 12 May 2024 10:24:11 +0200)
Subject: Re: bug#70890: 29.3; GCC14.1 MinGW compilation error
References: <41f56bc9-8f54-412c-a6fc-ae7a343f92dd@HIDDEN>
 <b4531dc1-aac3-464e-b3e3-fb76e6e5d042@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70890
Cc: 70890 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

merge 70890 70889
thanks

> Date: Sun, 12 May 2024 10:24:11 +0200
> From: Cyril Arnould <2006parcy@HIDDEN>
> 
> Oops, I've used the wrong email account. Is it possible to redirect
> this bug to cyril.arnould@HIDDEN?

This is an exact duplicate of bug#70889 you submitted; merging them.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70890; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 May 2024 09:34:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 12 05:34:23 2024
Received: from localhost ([127.0.0.1]:53467 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s65b4-0008R1-F8
	for submit <at> debbugs.gnu.org; Sun, 12 May 2024 05:34:22 -0400
Received: from lists.gnu.org ([209.51.188.17]:55026)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <2006parcy@HIDDEN>) id 1s64VJ-0004xo-O0
 for submit <at> debbugs.gnu.org; Sun, 12 May 2024 04:24:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <2006parcy@HIDDEN>)
 id 1s64VH-0006Mp-J6
 for bug-gnu-emacs@HIDDEN; Sun, 12 May 2024 04:24:20 -0400
Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <2006parcy@HIDDEN>)
 id 1s64VD-0002eV-Em
 for bug-gnu-emacs@HIDDEN; Sun, 12 May 2024 04:24:17 -0400
Received: by mail-wm1-x331.google.com with SMTP id
 5b1f17b1804b1-4201033aeb4so1089935e9.3
 for <bug-gnu-emacs@HIDDEN>; Sun, 12 May 2024 01:24:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1715502254; x=1716107054; darn=gnu.org;
 h=content-transfer-encoding:in-reply-to:references:to:from:subject
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=i4RnnYdcNRDfSLfaXoRJU4XwthiWWSGqQoT+w9YXZAA=;
 b=O8xxEtlW9nAcok775tC0lbJF/Wc+bZJFa6vMihUZmbQAvjHFUeh9GHe7D7Ix/neFE5
 zOFOV/FuJbzsA10aOWs4umXdGqQQpX3u2oZ8cW/xuR09DxEwXw/MFbSlRI/boXeJ4v/s
 +q6h0HAx64qU2QL2kzyomH9u+FUjtOLWhkORM+vP5ow0D8+Nm5PPEoKDWDTAaQyuxsdm
 eTeTs0AM+gggZBvpmDyUxKfRlg9ln6a5KUmQzxdapLlEH7j17OE6JsfjBv4nEvwLkIS5
 nfKBon30SYYcIpOZ9J/OD/7ag+Izf2oEH39dDJCC17CHTPyyEfVLov8qETgvRlZ8GxYq
 obSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1715502254; x=1716107054;
 h=content-transfer-encoding:in-reply-to:references:to:from:subject
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=i4RnnYdcNRDfSLfaXoRJU4XwthiWWSGqQoT+w9YXZAA=;
 b=Ai0hwXahOojZ2zZySzwAXCmqQ8NA16/8YvuYNV1ATpaiKKnuEv6mvWg5Di6G1k7uCi
 4nCJmk0pcxgYmiTIEBssuKQ+T65qk3YLj9E20B+uJfsWqh+eCpVS1TDl6iN/AVFa4Im1
 kcPdSKLJxDDU/ctzBury9hFmnwxCa8EF8Qoz94zbcLfbb+bcBcyGmxfNJw7gD3QeK05B
 y9k2O3GbqmwbWzqAv4GpF872hXw5Y5yeaOZ6iNO6+yks5po39h5mDMQ+ylNnssf+e0wN
 SAzwxJFMUz1SVfRVbjgbU4Fyoikn+BbMSCRljJDVRCQAmjx5vc+MtmARFcRcMiuS2QkB
 8yHg==
X-Gm-Message-State: AOJu0YxS5joM/oB35ZQz243KONS2KDMufGAx/BQ5EA11WK6stIHmKElM
 2lZKpjMt0kjPzdhnjy3A6PTG/2VY5WBkKoTOw9ZBXA5u+se9MgDrGQm0lw==
X-Google-Smtp-Source: AGHT+IHCQq2NbMFRCsxPipWTD7PfyNgTu0nTNj9EQ/ygpujUWQrBRI0IlWsnBAsYAWFpEgAbPzcocg==
X-Received: by 2002:a5d:4941:0:b0:34d:b45:9b31 with SMTP id
 ffacd0b85a97d-3504aa630efmr5421457f8f.6.1715502253667; 
 Sun, 12 May 2024 01:24:13 -0700 (PDT)
Received: from [192.168.1.206] ([185.227.58.172])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3502b79bc3bsm8403414f8f.13.2024.05.12.01.24.12
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 12 May 2024 01:24:13 -0700 (PDT)
Message-ID: <b4531dc1-aac3-464e-b3e3-fb76e6e5d042@HIDDEN>
Date: Sun, 12 May 2024 10:24:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: 29.3; GCC14.1 MinGW compilation error
From: Cyril Arnould <2006parcy@HIDDEN>
To: bug-gnu-emacs@HIDDEN
References: <41f56bc9-8f54-412c-a6fc-ae7a343f92dd@HIDDEN>
In-Reply-To: <41f56bc9-8f54-412c-a6fc-ae7a343f92dd@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::331;
 envelope-from=2006parcy@HIDDEN; helo=mail-wm1-x331.google.com
X-Spam_score_int: -3
X-Spam_score: -0.4
X-Spam_bar: /
X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 FREEMAIL_REPLY=1, FROM_STARTS_WITH_NUMS=0.738, RCVD_IN_DNSWL_NONE=-0.0001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 12 May 2024 05:34:21 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

Oops, I've used the wrong email account. Is it possible to redirect
this bug to cyril.arnould@HIDDEN?

Am 12.05.2024 um 09:29 schrieb Cyril Arnould:
> 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.






Acknowledgement sent to Cyril Arnould <2006parcy@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70890; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 18 May 2024 12:15:02 UTC

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