Article View: gnu.gcc.help
Article #330How to compile/install libg++2.2.2
From: Duperval Laurent
Date: Mon, 31 Aug 1992 19:23
Date: Mon, 31 Aug 1992 19:23
80 lines
3447 bytes
3447 bytes
Hi,
I'm trying to compile libg++ on an Iris4d but I have a few problems. I've
appended the messages I get during compilation if it may help anyone to see
what the problem is.
Let me first say that gcc, g++, etc are not installed in /usr/local. I'm
trying to make sure everything works properly before I let unsuspecting users
bombard me with 'It don't work' messages. As you can see, 'cc' is used to
compile everything. I thought gcc or g++ was to be used (Is that what the
rootme macro is used for?). Compilation coughs severely as you can see.
Is there a way to tell configure where to find gcc? As in
rootme=`dirname `which gcc`` (I know it's illegal but...)
or something similar?
Or am I seeing everything all wrong?
Any help would be greatly appreciated.
****************************
echo "# !Automatically generated from ./functions.def"\
"- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def \
| sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
grep '^DEFFUNC(' < ./functions.def \
| sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
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 vfork.c
cc -c -g -I. -I./../include alloca.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 vfork.o alloca.o
true 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: Error: no source file
libmld: ldopen:cannot open dummy.o
nm: Error: cannot open dummy.o
libmld: ldopen:cannot open dummy.o
nm: Error: cannot open dummy.o
nm failed to find FUNC in dummy.o!
./utils/gen-params: -1: bad number
*** Error code 1
Stop.
*** Error code 1
Stop.
--
Laurent Duperval
duperval@ere.umontreal.ca
duperval@jsp.umontreal.ca
"If you gotta go, you might as well go happy... or suprised" -Me
Technical Details
Message-ID:
<1992Aug31.192328.19979@cc.umontreal.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!bionet!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!bonnie.concordia.ca!IRO.UMontreal.CA!CC.UMontreal.CA!dupervalShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!bionet!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!bonnie.concordia.ca!IRO.UMontreal.CA!CC.UMontreal.CA!duperval From: duperval@ERE.UMontreal.CA (Duperval Laurent) Newsgroups: gnu.gcc.help Subject: How to compile/install libg++2.2.2 Message-ID: <1992Aug31.192328.19979@cc.umontreal.ca> Date: 31 Aug 92 19:23:28 GMT Sender: news@cc.umontreal.ca (Administration de Cnews) Distribution: na Organization: Universite de Montreal Lines: 80