all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: clang fails to compile emacs in Microsoft Windows
Date: Fri, 12 May 2023 18:06:27 +0300	[thread overview]
Message-ID: <83v8gxbnd8.fsf@gnu.org> (raw)
In-Reply-To: <CALK-3mKqRtZ7budD0+YbAJtaW3DeEWtwmHAtncB4vsSUq_yj1g@mail.gmail.com> (message from Biswapriyo Nath on Fri, 12 May 2023 19:41:17 +0530)

> From: Biswapriyo Nath <nathbappai@gmail.com>
> 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.



  reply	other threads:[~2023-05-12 15:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 14:11 clang fails to compile emacs in Microsoft Windows Biswapriyo Nath
2023-05-12 15:06 ` Eli Zaretskii [this message]
2023-05-12 15:47   ` Óscar Fuentes
2023-05-12 15:59     ` Biswapriyo Nath
2023-05-12 16:03       ` Biswapriyo Nath
2023-05-12 16:13       ` Eli Zaretskii
2023-05-12 16:10     ` Eli Zaretskii
2023-05-12 20:07       ` Óscar Fuentes
2023-05-12 20:10         ` Biswapriyo Nath
2023-05-13  6:00           ` Eli Zaretskii
2023-05-13  7:21             ` Biswapriyo Nath
2023-05-13  5:53         ` Eli Zaretskii
2023-05-13 12:39           ` Óscar Fuentes
2023-05-13 12:46             ` 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=83v8gxbnd8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.