[gnu.g++.bug] Insatalling g++ on a Sun 3

gauthier@UCBVAX.BERKELEY.EDU (Jay Gauthier) (12/21/88)

Hi,

I'm currently attempting to install g++ on a Sun 3 and have gotten
within inches of success.  (The first problem was about the reverse_
condition function in jump.c being static).

My current problem has something to do with default search paths
for gcc and ld, etc.  It seems like everything in the Makefiles
was set up to default to /usr/local/lib.  I wanted this to be
/usr/4r12/lib instead and changed it wherever appropriate.

g++ made without a problem, but I got a ld: error trying to
`make test0' something like:
ld: No file or directory for crt0+.o

I tried including -DDEFAULT_SEARCH_PREFIX=\"/usr/4r12/lib\" in the 
ld.c compile line in Makefile, but it still didn't work.

Finally, I copied crt0+.o to /lib and it compiled alright.

When I ran test0, it tried to compile and link test.bye.  The
same kind of ld error occurred, this time complaining about
ld: No file or directory for /usr/4r12/lib/gcc-crt0+.o

I have a feeling it would work fine if I installed it in /usr/local/bin
and /usr/local/lib, but that is not where I want to install it.

Help would be much appreciated.

One more comment.  The SUN3.README file is out of date for the
release of g++ that I have.  The patch is for tm-sun3.h but the
diff lines can't be found as such.  I patched my tm-sun3.h file
and just changed the three occurrences of crt0.o to crt0+.o.

Other than these few problems, everything is running very smoothly.

I'd appreciate any help you may be able to give me.

Thanks in advance,


Jay Gauthier
BNR Inc.
{hplabs,amdahl,ames}!bnrmtv!gauthier