[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Linker bug/misconfiguration?



Greetings,

I'm getting a wierd linker error:

# gcc --verbose -O2 -Wall -Wshadow  -fomit-frame-pointer
-L/usr/lib/petsc/lib/libO/linux_ppc  -o ex1 ex1.o
-L/usr/lib/petsc/lib/libO/linux_ppc -lpetscvec
-L/usr/lib/petsc/lib/libO/linux_ppc -lpetsc
-L{MPI_HOME}/build/LINUX/ch_p4/lib -lmpe
-lpmpich                                               -L/usr/X11R6/lib
-lX11             -llapack -blas -L/usr/lib/mpich/lib
-L/usr/lib/mpich/build/LINUX/ch_p4/lib -lmpich -ldl -lc -lg2c -lm
Using builtin specs.
gcc version 2.95.2 20000220 (Debian GNU/Linux)
 ld -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o ex1 /usr/lib/crt1.o
/usr/lib/crti.o crtbegin.o -L/usr/lib/petsc/lib/libO/linux_ppc
-L/usr/lib/petsc/lib/libO/linux_ppc -L/usr/lib/petsc/lib/libO/linux_ppc
-LMPI_HOME/build/LINUX/ch_p4/lib -L/usr/X11R6/lib -L/usr/lib/mpich/lib
-L/usr/lib/mpich/build/LINUX/ch_p4/lib -L/home/hazelsct/powerpc/lib
ex1.o -lpetscvec -lpetsc -lmpe -lpmpich -lX11 -llapack -lmpich -ldl -lc
-lg2c -lm libgcc.a -lc libgcc.a crtend.o /usr/lib/crtn.o
ld: cannot open crtbegin.o: No such file or directory
gcc: file path prefix `/usr/lib/gcc-lib/las/2.95.2/' never used

Why is this finding crtend.o but not crtbegin.o when they're both in
/usr/lib/gcc-lib/powerpc-linux/2.95.2/ (or is it just throwing the error
for the first object it doesn't find)?  And what's with that last gcc:
warning- is it looking in the wrong place for these things?

Unfortunately I don't have time to identify the precise circumstances
which lead to this error, I can link some binaries (with largely the
same libs- actually, a superset of them) without getting it.

Oh- this is on a woody system with glibc 2.2-4.

Clueless,

-Adam P.

          Welcome to the best software in the world today cafe!



Reply to: