From: martin rudalics <rudalics@gmx.at>
To: 35410@debbugs.gnu.org
Subject: bug#35410: 27.0.50; 32-bit build of master failing with MSYS2
Date: Wed, 24 Apr 2019 09:28:50 +0200 [thread overview]
Message-ID: <70f5c078-3939-29e7-345a-65ff30ad6e4f@gmx.at> (raw)
Trying a 32-bit MSYS2 build of master on Windows 10 configured with
CFLAGS='-O3' gets me here:
w32.o:w32.c:(.text+0xa29f): undefined reference to `_imp___futime32'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:643: temacs.exe] Fehler 1
make[1]: Verzeichnis „/c/emacs/trunk/opt-32/src“ wird verlassen
make: *** [Makefile:423: src] Fehler 2
A build configured with CFLAGS='-O0 -g3' proceeds without problems.
The 32-builds use gcc 7.4.0. 64-bit builds with the same options
proceed without problems using gcc 8.3.0.
A workaround here is to add a check to mingw_time.h like
/* The @#$%^&! MinGW developers stopped updating the values of
__MINGW32_VERSION, __MINGW32_MAJOR_VERSION, and
__MINGW32_MINOR_VERSION values in v4.x of the runtime, to
"discourage its uses". So the values of those macros can no longer
be trusted, and we need the workaround below, to have a single set
of macros we can trust. (The .17 minor version is arbitrary.) */
#ifdef __MINGW32__
#include <_mingw.h>
# ifndef __CRT__NO_INLINE
# define __CRT__NO_INLINE
# endif
#endif
martin
next reply other threads:[~2019-04-24 7:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 7:28 martin rudalics [this message]
2019-07-11 18:23 ` bug#35410: 27.0.50; 32-bit build of master failing with MSYS2 Noam Postavsky
2019-07-12 8:12 ` martin rudalics
2019-07-12 15:28 ` Noam Postavsky
2019-07-12 16:52 ` martin rudalics
2019-10-09 18:11 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70f5c078-3939-29e7-345a-65ff30ad6e4f@gmx.at \
--to=rudalics@gmx.at \
--cc=35410@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).