home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / help / 1926 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.9 KB  |  76 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!cis.ohio-state.edu!st6000.sct.edu!install2
  3. From: install2@st6000.sct.edu (Ron Skopitz)
  4. Subject: getting ld to work with libg++
  5. Message-ID: <9208180549.AA41226@st6000.sct.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 18 Aug 1992 05:48:59 GMT
  10. Lines: 64
  11.  
  12. To ALL,
  13.     First, let me say, THANKS! for all the help you've given us so
  14. far! We'd never have made it.  Here's that one question i still have (I
  15. know it's been a while).  The make of g++ lib fails, appearently at the
  16. "ld" stage, although i haven't been able to figure out why...  I've tried
  17. various methods of indicating pathnames, etc to ld, but to no avail.  The
  18. compiler is being built in an install directory and NOT into /usr/lib or
  19. any of the "default" ld search-paths.  The local directories that the .a
  20. files do exist in are in my path and have full permissions and the home
  21. directory for the account has been included in the Makefile.  As
  22. requested, here is a transcript of the failed make.  Again, sorry to
  23. bother you and thanks for the assistance, we're soooo close!! 
  24.  
  25.  
  26.  
  27. make CC="gcc" CFLAGS="-g -O" CC="gcc" all
  28. cd stdio; make all ...
  29. cd test; make all ...
  30.         rm -f libg++.a
  31.         rootme=`pwd` ; export rootme ; cd src ; ar qc ../libg++.a *.o
  32.         rootme=`pwd`; export rootme; cd iostream; \
  33.                    ar qc ../libg++.a *.o
  34.         cd ../libiberty; \
  35.                   ar qc ../libg++/libg++.a `cat needed-list` strerror.o strsignal.o
  36.         ranlib libg++.a
  37.         touch .stmp-genclass
  38.         touch .stmp-tests
  39.         touch .stmp-etc
  40.         (rootme=`pwd` ; export rootme ; cd src ; \
  41.                         make "CC=gcc" "CFLAGS=-g -O" "XTRAFLAGS=" \
  42.                         "AR=`if [ -f ${rootme}/../../binutils/ar ] ; \
  43.                 then echo ${rootme}/../../binutils/ar ; \
  44.                 else echo ar ; fi`" "RANLIB=`if [ -f ${rootme}/../../binutils/ranlib ] ; \
  45.                 then echo ${rootme}/../../binutils/ranlib ; \
  46.                 else echo ranlib ; fi`")
  47.         gcc -o gperf new.o options.o iterator.o main.o gen-perf.o key-list.o list-node.o hash-table.o bool-array.o read-line.o std-err.o version.o  ../../libg++.a
  48. 0706-005 ld: Cannot find file: libgcc.a
  49.         Check path name and permissions or
  50.         use local problem reporting procedures.
  51. 0706-005 ld: Cannot find file: libgcc.a
  52.         Check path name and permissions or
  53.         use local problem reporting procedures.
  54. make: 1254-004 The error code from the last command is 1.
  55.  
  56. Make Quitting.
  57. make: 1254-004 The error code from the last command is 2.
  58.  
  59. Make Quitting.
  60. make: 1254-004 The error code from the last command is 2.
  61.  
  62. Make Quitting.
  63. make: 1254-004 The error code from the last command is 2.
  64.  
  65. Make Quitting.
  66.  
  67.  
  68. Again... see if you can make any sense outa this.... we don't seem to be
  69. able to, it's very aggravating as we know how simple an oversight this
  70. must be... :(  
  71.  
  72.                 Thanks again, 
  73.  
  74.                     Ron Skopitz
  75.                     install2@st6000.sct.edu
  76.