public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* linker default paths? (more info)
@ 1998-12-16  4:18 fheitka
  0 siblings, 0 replies; only message in thread
From: fheitka @ 1998-12-16  4:18 UTC (permalink / raw)
  To: egcs

I thought it might be best if I included more info.
Here is the verbose output.  As you can see the linker is
looking in /usr/lib for libc_nonshared.a.  libc_nonshared.a
exists in two places on the system but even adding the
-L/glibc-test/usr/lib (one of the places) does not help
the linker find the file.   Since this compiler was built as
a cross compiler, I don't think it should look in /usr/lib
at all.  For instance it doesn't look in /usr/include for 
headers which is correct AFAICT.

Fred

Reading specs from
/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
 /usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/cpp
-lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -DPPC -D__ELF__ -Dunix
-Dlinux -Dpowerpc -D__PPC__ -D__ELF__ -D__unix__ -D__linux__ -D__powerpc__
-D__PPC -D__unix -D__linux -D__powerpc -Asystem(unix) -Asystem(linux)
-Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D_CALL_SYSV
-D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PPC -D__unix__
-D__linux__ -Dunix -Dlinux -Asystem(unix) -Asystem(linux) test.c
/tmp/ccjYIqa1.i GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release)
(PowerPC GNU/Linux) #include "..." search starts here:
#include <...> search starts here:
 /usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/include
 /usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/sys-include
 /usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/include
End of search list.
 /usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/cc1
/tmp/ccjYIqa1.i -quiet -dumpbase test.c -version -o /tmp/ccAInezX.s GNU C
version egcs-2.91.60 19981201 (egcs-1.1.1 release)
(powerpc-unknown-linux-gnu) compiled by GNU C version egcs-2.91.57
19980901 (egcs-1.1 release).
 /usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/bin/as -mppc -V -Qy -o
/tmp/ccT5ps6X.o /tmp/ccAInezX.s GNU assembler version 2.9.1
(powerpc-unknown-linux-gnu), using BFD version 2.9.1.0.16
 /usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/collect2
-m elf32ppc -dynamic-linker /glibc-test/usr/lib/ld-2.0.105.so -o test
/usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/lib/crt1.o
/usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/lib/crti.o
/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/crtbegin.o
-L/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60
-L/usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/lib /tmp/ccT5ps6X.o
/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/libgcc.a
-lc
/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/libgcc.a
/usr/egcs-1.1.1-ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.91.60/crtend.o
/usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/lib/crtn.o
/usr/egcs-1.1.1-ppc/powerpc-unknown-linux-gnu/bin/ld: cannot open
/usr//lib/libc_nonshared.a: No such file or directory collect2: ld
returned 1 exit status


-- 
-----------------------------------------------------------
fheitka@ibm.net
-----------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-16  4:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-16  4:18 linker default paths? (more info) fheitka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).