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: Fri, 12 May 2023 18:06:27 +0300 Message-ID: <83v8gxbnd8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20113"; 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 Fri May 12 17:07:05 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 1pxUML-00053K-QY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 17:07:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxULo-0003Qe-WB; Fri, 12 May 2023 11:06:33 -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 1pxULn-0003QL-9Z for help-gnu-emacs@gnu.org; Fri, 12 May 2023 11:06:31 -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 1pxULn-0001I5-1S for help-gnu-emacs@gnu.org; Fri, 12 May 2023 11:06:31 -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=ru2sokGseoKjk09v5CJskcpKvNjnyvbnwJriHhEISXA=; b=meWGD+pWKGGW DuCoUUk/zzt8Zgl9VV/2mob3+2SjQBCmV+jHefCZmqOOubiFfq+ZUAJBeE6xJcT8w9tcl2Kvdipkm TSkJcd+0bVOYAstY/VJNmvsV1+zklyvnqCXS03GeJnayUgwEMmjanDfctxRPdBRKh9rQWMQQiXore C0HwdRaqHwmnX8kEyZIzxxDMSh/XoSdI771Xre8MIJkHwjAK5ywt5/VuiSfHMLpG66/gSPIpEHW0A swwxPH1eecXXP5P0OFAviwOPbtX+q/11x4V+6ENmTC7uSxnBe+B4qquIHZcGa79W4Ntb6AAcC2FJM 35eCcwH46/krPUQZ6ntapw==; 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 1pxULm-0002ho-Hh for help-gnu-emacs@gnu.org; Fri, 12 May 2023 11:06:30 -0400 In-Reply-To: (message from Biswapriyo Nath on Fri, 12 May 2023 19:41:17 +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:143571 Archived-At: > From: Biswapriyo Nath > Date: Fri, 12 May 2023 19:41:17 +0530 > > * compiler: > clang version 16.0.2 > Target: x86_64-w64-windows-gnu > Thread model: posix > > * compiler error: > > ../../src/sysdep.c:472:13: error: call to undeclared function > 'waitpid'; ISO C99 and later do not support implicit function > declarations [-Wimplicit-function-declaration] > ../../src/sysdep.c:518:43: error: use of undeclared identifier 'WNOHANG' > > * Probable reason: > > AC_HEADER_SYS_WAIT fails to check sys/wait.h file. It tests with > wait() function which is undefined in nt/inc/sys/wait.h file. Here is > the error message from config.log > > configure:11452: checking for sys/wait.h that is POSIX.1 compatible > configure:11479: x86_64-w64-mingw32-cc -I ../nt/inc -c -g3 -O2 > -gdwarf-2 -mtune=generic -D__USE_MINGW_ANSI_STDIO=1 conftest.c >&5 > conftest.c:70:3: error: call to undeclared function 'wait'; ISO C99 > and later do not support implicit function declarations > [-Wimplicit-function-declaration] > > I can provide further information if required. Thank you. Thanks, but Clang is not supported for building Emacs on MS-Windows. We only support MinGW GCC. Unless someone steps up and takes upon themselves the job of supporting the Clang build, this will remain so. Supporting the MS-Windows build is hard and thankless job as it is; adding another compiler on top of that is just too much. Sorry.