This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
glibc-2.2.5 undefined _dl_cpuclock_offset very very strange !
- From: Ingo Krabbe <i dot krabbe at dokom dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 13 May 2002 20:51:39 +0200
- Subject: glibc-2.2.5 undefined _dl_cpuclock_offset very very strange !
- Organization: ask (automatische system komponenten)
Hi,
I've read the Ulrich Dreppers answers about mixing architectures but I still
cannot believe whats happening here:
I have two systems on my hard disk. I build a glibc into /glibc225 a new gcc
into /gcc and some binutils to /binutils. When booting with one system I get
the
/glibc225/lib/libpthread.so: undefined reference to `_dl_cpuclock_offset'
error. I cannot reproduce that on the other system no matter how hard I try !
I will attach two outputs of
gcc -v main.c -lpthread &> out.err -- for the problem
gcc -v main.c -lpthread &> out.good -- for the good result
which look quite the same with the difference that one throws the error. If
anybody can tell what's different please tell me. May it be the kernel ???
The working kernel says
Linux dimwit 2.4.18 #5 Mon Mai 13 14:37:25 CEST 2002 i686 unknown
the other one should be something like
Linux dimwit 2.5.15 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX athlon unknown
To have the same configuration I linked in /glibc225 /gcc and /binutils into
both systems (different root disks). And even copied the startfiles
/usr/lib/crt* from the bad one to the good one.
Awaiting your words of wisdom ...
INGO
Reading specs from /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc/configure --prefix=/gcc
Thread model: single
gcc version 3.2 20020512 (experimental)
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1 -lang-c -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -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__ main.c -quiet -dumpbase main.c -version -o /tmp/ccr3cdiP.s
GNU CPP version 3.2 20020512 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.2 20020512 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2 20020512 (experimental).
ignoring nonexistent directory "/gcc/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/gcc/include
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
/usr/include
End of search list.
as -V -Qy -o /tmp/ccsAAeyy.o /tmp/ccr3cdiP.s
GNU assembler version 2.12.90 (i686-pc-linux-gnu) using BFD version 2.12.90 20020427
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/collect2 --eh-frame-hdr -m elf_i386 -L/glibc225/lib -dynamic-linker /glibc225/lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbegin.o -L/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. /tmp/ccsAAeyy.o -lpthread -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtend.o /usr/lib/crtn.o
/glibc225/lib/libpthread.so: undefined reference to `_dl_cpuclock_offset'
collect2: ld returned 1 exit status
Reading specs from /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc/configure --prefix=/gcc
Thread model: single
gcc version 3.2 20020512 (experimental)
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1 -lang-c -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -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__ main.c -quiet -dumpbase main.c -version -o /tmp/cc9i5srd.s
GNU CPP version 3.2 20020512 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.2 20020512 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2 20020512 (experimental).
ignoring nonexistent directory "/gcc/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/gcc/include
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
/usr/include
End of search list.
as -V -Qy -o /tmp/ccga5tri.o /tmp/cc9i5srd.s
GNU assembler version 2.12.90 (i686-pc-linux-gnu) using BFD version 2.12.90 20020427
/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/collect2 --eh-frame-hdr -m elf_i386 -L/glibc225/lib -dynamic-linker /glibc225/lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbegin.o -L/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. /tmp/ccga5tri.o -lpthread -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtend.o /usr/lib/crtn.o