Subject: Re: 25.2; Fatal error 6: Abortmake[1]: *** [Makefile:737: bootstrap-emacs] Abort (core dumped)

From: Paul Eggert <[email-masked]>
Date: Thu, 14 Sep 2017 12:14:49 -0700

白井彰 wrote:

> './configure --with-gif=no CFLAGS="-m64 -g3"' with Sun C 5.15,
> 'CCLD temacs' failed on my site:
> 
> make[2]: Leaving directory '/tmp/emacs-25.2/admin/unidata'
>    CCLD     temacs
> ld: fatal: file /usr/sfw/lib/libfreetype.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/sfw/lib/libXrender.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/sfw/lib/libfreetype.so: wrong ELF class: ELFCLASS32
> ld: fatal: File processing errors. No output written to temacs

You'd need to link to 64-bit libraries. If you can't find them, then please 
disable the the troublesome 32-bitlibraries. E.g.,

./configure --with-gif=no --with-xft=no CFLAGS="-m64 -g3"

should build without the abovementioned libraries.

> Now I can recreate the segmentation fault of temacs every time with
> Sun C 5.15 on my site, and the backtrace of temacs seems very alike
> for each build of emacs-25.2:

That's "encouraging", in some sense. At least you can reproduce the bug.

> % cat /tmp/aaa.txt
> core '/tmp/emacs-25.2/src/core' of 24956:     ./temacs --batch --load loadup bootstrap
>   fe5a17ea rt_dldump (feffdd88, 8c0c21c, 1000, 0) + 7a6
>   fefd9fe9 dldump_core (feffb28c, 0, 8c0c21c, 1000) + 175
>   fefda036 dldump   (0, 8c0c21c, 1000, 8bd1b58) + 42
>   0834b719 unexec   (8c0c21c, 8c0c250, 8046ac8, 8215a4d) + 19

This sounds promising. Can you use a debugger to find out what is going wrong 
inside rt_dldump?