unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* clang fails to compile emacs in Microsoft Windows
@ 2023-05-12 14:11 Biswapriyo Nath
  2023-05-12 15:06 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Biswapriyo Nath @ 2023-05-12 14:11 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-05-13 12:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-12 14:11 clang fails to compile emacs in Microsoft Windows Biswapriyo Nath
2023-05-12 15:06 ` Eli Zaretskii
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).