Subject: Re: bug#18743: 25.0.50; Clang 3.0 fails to compile src/fns.c, GCC 4.8 cannot dump emacs

From: Peter Dyballa <[email-masked]>
Date: Wed, 6 Dec 2017 20:40:07 +0100

Am 6.12.2017 um 19:13 schrieb Richard Stallman:

> Can you analyze the problem dumping with GCC 4.8?

Configure has no problem with GIF and JPEG, but build fails with:

	"../../src/bootstrap-emacs" -batch --no-site-file --no-site-lisp -f batch-byte-compile uvs.el
	Fatal error 6: Abort trap
	Backtrace:
	0   bootstrap-emacs                     0x0000000100155ca1 emacs_backtrace + 105
	1   bootstrap-emacs                     0x000000010012f79c terminate_due_to_signal + 129
	2   bootstrap-emacs                     0x0000000100155653 deliver_fatal_signal + 0
	3   bootstrap-emacs                     0x0000000100155628 deliver_thread_signal + 146
	4   bootstrap-emacs                     0x000000010015568d deliver_fatal_thread_signal + 28
	5   libSystem.B.dylib                   0x00007fff813de1ba _sigtramp + 26
	6   bootstrap-emacs                     0x000000010306b39a next_release_must_exit + 43910710
	7   libSystem.B.dylib                   0x00007fff81384195 free + 128
	8   bootstrap-emacs                     0x00000001002828c4 rpl_putenv + 329
	9   bootstrap-emacs                     0x00000001001a84cc xputenv + 24
	10  bootstrap-emacs                     0x00000001001c0f73 set_time_zone_rule + 280
	11  bootstrap-emacs                     0x00000001001bc5ae init_editfns + 162
	12  bootstrap-emacs                     0x00000001001310b1 main + 4273
	13  bootstrap-emacs                     0x000000010000253c start + 52

Dumping succeeded before, of course, here and also with GCC 5 and 6. The recent version of GCC 4.8 is 4.8.5. Historically it could have been the same version (release date: June 23, 2015), but I have no proof.

One more difference is that MacPorts has changed. The reason is different C++ ABIs and inability to pass things between different versions (not my field of interest). On my Snow Leopard system I have to use a special one (don't know the details), switch happened in summer.

Original Mac OS X 10.6.8 supports Clang 3.0 and GCC 4.2.

--
Greetings

  Pete

Wasting time is an important part of living.