🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52343

gcc 2.3.1 fails with PIC on Solaris2.0

#52343
From: John Cooper
Date: Wed, 25 Nov 1992 12:28
27 lines
2094 bytes
Here's my compilation line.

gcc    -Dsun -D_OL_BUILD -DINCLUDE_ALLOCA_H  -DSVR4 -DSYSV -Dsun -I../../include -I/usr/openwin/include -c -fPIC -g    -DDYNAMICLIB -o Obj-sun4-svr4/shared/AbbrevMenu.o AbbrevMenu.c
gcc: Internal compiler error: program cc1 got fatal signal 6
*** Error code 1


If I remove the -fPIC argument, all works well. It fails with the above
error when using either pic or PIC.

Here's some more verbosity:

jsc@kontiki[711]% 
*jsc@kontiki[711]% gcc -v -fPIC -Dsun -D_OL_BUILD -DINCLUDE_ALLOCA_H -DSVR4 -DS
YSV -I../../include -I/usr/openwin/include -c -g -DDYNAMICLIB AbbrevMenu.c 
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos5.0/2.3.1/specs
gcc version 2.3.1
 /usr/local/lib/gcc-lib/sparc-sun-sunos5.0/2.3.1/cpp -lang-c -v -Dsun -D_OL_BUILD -DINCLUDE_ALLOCA_H -DSVR4 -DSYSV -DDYNAMICLIB -I../../include -I/usr/openwin/include -undef -D__GNUC__=2 -Dsun -Dsparc -Dunix -D__svr4__ -D__sun__ -D__sparc__ -D__unix__ -D__svr4__ -D__sun -D__sparc -D__unix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc) -g AbbrevMenu.c /usr/tmp/cca001u5.i
GNU CPP version 2.3.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos5.0/2.3.1/cc1 /usr/tmp/cca001u5.i -quiet -dumpbase AbbrevMenu.c -g -version -fPIC -o /usr/tmp/cca001u5.s
GNU C version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
gcc: Internal compiler error: program cc1 got fatal signal 6


Thanks for any help,
--
	--- John
Technical Details
Message-ID: <JSC.92Nov25122811@saxon.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!west.West.Sun.COM!male.EBay.Sun.COM!exodus.Eng.Sun.COM!exodus!jsc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e72e8b40ef584065,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-11-25 12:27:00 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!west.West.Sun.COM!male.EBay.Sun.COM!exodus.Eng.Sun.COM!exodus!jsc
From: jsc@saxon.Eng.Sun.COM (John Cooper)
Newsgroups: gnu.gcc.help
Subject: gcc 2.3.1 fails with PIC on Solaris2.0
Date: 25 Nov 92 12:28:11
Organization: SunSoft, Inc., Mountain View, CA
Lines: 27
Distribution: world
Message-ID: <JSC.92Nov25122811@saxon.Eng.Sun.COM>
NNTP-Posting-Host: saxon