This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
AIX 432 egcs-2.93.08 fails: ld can't find libgcc.a
- To: EGCS Bugs <egcs-bugs at cygnus dot com>
- Subject: AIX 432 egcs-2.93.08 fails: ld can't find libgcc.a
- From: "David R. Favor" <dfavor at austin dot ibm dot com>
- Date: Wed, 03 Mar 1999 09:53:31 -0600
During a build of PostgreSQL the following command gets executed:
gcc -bE:../backend/postgres.imp -o postgres access/SUBSYS.o bootstrap/SUBSYS.o
catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o
main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
utils/SUBSYS.o ../utils/version.o -lPW -lcrypt -lld -lnsl -ldl -lm -lreadline
-lhistory -lcurses
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): No such file or directory
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): No such file or directory
gcc: file path prefix `/usr/local/lib/gcc-lib/E:../backend/postgres.imp/egcs-2.93.08/' never used
If I manually execute this gcc command with '-v', the following occurs:
Using builtin specs.
gcc version egcs-2.93.08 19990214 (gcc2 ss-980929 experimental)
ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o postgres /lib/crt0.o
-L/usr/local/lib access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o
executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o
parser/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
tcop/SUBSYS.o utils/SUBSYS.o ../utils/version.o -lPW -lcrypt -lld -lnsl -ldl -lm -lreadline
-lhistory -lcurses libgcc.a -lc libgcc.a
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): No such file or directory
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): No such file or directory
One way to get this command to succeed is to do the following:
ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o postgres /lib/crt0.o
-L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/egcs-2.93.08 -L/usr/local/lib
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o
lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o parser/SUBSYS.o
port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
utils/SUBSYS.o ../utils/version.o -lPW -lcrypt -lld -lnsl -ldl -lm -lreadline -lhistory -lcurses
-lgcc -lc
Notice the addition of the -L$path to the gcc library and changing libgcc.a to -lgcc.
Any suggestions would be appreciated.
Thanks.