Subject: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9)

From: Wolfgang Jenkner <[email-masked]>
Date: Mon, 15 Feb 2016 14:08:40 +0100

On Mon, Feb 15 2016, Paul Eggert wrote:

> 1. I just now booted FreeBSD-9.3-RELEASE-i386 under VirtualBox and
> verified that Emacs dumped core without my recent patch
> <http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=1834ac7d24c60ecabb4fc2469d350a03db1798ab>. I also
> verified that Emacs build and runs fine with the patch.

The OP's build log says emacs was

    Configured for 'amd64-portbld-freebsd9.3'.

However, bootstrapping emacs-25 (d9ea795, which already contains your
fix) with

$ ./configure --without-all --without-x

in a FreeBSD 9 amd64 jail on my FreeBSD 10 system works fine with cc,
i.e. gcc 4.2.1.

> 2. My fix assumes Emacs is built with GCC 4.2.1, the standard GCC on
> FreeBSD 9 i386. However, your recent email
> <http://bugs.gnu.org/22065#22> indicates that you're building with GCC
> 4.8.5.

The build log says "cc", which is always the base system compiler:

  What compiler should emacs be built with?               cc -std=gnu99 -O2 -pipe -fstack-protector -fno-strict-aliasing