From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: build failures in mingw64 Date: Sun, 09 Jul 2023 08:58:04 +0300 Message-ID: <83lefpbp8z.fsf@gnu.org> References: <86fs5yt6mi.fsf@stephe-leake.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29710"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 09 07:58:47 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 1qINRW-0007YF-N3 for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 07:58:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qINQn-0005zh-TW; Sun, 09 Jul 2023 01:58:01 -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 1qINQl-0005z8-Eo for emacs-devel@gnu.org; Sun, 09 Jul 2023 01:57:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qINQk-0005U2-Dl; Sun, 09 Jul 2023 01:57:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=guGyhSxQAE8GMKp+Ap4z6lY/0EK3/A3qWweumLao8n0=; b=ZgJI0T8OV04b FbFClkYVIsQPHtzkombsXpqGnpwSq7JJxV25cVW1KqgHBVEj14qNdeo9Rf3skJZ+Jp1AD+jtcyJ5h 6NrSmOLOmAa/k1yQNNNBaHTclWzy+k4IYjlGhPNoWDBg/+FnQxn/7UwrYnWN8UR4/Uhnh7gnxRvq9 0Slj1GBv+WKkc8P8IOqU5FFwCAUr/E4vAx5hDwc6KbR7jECj12oFE/yVocASsEN13paKrhgizD+OK woYqYDtlKR01tSZ6RbLITh1viNUaWklxi3vJ4R3nvXBuszk1AlPU/Ak6+OjE4hgyZaQARxwrx70bC qEBsGv9duu46ryxVS4h7aw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qINQj-00041d-3T; Sun, 09 Jul 2023 01:57:57 -0400 In-Reply-To: <86fs5yt6mi.fsf@stephe-leake.org> (message from Stephen Leake on Sat, 08 Jul 2023 14:50:45 -0700) 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:307640 Archived-At: > From: Stephen Leake > Date: Sat, 08 Jul 2023 14:50:45 -0700 > > 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. Please take this issue up with the MinGW64 folks who produce the MinGW64 GnuTLS package. You can meanwhile fix the gnutls.pc file locally on your system, to specify the correct -I flag (which IMO should be simply -I${includedir}). > 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. Does this mean MinGW64 recently removed nanosleep from their runtime library or something? The MS-Windows build assumes MinGW does have nanosleep, so it did exist at some point.