Sun C 3.0.1 w/ -O and X11R6 = cg fatal error 136

Sun C 3.0.1 w/ -O and X11R6 = cg fatal error 136

Post by Richard Lew » Thu, 25 Aug 1994 14:57:45



Hello:

I'm experiencing an interesting error from the SunPro C 3.0.1
compiler. I'm running Solaris 2.3, with recommended patches and X11R6
patchlevel 4.

Whenever I compile with optimization -O or -fast, the following error
occurs:

eg. cc -O -DSYSV -DDEFAULT -o listgroup listgroup.c

Fatal error in /opt/SUNWspro/bin/../SC3.0/bin/cg
Status 136

This only occurs when I am running the R6 server compiling ANY
application. It works fine with Openwindows 3.3 or a generic R5 server
(of course in the console as well). It also does not happen when I
compile without optimization.

Any clues would be appriciated.

-thanks
Richard

--
For a good prime, call:  391581 * 2^216193 - 1

+-----------------------------------------------------+
Richard Lewis
Lehman Brothers Japan Inc.
Ark Mori Bldg, 36th Floor
1-12-32 Akasaka
Minato-ku, Tokyo 107, JAPAN


phone: 81-(3)-5571-7639    

 
 
 

Sun C 3.0.1 w/ -O and X11R6 = cg fatal error 136

Post by Hr. Mei » Thu, 25 Aug 1994 17:40:29


   Xref: unibwh.unibw-hamburg.de comp.unix.solaris:23463 comp.windows.x:37139
   Newsgroups: comp.unix.solaris,comp.windows.x
   Path: unibwh.unibw-hamburg.de!news.rrz.uni-hamburg.de!news.dkrz.de!news.tu-harburg.de!news.dfn.de!Germany.EU.net!EU.net!uunet!psinntp!lehman.com!elvis!rlewis


   Nntp-Posting-Host: elvis
   Organization: Lehman Brothers
   X-Newsreader: TIN [version 1.2 PL2]
   Date: Wed, 24 Aug 1994 05:57:45 GMT
   Lines: 37

   Hello:

   I'm experiencing an interesting error from the SunPro C 3.0.1
   compiler. I'm running Solaris 2.3, with recommended patches and X11R6
   patchlevel 4.

   Whenever I compile with optimization -O or -fast, the following error
   occurs:

   eg. cc -O -DSYSV -DDEFAULT -o listgroup listgroup.c

   Fatal error in /opt/SUNWspro/bin/../SC3.0/bin/cg
   Status 136

   This only occurs when I am running the R6 server compiling ANY
   application. It works fine with Openwindows 3.3 or a generic R5 server
   (of course in the console as well). It also does not happen when I
   compile without optimization.

   Any clues would be appriciated.

   -thanks
   Richard

Hi Richard,

I had a similar problem (cg terminates with error 136 compiling any application with
-fast or -O).

The problem was (according to SUN), that my SHELL (!) (tcsh) was compiled with -fast. I had
to start my Xsession using a shell (like the csh SUN ships with Solaris) not compiled
with -fast and therefore not using the special cg92 floating-point routines.

With the csh or a tcsh NOT compiled with -fast, all works fine !
This bug is already known by SUN and should be no problem in Solaris 2.4 (that's what
SUN said !)

The reason why this happens is not totally clear for me ! But with the workaround described above
it works.

Wilhelm

--
#####################################################################

Address:        Dipl.-Ing. Wilhelm Meier
                UniBwH, FB ET
                Holstenhofweg 85
        D-22043 Hamburg
                GERMANY

        FAX:    (49)(0)40 / 65412822
        Phone:  (49)(0)40 / 65412524


#####################################################################