home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / gcc / help / 2064 < prev    next >
Encoding:
Text File  |  1992-09-04  |  2.6 KB  |  71 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!sun-barr!ames!agate!boulder!glenn!jamesa
  3. From: jamesa@glenn.Berkeley.EDU (Jim Anderson)
  4. Subject: Compiling 2.2.2 on Decstation - problems!
  5. Message-ID: <1992Sep4.145433.22515@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: glenn.colorado.edu
  8. Reply-To: jamesa@glenn.Berkeley.EDU (Jim Anderson)
  9. Organization: University of Colorado, Boulder
  10. Date: Fri, 4 Sep 1992 14:54:33 GMT
  11. Lines: 58
  12.  
  13. I'm running into some problems that are over my head here.  I'm
  14. trying to install gcc2.2.2 on a decstation 5000/200.
  15.  
  16. I use the following sequence of commands (have them memorized by now)
  17.  
  18. /glenn/tools/gcc/configure decstation-ultrix4.0
  19. gnumake LANGUAGE=c
  20. gnumake stage1
  21. gnumake CC="stage1/gcc -Bstage1/" CFLAGS="-g -O"
  22. gnumake stage2
  23.  
  24. These all work fine, but when I type:
  25. sudo gnumake CC="stage2/gcc -Bstage2/" CFLAGS-"=g =O" install
  26.  
  27. it hums and purrs along until it hits this section :
  28.     rm -f /usr/local/bin/c++
  29.     install -c /glenn/tools/gcc/gcc-2.2.2/c++ /usr/local/bin/c++
  30.     rm -f /usr/local/bin/g++
  31.     install -c /glenn/tools/gcc/gcc-2.2.2/g++ /usr/local/bin/g++
  32.     rm -f /usr/local/lib/gcc-lib/decstation-ultrix4.0/`awk '{printf "%s",
  33. substr ($4, 2, length ($4) - 3); }' /glenn/tools/gcc/gcc-2.2.2/version.c`/cpp
  34.     install -c cpp /usr/local/lib/gcc-lib/decstation-ultrix4.0/`awk
  35. '{printf "%s", substr ($4, 2, length ($4) - 3); }'
  36. /glenn/tools/gcc/gcc-2.2.2/version.c`/cpp
  37.     if [ -f libgcc2.ready ] ; then \
  38.             true; \
  39.     else \
  40.             touch libgcc2.ready; \
  41.     fi
  42.     rm -rf tmplibgcc.a libgcc.a tmpcopy
  43.     mkdir tmpcopy
  44.     if [ xlibgcc1.null != x ];                      \
  45.     then (cd tmpcopy; ar x ../libgcc1.null);        \
  46.     else true;                                      \
  47.     fi
  48.     (cd tmpcopy; ar x ../libgcc2.a)
  49.     (cd tmpcopy; ar rc ../tmplibgcc.a *.o)
  50. and it hangs on this last line (it will wait indefinitely) until I hit a few
  51. returns.  At which point it kicks out this error message:
  52.  
  53.     ar: Error: phase error on __main.o
  54.  
  55.     ar: Error: malformed archive (at 68)
  56.     gnumake: *** [libgcc.a] Error 1
  57.  
  58. My questions: what does this mean?  and how do I get around it?
  59. I've tried building this several times, and run into several problems
  60. which running out of disk space and not having proper write access 
  61. for the directory (the last command is run in sudo mode, which allows 
  62. root access, but if the directory is not public read/write, sudo mode
  63. screws up and decides that it can't write to the directory)
  64.  
  65. Anywho - I'm really beating my head against the wall here, so any help 
  66. at all would be appreciated.  
  67.  
  68. jim anderson
  69. jamesa@duke.colorado.edu
  70. not a unix guru.
  71.