Path: utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!eplrx7!mcneill
From: eplrx7!mcneill@UUNET.UU.NET (Keith McNeill)
Newsgroups: gnu.gcc.bug
Subject: GCC 1.31 Sun4, Sys4-3.2 & X.V11R3
Message-ID: <8812021918.AA26913@chip_and_dips.com>
Date: 2 Dec 88 19:18:48 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 112

Hello,

I tried compiling X.V11R3 with GCC V 1.31 on a Sun4/260 running
SunOS Sys4-3.2.  In the entire make of X.V11R3 I got 7 

gcc: Program cc1 got fatal signal 4.

Which is:

     4  EINTR  Interrupted system call
     
-------------------------------------------------------------------------------

5 of the fatal signals were caused by -O  (i.e. I took out the -O and it
	compilied without a fatal signal.

EXP:
--------------------------------------------------
In X.V11R3/server/dix

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings -c  -I. -I../include -I../.././X11   colormap.c
colormap.c: In function TellNoMap:
colormap.c:273: warning: `TellNoMap' was declared `extern' and later `static'
../include/colormap.h:71: warning: previous declaration of `TellNoMap'
gcc: Program cc1 got fatal signal 4.

--------------------------------------------------
In X.V11R3/server/ddx/mi

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings -c  -I. -I../../include -I../../.././X11  -DPURDUE milines.c
gcc: Program cc1 got fatal signal 4.
*** Error code 1

--------------------------------------------------
In X.V11R3/server/ddx/mi

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings -c  -I. -I../../include -I../../.././X11  -DPURDUE miarc.c
gcc: Program cc1 got fatal signal 4.
*** Error code 1

--------------------------------------------------
In X.V11R3/clients/xfd

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings  -I../../.   -c xfd.c
gcc: Program cc1 got fatal signal 4.

--------------------------------------------------
In. X.V11R3/clients/xrdb

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings  -I../../.  -DCPP="\"/usr/local/lib/gcc-cpp\"" -c xrdb.c
gcc: Program cc1 got fatal signal 4.

--------------------------------------------------

1 of the fatal signals were caused by -traditional 

--------------------------------------------------
In X.V11R3/server/ddx/sun

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings -c  -I.  -I../../include -I../mfb -I../../dix -I../../.././X11   sunInit.c
gcc: Program cc1 got fatal signal 4.

--------------------------------------------------

1 of the fatal signals did not go away with removal of all the 
	options (i.e. still got the fatal signal with removal of
	-O -traditional -fcombine-regs -finline-functions -fwritable-strings).

--------------------------------------------------
In X.V11R3/fonts/fonts/bdftosnf

gcc -O -traditional -fcombine-regs -finline-functions -fwritable-strings  -I. -I../../. -I../.././server/include   -c bdftosnf.c
gcc: Program cc1 got fatal signal 4.

-------------------------------------------------------------------------------

I'm not quite sure what to do now.  With the complexity of the X11 build I
don't see how I could just send you the source files and the include files
without using up a huge amount of network bandwidth.  I see 2 possible
options for you to reproduce these errors:

1)	I could send you the X.V11R3 config files that I used and you could
		build X11 on your Sun4 machine.  

2)	I could send you the output of gcc -E.  Then hopefully all you would have
		to do is gcc -all-the-options-that-I-used file.i to reproduce the
		fatal error.

Let me know what you want me to send....or do you have a better idea?

-------------------------------------------------------------------------------

I configured gcc with

config.gcc sun4 

which produced this output

Linked `config.h' to `xm-sparc.h'.
Linked `tm.h' to `tm-sun4os3.h'.
Linked `md' to `sparc.md'.
Linked `aux-output.c' to `output-sparc.c'.
Links are now set up for use with a sun4.

I did a make stage1 & a make stage2.  The 2 sets of the .o's 
were the same (using cmp).

Thanks,

    Keith D. McNeill              |    E.I. du Pont de Nemours & Co.
    eplrx7!mcneill@uunet.uu.net   |    Experimental Station
    (302) 695-7395                |    P.O. Box 80357
                                  |    Wilmington, Delaware 19880-0357