use gpc -v to show invocation of collect2
OK, seems to see the right path (i.e. /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1 ), but no results.
Checking the path shows an old library, dating from july of the previous year... weird, it cannot be found in the new build.
Removal of libgpc.so resolves everyting :-)
Thanks!
Marten Jan
/cluster3/deruiter 124 % ll /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1 total 21040 -rwxr-xr-x 1 deruiter staff 8573062 May 7 16:34 cc1 -rwxr-xr-x 1 deruiter staff 355561 May 7 16:34 collect2 -rwxr-xr-x 1 deruiter staff 598881 May 7 16:34 cpp0 -rw-r--r-- 1 deruiter staff 1648 May 7 16:34 crtbegin.o -rw-r--r-- 1 deruiter staff 2036 May 7 16:34 crtbeginS.o -rw-r--r-- 1 deruiter staff 1952 May 7 16:34 crtbeginT.o -rw-r--r-- 1 deruiter staff 1216 May 7 16:34 crtend.o -rw-r--r-- 1 deruiter staff 1272 May 7 16:34 crtendS.o -rwxr-xr-x 1 deruiter staff 8431263 May 7 16:34 gpc1 -rwxr-xr-x 1 deruiter staff 186331 May 7 16:34 gpcpp drwxr-xr-x 7 deruiter staff 4096 May 7 16:34 include -rw-r--r-- 1 deruiter staff 1757576 May 7 16:34 libgcc.a -rw-r--r-- 1 deruiter staff 210436 May 7 16:34 libgcc_eh.a -rw-r--r-- 1 deruiter staff 600712 May 7 16:34 libgpc.a -rwxr-xr-x 1 deruiter staff 484434 Jul 25 2003 libgpc.so -rw-r--r-- 1 deruiter staff 6843 May 7 16:34 specs -rwxr-xr-x 1 deruiter staff 222854 May 7 16:34 tradcpp0 drwxr-xr-x 2 deruiter staff 4096 May 7 16:34 units
/cluster3/deruiter 119 % gpc -v t.p -o t Reading specs from /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs Configured with: /cluster3/deruiter/system/src/gcc-3.2.1/configure --prefix=/cluster3/deruiter/system --enable-languages=pascal Thread model: posix gpc version 20030830, based on gcc-3.2.1 /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/gpcpp -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -D__NEED_NO_ALIGNMENT__=1 -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ t.p -famtmpfile=/tmp/cctInn8S.gpa /tmp/cc4FxSeC.i GNU Pascal Compiler PreProcessor version 20030830, based on gcc-3.2.1 (i386 Linux/ELF) /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/gpc1 /tmp/cc4FxSeC.i -quiet -dumpbase t.p -version -famtmpfile=/tmp/cctInn8S.gpa -o /tmp/cc9ISZwl.s GNU Pascal version is actually 20030830, based on gcc-3.2.1 GNU Pascal version 3.2.1 (i686-pc-linux-gnu) compiled by GNU C version 3.2.1. as -V -Qy -o /tmp/ccM54ZJ8.o /tmp/cc9ISZwl.s GNU assembler version 2.13.90.0.2 (i386-redhat-linux) using BFD version 2.13.90.0.2 20020802
/cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o t /usr/lib/crt1.o /usr/lib/crti.o /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/crtbegin.o -L/cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1 -L/cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../.. /tmp/ccM54ZJ8.o -lgpc -lm -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /cluster3/deruiter/system/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/crtend.o /usr/lib/crtn.o /tmp/ccM54ZJ8.o: In function `main': /tmp/ccM54ZJ8.o(.text+0x80): undefined reference to `__GPC_RTS_VERSION_20030830__' collect2: ld returned 1 exit status