This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with cross compiler


I've build a cross compiler to make powerpc-linux-gnu executables on a powerpc-linux-gnulibc1
system.  When I try to compile a simple 'test.c' program the linker looks in
/usr/lib.  I don't think it should do this.  Moreover, when I add the path to 
libc_nonshared.a using the -L command, the linker still does not find the file.
Does anyone have an idea as to what could be wrong?

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
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.