[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: clang fails to compile emacs in Microsoft Windows
From: |
Eli Zaretskii |
Subject: |
Re: clang fails to compile emacs in Microsoft Windows |
Date: |
Fri, 12 May 2023 18:06:27 +0300 |
> 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.
- clang fails to compile emacs in Microsoft Windows, Biswapriyo Nath, 2023/05/12
- Re: clang fails to compile emacs in Microsoft Windows,
Eli Zaretskii <=
- Re: clang fails to compile emacs in Microsoft Windows, Óscar Fuentes, 2023/05/12
- Re: clang fails to compile emacs in Microsoft Windows, Eli Zaretskii, 2023/05/12
- Re: clang fails to compile emacs in Microsoft Windows, Óscar Fuentes, 2023/05/12
- Re: clang fails to compile emacs in Microsoft Windows, Biswapriyo Nath, 2023/05/12
- Re: clang fails to compile emacs in Microsoft Windows, Eli Zaretskii, 2023/05/13
- Re: clang fails to compile emacs in Microsoft Windows, Biswapriyo Nath, 2023/05/13
- Re: clang fails to compile emacs in Microsoft Windows, Eli Zaretskii, 2023/05/13