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]

Re: egcs-19980531, SunOS4 -fPIC fails on all programs now


 > From: Manfred Hollstein <manfred@s-direktnet.de>
 > Subject: Re: egcs-19980531, SunOS4 -fPIC fails on all programs now
 > 
 > On Sat, 6 June 1998, 12:05:38, ghazi@caip.rutgers.edu wrote:
 > 
 >  > Snapshot:		egcs-19980531
 >  > Platform:		sparc-sun-sunos4.1.4
 >  > Stage1 compiler:	cc
 >  > Assembler:		native
 >  > Linker:			native
 >  > BOOT_CFLAGS:		-g -O3 -funroll-all-loops
 >  > 
 >  > 
 >  > 	I cannot compile even the simplest program using -fPIC any
 >  > more on SunOS4.  This is what I get:
 >  > 
 >  > cat foo.c:
 >  > 
 >  >  > int main()
 >  >  > {
 >  >  >   return 0;
 >  >  > }
 >  > 
 >  > gcc -fPIC foo.c:
 >  > 
 >  >  > collect2: ld terminated with signal 11 [Segmentation fault], core dumped
 >  > 
 >  > 	I think ld is choking on what it finds in the ucpic/libgcc.a,
 >  > because if I compile foo.c with "-c -fPIC" and then compile foo.o
 >  > without -fPIC it works.  This also appears to occur with 19980508, so
 >  > its been happening for at least a few weeks now.  I'll bootstrap
 >  > 19980531 with no special cflags to see if that makes a difference.
 > 
 > No problems here (egcs updated from CVS at 1998/06/08 13:25:45 MEST):
 > 
 > $ cat foo.c
 > int main ()
 > {
 >   return 0;
 > }
 > $ gcc -fPIC foo.c
 > $ gcc -v
 > Reading specs from /u/b60/manfred/gnu/sparc-sun-sunos4/lib/gcc-lib/sparc-sun-sunos4.1.4/egcs-2.91.35/specs
 > 
 > Although I must admit,  I'm using GNU  binutils-2.9.1 instead of Sun's
 > native tools.  Perhaps, this makes a difference.
 > manfred


	Yes, the fact that you are using binutils makes a difference.:-)
But its useful to know this only affects the native tools.  Thanks.

	If you have time, would you please try a native tool build and
see if you can reproduce the error I got?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Project Manager / Custom Development
ghazi@caip.rutgers.edu		Icon CMT Corp.


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