GNU bug report logs - #70889
29.3; GCC14.1 MinGW compilation error

Previous Next

Package: emacs;

Reported by: Cyril Arnould <2006parcy <at> gmail.com>

Date: Sun, 12 May 2024 09:35:01 UTC

Severity: normal

Merged with 70890, 71036

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 70889 <at> debbugs.gnu.org (full text, mbox):

From: Cyril Arnould <cyril.arnould <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 70889 <at> debbugs.gnu.org
Subject: Re: bug#70889: 29.3; GCC14.1 MinGW compilation error
Date: Fri, 17 May 2024 19:19:24 +0200
Thought I'd let you know, I found another error in the config.log
which was previously a warning:


configure:23030: checking whether pthread_setname_np takes a single argument
configure:23047: gcc -I ./nt/inc -c -g3 -O2 -gdwarf-2 
-Wno-error=implicit-function-declaration -isystem 
C:/msys64/mingw64/include/librsvg-2.0 -isystem 
C:/msys64/mingw64/include/gdk-pixbuf-2.0 -isystem 
C:/msys64/mingw64/include/webp -DLIBDEFLATE_DLL -isystem 
C:/msys64/mingw64/include/cairo -isystem 
C:/msys64/mingw64/include/freetype2 -isystem 
C:/msys64/mingw64/include/libpng16 -isystem 
C:/msys64/mingw64/include/harfbuzz -isystem 
C:/msys64/mingw64/include/glib-2.0 -isystem 
C:/msys64/mingw64/lib/glib-2.0/include -isystem 
C:/msys64/mingw64/include/pixman-1 -isystem 
C:/msys64/mingw64/include/webp -mtune=generic   conftest.c >&5
conftest.c: In function 'main':
conftest.c:135:21: error: passing argument 1 of 'pthread_setname_np' 
makes integer from pointer without a cast [-Wint-conversion]
  135 | pthread_setname_np ("a");
      |                     ^~~
      |                     |
      |                     char *
In file included from conftest.c:131:
C:/msys64/mingw64/include/pthread.h:323:55: note: expected 'pthread_t' 
{aka 'long long unsigned int'} but argument is of type 'char *'
  323 | WINPTHREAD_API int       pthread_setname_np(pthread_t thread, 
const char *name);
      |                                             ~~~~~~~~~~^~~~~~
conftest.c:135:1: error: too few arguments to function 'pthread_setname_np'
  135 | pthread_setname_np ("a");
      | ^~~~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/pthread.h:323:26: note: declared here
  323 | WINPTHREAD_API int       pthread_setname_np(pthread_t thread, 
const char *name);
      |                          ^~~~~~~~~~~~~~~~~~
configure:23047: $? = 1


I don't think this affects the Windows build though; if I compile with
'-Wno-error=int-conversion' the configure script still reports:

checking whether pthread_setname_np takes a single argument... no

It might possibly affect the build on other systems though.




This bug report was last modified 1 year and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.