This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-19980531, SunOS4 -fPIC fails on all programs now
- To: ghazi at caip dot rutgers dot edu
- Subject: Re: egcs-19980531, SunOS4 -fPIC fails on all programs now
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Tue, 9 Jun 1998 09:33:22 +0200 (MET DST)
- Cc: egcs-bugs at cygnus dot com, rth at cygnus dot com
- References: <199806061605.MAA27132@caip.rutgers.edu>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
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