home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.help
- Path: sparky!uunet!sun-barr!ames!agate!boulder!glenn!jamesa
- From: jamesa@glenn.Berkeley.EDU (Jim Anderson)
- Subject: Compiling 2.2.2 on Decstation - problems!
- Message-ID: <1992Sep4.145433.22515@colorado.edu>
- Sender: news@colorado.edu (The Daily Planet)
- Nntp-Posting-Host: glenn.colorado.edu
- Reply-To: jamesa@glenn.Berkeley.EDU (Jim Anderson)
- Organization: University of Colorado, Boulder
- Date: Fri, 4 Sep 1992 14:54:33 GMT
- Lines: 58
-
- I'm running into some problems that are over my head here. I'm
- trying to install gcc2.2.2 on a decstation 5000/200.
-
- I use the following sequence of commands (have them memorized by now)
-
- /glenn/tools/gcc/configure decstation-ultrix4.0
- gnumake LANGUAGE=c
- gnumake stage1
- gnumake CC="stage1/gcc -Bstage1/" CFLAGS="-g -O"
- gnumake stage2
-
- These all work fine, but when I type:
- sudo gnumake CC="stage2/gcc -Bstage2/" CFLAGS-"=g =O" install
-
- it hums and purrs along until it hits this section :
- rm -f /usr/local/bin/c++
- install -c /glenn/tools/gcc/gcc-2.2.2/c++ /usr/local/bin/c++
- rm -f /usr/local/bin/g++
- install -c /glenn/tools/gcc/gcc-2.2.2/g++ /usr/local/bin/g++
- rm -f /usr/local/lib/gcc-lib/decstation-ultrix4.0/`awk '{printf "%s",
- substr ($4, 2, length ($4) - 3); }' /glenn/tools/gcc/gcc-2.2.2/version.c`/cpp
- install -c cpp /usr/local/lib/gcc-lib/decstation-ultrix4.0/`awk
- '{printf "%s", substr ($4, 2, length ($4) - 3); }'
- /glenn/tools/gcc/gcc-2.2.2/version.c`/cpp
- if [ -f libgcc2.ready ] ; then \
- true; \
- else \
- touch libgcc2.ready; \
- fi
- rm -rf tmplibgcc.a libgcc.a tmpcopy
- mkdir tmpcopy
- if [ xlibgcc1.null != x ]; \
- then (cd tmpcopy; ar x ../libgcc1.null); \
- else true; \
- fi
- (cd tmpcopy; ar x ../libgcc2.a)
- (cd tmpcopy; ar rc ../tmplibgcc.a *.o)
- and it hangs on this last line (it will wait indefinitely) until I hit a few
- returns. At which point it kicks out this error message:
-
- ar: Error: phase error on __main.o
-
- ar: Error: malformed archive (at 68)
- gnumake: *** [libgcc.a] Error 1
-
- My questions: what does this mean? and how do I get around it?
- I've tried building this several times, and run into several problems
- which running out of disk space and not having proper write access
- for the directory (the last command is run in sudo mode, which allows
- root access, but if the directory is not public read/write, sudo mode
- screws up and decides that it can't write to the directory)
-
- Anywho - I'm really beating my head against the wall here, so any help
- at all would be appreciated.
-
- jim anderson
- jamesa@duke.colorado.edu
- not a unix guru.
-