all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: build failures in mingw64
@ 2023-07-09  8:05 Angelo Graziosi
  2023-07-09  8:51 ` Eli Zaretskii
  2023-07-09 16:17 ` Stephen Leake
  0 siblings, 2 replies; 14+ messages in thread
From: Angelo Graziosi @ 2023-07-09  8:05 UTC (permalink / raw)
  To: emacs-devel@gnu.org

> I'm getting build failures on master (pulled today).

I have built Emacs from master yesterday and just now without issues:


Configured for 'x86_64-w64-mingw32'.

  [...]
  Does Emacs use a file notification library?             yes (w32)
  Does Emacs use access control lists?                    yes
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              no
  Does Emacs use HarfBuzz?                                yes
  [...]
  Which dumping strategy does Emacs use?                  pdumper
  Does Emacs have native lisp compiler?                   no
  Does Emacs use version 2 of the X Input Extension?      no
  Does Emacs generate a smaller-size Japanese dictionary? no


I just noticed this in configure:

   checking whether MB_CUR_MAX is correct... ./configure: line 33322: test: !=: unary operator expected


My MSYS2 installation is uptodate and her GCC is 13.1.0.



^ permalink raw reply	[flat|nested] 14+ messages in thread
* build failures in mingw64
@ 2023-07-08 21:50 Stephen Leake
  2023-07-09  5:58 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Leake @ 2023-07-08 21:50 UTC (permalink / raw)
  To: emacs-devel

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 <gnutls/gnutls.h>
      |          ^~~~~~~~~~~~~~~~~

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



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

end of thread, other threads:[~2023-07-10 23:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-09  8:05 build failures in mingw64 Angelo Graziosi
2023-07-09  8:51 ` Eli Zaretskii
2023-07-09  9:33   ` Angelo Graziosi
2023-07-09 10:01     ` Angelo Graziosi
2023-07-09 11:22       ` Eli Zaretskii
2023-07-09 11:19     ` Eli Zaretskii
2023-07-09 20:57       ` Paul Eggert
2023-07-09 22:48         ` Angelo Graziosi
2023-07-10 12:28         ` Eli Zaretskii
2023-07-10 17:00           ` Paul Eggert
2023-07-10 23:40             ` Angelo Graziosi
2023-07-09 16:17 ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2023-07-08 21:50 Stephen Leake
2023-07-09  5:58 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.