Article View: gnu.gcc.help
Article #271getting ld to work with libg++
From: Ron Skopitz
Date: Tue, 18 Aug 1992 05:48
Date: Tue, 18 Aug 1992 05:48
64 lines
3084 bytes
3084 bytes
To ALL,
First, let me say, THANKS! for all the help you've given us so
far! We'd never have made it. Here's that one question i still have (I
know it's been a while). The make of g++ lib fails, appearently at the
"ld" stage, although i haven't been able to figure out why... I've tried
various methods of indicating pathnames, etc to ld, but to no avail. The
compiler is being built in an install directory and NOT into /usr/lib or
any of the "default" ld search-paths. The local directories that the .a
files do exist in are in my path and have full permissions and the home
directory for the account has been included in the Makefile. As
requested, here is a transcript of the failed make. Again, sorry to
bother you and thanks for the assistance, we're soooo close!!
make CC="gcc" CFLAGS="-g -O" CC="gcc" all
cd stdio; make all ...
cd test; make all ...
rm -f libg++.a
rootme=`pwd` ; export rootme ; cd src ; ar qc ../libg++.a *.o
rootme=`pwd`; export rootme; cd iostream; \
ar qc ../libg++.a *.o
cd ../libiberty; \
ar qc ../libg++/libg++.a `cat needed-list` strerror.o strsignal.o
ranlib libg++.a
touch .stmp-genclass
touch .stmp-tests
touch .stmp-etc
(rootme=`pwd` ; export rootme ; cd src ; \
make "CC=gcc" "CFLAGS=-g -O" "XTRAFLAGS=" \
"AR=`if [ -f ${rootme}/../../binutils/ar ] ; \
then echo ${rootme}/../../binutils/ar ; \
else echo ar ; fi`" "RANLIB=`if [ -f ${rootme}/../../binutils/ranlib ] ; \
then echo ${rootme}/../../binutils/ranlib ; \
else echo ranlib ; fi`")
gcc -o gperf new.o options.o iterator.o main.o gen-perf.o key-list.o list-node.o hash-table.o bool-array.o read-line.o std-err.o version.o ../../libg++.a
0706-005 ld: Cannot find file: libgcc.a
Check path name and permissions or
use local problem reporting procedures.
0706-005 ld: Cannot find file: libgcc.a
Check path name and permissions or
use local problem reporting procedures.
make: 1254-004 The error code from the last command is 1.
Make Quitting.
make: 1254-004 The error code from the last command is 2.
Make Quitting.
make: 1254-004 The error code from the last command is 2.
Make Quitting.
make: 1254-004 The error code from the last command is 2.
Make Quitting.
Again... see if you can make any sense outa this.... we don't seem to be
able to, it's very aggravating as we know how simple an oversight this
must be... :(
Thanks again,
Ron Skopitz
install2@st6000.sct.edu
Technical Details
Message-ID:
<9208180549.AA41226@st6000.sct.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!st6000.sct.edu!install2Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!st6000.sct.edu!install2 From: install2@st6000.sct.edu (Ron Skopitz) Subject: getting ld to work with libg++ Message-ID: <9208180549.AA41226@st6000.sct.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 18 Aug 1992 05:48:59 GMT Lines: 64