From: hvchung@cs.tcd.ie (Chung Hyen Vui)
Subject: Help to install g++ for MACH3.0
Organization: Trinity College, Dublin (Computer Science)
Date: Wed, 12 Aug 1992 15:40:49 GMT


Hi GNUers,

  I have problem to install g++ on MACH 3.0 on a 486 pcs (MK77 & UX37),
this is what I have done:

  I got the gcc-2.2.2.tar.Z sources, and I compile and install c and c++
  in /usr/local.

  The gcc seems working fine, but I can not use g++ at all, the problem
  I hasn't got the libraries for g++-2.2.2, so I ftp libg++-2.2.tar.Z
  from nic.funet.fi, I try to compile them, but there isn't
  documentations for a beginner user like me to install the thing. Can
  some of you help me out of this? This is what I have try to do:

  cd /local/gnu/libg++2.2
  configure i386-mach
  make all

  After I have done all that, during the course of make, the following
  errors occur, this is the LOG of what happened:


	cc -c -g -I. -I./../include  ./dummy.c
	(cc  dummy.o  ) >errors 2>&1 || true
	rm -f a.out dummy.o
	echo "/* !Automatically generated from ./functions.def" "- DO NOT EDIT! 	*/" >config.h
	awk -f needed2.awk <errors >>config.h
	cc -c -g -I. -I./../include  basename.c
	cc -c -g -I. -I./../include  getopt.c
	cc -c -g -I. -I./../include  getopt1.c
	cc -c -g -I. -I./../include  obstack.c
	cc -c -g -I. -I./../include  spaces.c
	cc -c -g -I. -I./../include  concat.c
	cc -c -g -I. -I./../include  fdmatch.c
	cc -c -g -I. -I./../include  argv.c
	cc -c -g -I. -I./../include  strerror.c
	cc -c -g -I. -I./../include  strsignal.c
	echo "# !Automatically generated from ./functions.def" "- DO NOT EDIT!" 	>needed.awk
	grep '^DEF(' < ./functions.def  | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { 	printf \"\1\.o " }|'  >>needed.awk
	awk -f needed.awk <errors >needed-list
	echo  >>needed-list
	cc -c -g -I. -I./../include  getcwd.c
	cc -c -g -I. -I./../include  memmove.c
	cc -c -g -I. -I./../include  strdup.c
	cc -c -g -I. -I./../include  strstr.c
	cc -c -g -I. -I./../include  strtol.c
	cc -c -g -I. -I./../include  strtoul.c
	rm -rf libiberty.a
	ar qc libiberty.a  basename.o getopt.o getopt1.o obstack.o spaces.o
	concat.o  fdmatch.o argv.o strerror.o strsignal.o getcwd.o memmove.o
	strdup.o strstr.o strtol.o strtoul.o 
	ranlib libiberty.a
	rootme=`pwd` ; export rootme; CC="cc `if [ -f ${rootme}/../gcc/gcc ] ;  	then echo -I${rootme}/../gcc/include ;  else echo ; fi`"; export CC;  ./	utils/gen-params  >tmp-params.h
	cc: dummy.C: linker input file unused since linking not done
	nm: No such file or directory for dummy.o
	nm: No such file or directory for dummy.o
	nm failed to find FUNC in dummy.o!
	./utils/gen-params: -1: bad number

	Stop.
	*** Exit 1

Does anyone know what is happening? Do I need patches for i386-mach
platform? Any suggestion would be very much appreciated. Could you
forward your answer to the e-mail address below.

Thanks for the bandwidth.

--
Henry
-- 
================================================================================
|             Hyen Vui Chung,  hvchung@.cs.tcd.ie                              |
|   Department Of Computer Science, Trinity College Dublin, Dublin 2, Eire.    |
|             Tel : 772941 Ext. 1797 (Office)  Fax : 772204                    |