This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.2.3 -> 3.3 breaks emacs build on Solaris 9


Hi.

Something happened between 3.2.3 and 3.3 that breaks emacs builds on
Solaris 9.  It is still broken in 3.4.1.

I recently compiled emacs (21.3 and 21.2) using many version of GCC
(all available from SunFreeware.com, where the claim is that the
configure options for GCC is essentially:

./configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld \
	    --disable-nls

See http://www.sunfreeware.com/gcc.html).

What I got was the dreaded "emacs coredumps with sigsegv on exit"
which has been discussed here
(http://lists.gnu.org/archive/html/bug-gnu-emacs/2002-11/msg00042.html)
and here (http://gcc.gnu.org/ml/gcc-bugs/2002-11/msg00426.html), the
latter being started from the former by rms.

However, I'm on Solaris 9, not 8, and 3.2 works, but later versions
don't.

However, the segv is in the same place:

Program received signal SIGSEGV, Segmentation fault.
0x00042d8c in __do_global_dtors_aux ()

Here is a list of what I've compiled so far:

(Please note there is no binutils installed, only stock Solaris tools.
Note further that this is on an Ultra V240 and 2, with completely
separate build profiles (one here at Xerox, the 240, and the Ultra 2
on a home machine).)

gcc version	works?	Output notes
-----------	------	------------
3.1		YES	Clean build
3.2.2		YES	Identical to 3.1
3.3		NO	See Notes
3.3.1		NO	Identical to 3.3
3.3.2		NO	Identical to 3.3
3.4.1		NO	See Notes

Starting with version 3.3, I get warning messages like this:

>coding.c:991: warning: comparison is always true due to limited range of data type

Aside from those messages, the only other difference from the make
output is the signal 11 core dump.


Starting with Version 3.4.1 (I haven't checked 3.4.0 yet, but I'll
guess it's the same), I get these messages:

> ld: warning: relocation error: R_SPARC_UA32: file getopt.o: symbol optarg:
> 	external symbolic relocation against non-allocatable section .debug_info;
> 	cannot be processed at runtime: relocation ignored

and

> /var/tmp/emacs-21.3/lib-src/yow.c:36: warning: conflicting types for built-in function 'malloc'


I will help hunt this to the ends of the earth.  What I need from this
list is someone to tell me what, exactly, they want to see.  If you'd
like a binary, gdb output, whatever, let me know.  I can rebuild emacs
myself, using either a prior version of gcc of the Sun C compiler.

BTW: All versions of emacs work fine under the Sun C compiler.

Sean


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]