From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: build failures in mingw64 Date: Sat, 08 Jul 2023 14:50:45 -0700 Message-ID: <86fs5yt6mi.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="429"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 08 23:51:36 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qIFq2-000ARM-9s for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Jul 2023 23:51:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIFpi-0004mD-DG; Sat, 08 Jul 2023 17:51:14 -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 1qIFpg-0004m0-Fp for emacs-devel@gnu.org; Sat, 08 Jul 2023 17:51:12 -0400 Original-Received: from outbound-ss-761.bluehost.com ([74.220.211.250]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIFpe-00068H-OH for emacs-devel@gnu.org; Sat, 08 Jul 2023 17:51:12 -0400 Original-Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway8.mail.pro1.eigbox.com (Postfix) with ESMTP id 8907F10047DC4 for ; Sat, 8 Jul 2023 21:50:47 +0000 (UTC) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id IFpHqGQWN62ewIFpHqP4o0; Sat, 08 Jul 2023 21:50:47 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=Os2Kdwzt c=1 sm=1 tr=0 ts=64a9da37 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=ws7JD89P4LkA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=r1BsgRMGg3HuahM-HnQA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uFzz3BaiyxaKPCaXqW5RYR0AAxxCfdfED5nv9SD99Ew=; b=ZuL6fFMIzdsT7BMwt8HMEpPAX9 Ry+iURwGdwhpVP7FM0U6SadZSlXBJgkPR45R0RUja5lHvFh34RndKcVqsWIuMqcaUnu/XyWAU+pba LIvNv5eIeI7N+TsaW7YJcpPyCneEeEkxm4P5Ocm0muuxX5StlHUt2MtsofRliKmIYQ8XJVA30+Ld0 yzKl0uHKcnTwe1K0UYAfG79Nnrj/J1XtO30+fsQ0f+e6Xdc8bcBqfVdN3TzwobKiTSG30Q438XvY0 xTbNtAJGdbLUcjwAH4MvHgqjl08osTMCiFl88hDou9xm3Zqw44hWylvNXDiMNOHycnqOFeNp1as4T YLQw8GSw==; Original-Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:64339 helo=DESKTOP-G20DCG1) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qIFpH-000eVg-0R for emacs-devel@gnu.org; Sat, 08 Jul 2023 15:50:47 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1qIFpH-000eVg-0R X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (DESKTOP-G20DCG1) [135.180.197.170]:64339 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: pass client-ip=74.220.211.250; envelope-from=stephen_leake@stephe-leake.org; helo=outbound-ss-761.bluehost.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307632 Archived-At: I'm getting build failures on master (pulled today). First is: In file included from C:/Projects/emacs/master/nt/inc/sys/socket.h:82, from thread.h:25, from lisp.h:2261, from dispnew.c:27: ./w32.h:253:10: fatal error: gnutls/gnutls.h: No such file or directory 253 | #include | ^~~~~~~~~~~~~~~~~ The file is present in D:/msys64/mingw64/include/gnutls/gnutls.h, but D:/msys64/mingw64/include is not in the gcc include path. I can work around that with LIBGNUTLS_CFLAGS="-isystem D:/msys64/mingw64/include". This appears to be due to a bug in mingw pkgconf; it says: $ pkgconf --cflags gnutls -ID:/msys64/mingw64/include/p11-kit-1 but gnutls.h is not in p11-kit-1. Continuing the make, I get another error: d:/apps/gnat-gpl_2021/bin/../libexec/gcc/x86_64-w64-mingw32/10.3.1/ld.exe: gnutls.o: in function `gn utls_try_handshake': C:\Projects\emacs\master\src/gnutls.c:648: undefined reference to `nanosleep' C:\Projects\emacs\master\src/gnutls.c:648:(.text+0x49ce): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `nanosleep' This is from emacs/src/gnutls.c, which contains "GnuTLS glue for GNU Emacs". The reference to 'nanosleep' is on line 648; vc-annotate says: cdbc2f9d274a (Lars Ingebrigtsen 2022-03-04 648) so I don't see why this only started failing recently. I'll try bisecting. I don't have a workaround for this error; trying to add #ifdef on WindowsNT leads to other errors. -- -- Stephe