From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: clang fails to compile emacs in Microsoft Windows Date: Sat, 13 May 2023 09:00:33 +0300 Message-ID: <83a5y8bwji.fsf@gnu.org> References: <83v8gxbnd8.fsf@gnu.org> <87mt29blgy.fsf@telefonica.net> <83r0rlbkf4.fsf@gnu.org> <87fs81b9fo.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26582"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 13 08:01:02 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxiJR-0006l6-Q3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 May 2023 08:01:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxiJ4-0008Ee-0G; Sat, 13 May 2023 02:00:38 -0400 Original-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 ) id 1pxiJ0-0008CD-Ga for help-gnu-emacs@gnu.org; Sat, 13 May 2023 02:00:35 -0400 Original-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 ) id 1pxiJ0-0004HI-4T for help-gnu-emacs@gnu.org; Sat, 13 May 2023 02:00:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=lWmFGbXZjIR9nHJ7hvTbx2kcB9pwSwV3bEQzYW7EBv8=; b=UVyR4l4y2FWK0dOMhS9A coyhgA2ynKGHw7W1Qdpge6NlH2tWpFZeZnQyQO8wzXpLntNzGo9GCsIGknfBw5mE9jb5Ny6bBXTaO ok0iRSliQRNtt/RRJlvD428AQlgDFzl1bKhRvV/e6lrtz2Y9VFwXlNrFR3TD4FyP3nHXD2C3iWabY eedirKzkqXdzkz6Zxf65YoEf5vUEDKJvhRnmtwwYGL5hIH0KNtgj5OdfrRryZKM8IoGDqnUtSzcfD IkPOgmhaNcaEmOdTMhXAO7VRCKBoUnlaeaUkhMWM6ztdQACZj84fMaQ0At8Fiy67Ve9BHxJrWOtnZ tes5LRS3Axhl/w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxiIz-0003IU-Ds for help-gnu-emacs@gnu.org; Sat, 13 May 2023 02:00:33 -0400 In-Reply-To: (message from Biswapriyo Nath on Sat, 13 May 2023 01:40:11 +0530) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143580 Archived-At: > From: Biswapriyo Nath > Date: Sat, 13 May 2023 01:40:11 +0530 > Cc: Óscar Fuentes , eliz@gnu.org > > Adding the wait() declaration in nt/inc/sys/wait.h fixes the issue. That's not the right solution for this issue, though, IMO. Adding that declaration is only TRT if you also add some implementation of 'wait' to one of the w32*.c files. The problem here is that the configure script rejects the sys/wait.h header we provide for MS-Windows because it deduces it isn't Posix-compliant enough. That is the problem to fix: convince the configure script that our sys/wait.h is fine (which it is, since it does everything the MS-Windows build needs from it). The right means for doing so is the nt/mingw-cfg.site file, where you need to add ac_cv_header_sys_wait_h=yes This will cause this test to succeed unconditionally, which is what we need.