home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / gcc / help / 2023 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  3.3 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!bionet!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!bonnie.concordia.ca!IRO.UMontreal.CA!CC.UMontreal.CA!duperval
  2. From: duperval@ERE.UMontreal.CA (Duperval Laurent)
  3. Newsgroups: gnu.gcc.help
  4. Subject: How to compile/install libg++2.2.2
  5. Message-ID: <1992Aug31.192328.19979@cc.umontreal.ca>
  6. Date: 31 Aug 92 19:23:28 GMT
  7. Sender: news@cc.umontreal.ca (Administration de Cnews)
  8. Distribution: na
  9. Organization: Universite de Montreal
  10. Lines: 80
  11.  
  12. Hi,
  13.  
  14. I'm trying to compile libg++ on an Iris4d but I have a few problems.  I've
  15. appended the messages I get during compilation if it may help anyone to see
  16. what the problem is.
  17.  
  18. Let me first say that gcc, g++, etc are not installed in /usr/local.  I'm
  19. trying to make sure everything works properly before I let unsuspecting users
  20. bombard me with 'It don't work' messages.  As you can see, 'cc' is used to
  21. compile everything.  I thought gcc or g++ was to be used (Is that what the
  22. rootme macro is used for?).  Compilation coughs severely as you can see.
  23.  
  24. Is there a way to tell configure where to find gcc?  As in 
  25. rootme=`dirname `which gcc`` (I know it's illegal but...)
  26. or something similar?
  27.  
  28. Or am I seeing everything all wrong?
  29.  
  30. Any help would be greatly appreciated.
  31.  
  32. ****************************
  33.  
  34.  
  35.  
  36.     echo "# !Automatically generated from ./functions.def"\
  37.       "- DO NOT EDIT!" >needed2.awk
  38.     grep '^DEFVAR(' < ./functions.def \
  39.      | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
  40.      >>needed2.awk
  41.     grep '^DEFFUNC(' < ./functions.def \
  42.      | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
  43.      >>needed2.awk
  44.     echo "/* !Automatically generated from ./functions.def"\
  45.       "- DO NOT EDIT! */" >config.h
  46.     awk -f needed2.awk <errors >>config.h
  47.     cc -c -g -I. -I./../include  basename.c
  48.     cc -c -g -I. -I./../include  getopt.c
  49.     cc -c -g -I. -I./../include  getopt1.c
  50.     cc -c -g -I. -I./../include  obstack.c
  51.     cc -c -g -I. -I./../include  spaces.c
  52.     cc -c -g -I. -I./../include  concat.c
  53.     cc -c -g -I. -I./../include  fdmatch.c
  54.     cc -c -g -I. -I./../include  argv.c
  55.     cc -c -g -I. -I./../include  strerror.c
  56.     cc -c -g -I. -I./../include  strsignal.c
  57.     echo "# !Automatically generated from ./functions.def"\
  58.       "- DO NOT EDIT!" >needed.awk
  59.     grep '^DEF(' < ./functions.def \
  60.         | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf \"\1\.o " }|' \
  61.         >>needed.awk
  62.     awk -f needed.awk <errors >needed-list
  63.     echo  >>needed-list
  64.     cc -c -g -I. -I./../include  vfork.c
  65.     cc -c -g -I. -I./../include  alloca.c
  66.     rm -rf libiberty.a
  67.     ar qc libiberty.a \
  68.       basename.o getopt.o getopt1.o obstack.o spaces.o concat.o  fdmatch.o argv.o strerror.o strsignal.o vfork.o alloca.o 
  69.     true libiberty.a
  70.     rootme=`pwd` ; export rootme; CC="cc `if [ -f ${rootme}/../gcc/gcc ] ; \
  71.     then echo -I${rootme}/../gcc/include ; \
  72.     else echo ; fi`"; export CC; \
  73.     ./utils/gen-params  >tmp-params.h
  74. cc: Error: no source file
  75. libmld: ldopen:cannot open dummy.o
  76. nm: Error: cannot open dummy.o
  77. libmld: ldopen:cannot open dummy.o
  78. nm: Error: cannot open dummy.o
  79. nm failed to find FUNC in dummy.o!
  80. ./utils/gen-params: -1: bad number
  81. *** Error code 1
  82.  
  83. Stop.
  84. *** Error code 1
  85.  
  86. Stop.
  87. -- 
  88. Laurent Duperval
  89. duperval@ere.umontreal.ca
  90. duperval@jsp.umontreal.ca
  91. "If you gotta go, you might as well go happy... or suprised"   -Me
  92.