bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37852: Build failure on MSYS2 (undefined reference to _chk functions


From: Paul Eggert
Subject: bug#37852: Build failure on MSYS2 (undefined reference to _chk functions)
Date: Mon, 21 Oct 2019 17:40:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

I think we should better disable GNULIB_PORTCHECK on MinGW (I can hardly
imagine someone using that platform for those portability checks, and
I'm not sure I understand why this gets defined by default on other
platforms).

The intent of GNULIB_PORTCHECK is that it is enabled by developers who want some simple build-time portability tests. It isn't suitable for people who just want to build the software, as there are too many build failures and other false alarms that builders don't care about.

I installed the attached patch, to cause the problem to occur only if one configures explicitly with --enable-gcc-warnings. This should fix the problem that Richard reported. However, it won't fix the more general problem (which Richard should be able to reproduce via './configure --enable-gcc-warnings ...').

Apparently MSYS2 changed recently, and this caused _FORTIFY_SOURCE builds to fail. See, for example:

https://github.com/msys2/MINGW-packages/issues/5803

I don't understand MSYS2 well enough to suggest fixes for Emacs, other than "don't configure with --enable-gcc-warnings and don't compile with _FORTIFY_SOURCE defined".

Attachment: 0001-Portcheck-only-if-enable-gcc-warnings.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]