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


On Thu, 11 June 1998, 18:43:23, manfred@s-direktnet.de wrote:

 > On Thu, 11 June 1998, 10:05:08, ghazi@caip.rutgers.edu wrote:
 > 
 [snip]
 >  > 	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?
 > 
 > We'll have a holiday in Germany, hence I'll be back in the office on
 > Monday. Then I'll give it a try.

Back in the office now. I'm just bootstrapping egcs with SunOS' native
tools  (exactly the same source; no  CVS update in  between); it's not
yet finished, but the stage2 compiler doesn't show any problems:

$ cat foo.c
int main ()
{
  return 0;
}
$ ./xgcc -v -B./ -fPIC foo.c 
Reading specs from ./specs
gcc version egcs-2.91.40 19980610 (gcc2 ss-980502 experimental)
 ./cpp -lang-c -v -isystem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(bsd) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) foo.c /tmp/cca19165.i
GNU CPP version egcs-2.91.40 19980610 (gcc2 ss-980502 experimental) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 include
 /u/b60/manfred/gnu/sparc-sun-sunos4/include
 /u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/include
 /u/b60/manfred/gnu/sparc-sun-sunos4/lib/gcc-lib/sparc-sun-sunos4.1.4/egcs-2.91.40/include
 /usr/include
End of search list.
 ./cc1 /tmp/cca19165.i -quiet -dumpbase foo.c -version -fPIC -o /tmp/cca19165.s
GNU C version egcs-2.91.40 19980610 (gcc2 ss-980502 experimental) (sparc-sun-sunos4.1.4) compiled by GNU C version egcs-2.91.40 19980610 (gcc2 ss-980502 experimental).
 /u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/bin/as -k -o /tmp/cca191651.o /tmp/cca19165.s
 ./collect2 -e start -dc -dp /lib/crt0.o -L./ucpic -L. -L/u/b60/manfred/gnu/sparc-sun-sunos4/lib/gcc-lib/sparc-sun-sunos4.1.4/egcs-2.91.40/ucpic -L/u/b60/manfred/gnu/sparc-sun-sunos4/lib/gcc-lib/sparc-sun-sunos4.1.4/egcs-2.91.40 -L/u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/lib -L/u/b60/manfred/gnu/sparc-sun-sunos4/lib /tmp/cca191651.o -lgcc -lc -lgcc
$ ./a.out
$ ls -l /u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/bin/{as,ld}
lrwxrwxrwx   1 manfred  1641sx          7 Jun 15 08:13 /u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/bin/as -> /bin/as
lrwxrwxrwx   1 manfred  1641sx          7 Jun 15 08:13 /u/b60/manfred/gnu/sparc-sun-sunos4/sparc-sun-sunos4.1.4/bin/ld -> /bin/ld

manfred


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