From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Biswapriyo Nath Newsgroups: gmane.emacs.help Subject: clang fails to compile emacs in Microsoft Windows Date: Fri, 12 May 2023 19:41:17 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15401"; 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 16:12:29 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 1pxTVV-0003uD-4i for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 16:12:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxTUu-0002s0-12; Fri, 12 May 2023 10:11:52 -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 1pxTUr-0002rR-AG for help-gnu-emacs@gnu.org; Fri, 12 May 2023 10:11:49 -0400 Original-Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxTUp-0005aI-HV for help-gnu-emacs@gnu.org; Fri, 12 May 2023 10:11:49 -0400 Original-Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-757731a32ecso360598985a.0 for ; Fri, 12 May 2023 07:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683900705; x=1686492705; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=894GyF+ZF+3TmzKuIkCVhnVAKRwgy71RGrEDU//npeU=; b=eOrB5CDv3vFHPXEC/Tb0gnptfzqzdDpvHS5436DPQFcTCikik0qQWRe2lj14WPADLq hD8SDayrwc0Jk3JUSJTNChwBhOz/616sYFuyWSeroEty32hD5IMQ14dP4EJHNz/+hiYq LlESxvic3rMFmZjWnhq/KhaTzqlONd3FgPV9ijavEh5Sr0hj5Efw/WTDpkBn4w6NIC4l iU4rm9Z/S01mYYHk6m1Y+tsT2OcQCdQknrp80KGy5nFAV1LQxJVPXCjTN5I04+zsHtcb 8n9V77c8vWBdgomPiX5653uArEj/vqYJQuZ+FdGGWnqHd+v/9vJmQL0NNII42zmX1s7U m5Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683900705; x=1686492705; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=894GyF+ZF+3TmzKuIkCVhnVAKRwgy71RGrEDU//npeU=; b=E2h+I4DDEJsnwJi49vbh+HsE88fofP/I5XIfs4dQKJ0I2AYk/98V2PbDEETLp7Yu2Y MetfN/in2eFroXh8xDFAVHxRbuBiHNnVGO+bvYaBZgMnsvkkHoSgxbuS2Tbd3dtqFvhs 3/eRnM8Bid9ImnSDCgcQUhE5rgtSv++Ezx5piDeTslgvD7UoJWCOSoAgVWz8SFMQxCpB 5DZU/Y7mjEA0L+KgmVyAp8pl+PGInqemdXm18CRJ79hgEQZan3KsG8rWjeRUhGZ9Z8GJ fDjcSp/andbsC+K53ureoDcX7jh+pjF/+OWs3ydxHXHUANEccWtwvJei9c0SMrxAi+Fk bk4w== X-Gm-Message-State: AC+VfDyL/NvqzT8GDi2kXh19RAfwW0OMlEEC42T8ZQ/D/4xQ8sqbsmUK 1vRHhulmL3p+bf8W9z9P3ooIWrWFk9eW+ub6Zq6iCMFaKoA= X-Google-Smtp-Source: ACHHUZ6zQeUGSWcCaKMRZM8RZFwH3rKHkw7JNixWpBb09Yn19pD7hpPX4dQ+qxVymeWvh5A3irI3IeuPNNfF/AnQtJw= X-Received: by 2002:a05:6214:c8e:b0:621:5e3b:8eb1 with SMTP id r14-20020a0562140c8e00b006215e3b8eb1mr11576826qvr.21.1683900705398; Fri, 12 May 2023 07:11:45 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=nathbappai@gmail.com; helo=mail-qk1-x72e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:143570 Archived-At: * 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.