This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Assertion failed in ld.so: rtld.c: 1180: dl_main when compilingglibc-2.3.3


I downloaded glibc-2.3.3 and tried to compile it using the following
commands:

  cd /var/tmp
  rm -rf glibc-2.3.3 glibc-build
  tar jxf ~/glibc-2.3.3.tar.bz2
  mkdir glibc-build
  cd glibc-build
  /var/tmp/glibc-2.3.3/configure                           \
     --pref=/usr                                           \
     --enable-add-ons                                      \
     --with-tls                                            \
     --with-headers=/usr/src/linux-2.6.7-1.494.2.2/include \
     --enable-kernel=2.6.6 &&
  make &&
  make check || exit 1

I then get the following error (for legibility, I have broken and
indented the colon-separated library-path, and added backslash to all
continued lines, also response/error message lines):

  CPP='gcc -E -x c-header'  /var/tmp/glibc-build/elf/ld-linux.so.2 \
      --library-path /var/tmp/glibc-build:\
                     /var/tmp/glibc-build/math:\
                     /var/tmp/glibc-build/elf:\
                     /var/tmp/glibc-build/dlfcn:\
                     /var/tmp/glibc-build/nss:\
                     /var/tmp/glibc-build/nis:\
                     /var/tmp/glibc-build/rt:\
                     /var/tmp/glibc-build/resolv:\
                     /var/tmp/glibc-build/crypt:\
                     /var/tmp/glibc-build/nptl             \
      /var/tmp/glibc-build/sunrpc/rpcgen -Y ../scripts -c  \ 
      rpcsvc/bootparam_prot.x -o                           \
      /var/tmp/glibc-build/sunrpc/xbootparam_prot.T
  Inconsistency detected by ld.so: rtld.c: 1180: dl_main: \
      Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
  make[2]: *** [/var/tmp/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
  make[2]: *** Waiting for unfinished jobs....
  make[2]: Leaving directory `/var/tmp/glibc-2.3.3/sunrpc'

At this point the log file (stdout + stderr) is 9478976 bytes.

I run an up-to-date Fedora Core 2 with 

  $ rpm -q --queryformat "%{name}-%{version}-%{release}.%{arch}\n" \
                           glibc gcc binutils
  glibc-2.3.3-27.i386
  gcc-3.3.3-7.i386
  binutils-2.15.90.0.3-5.i386
  $ uname -r      -m   -p   -i   -o
  2.6.6-1.435.2.3 i586 i586 i386 GNU/Linux
  $ cat /proc/cpuinfo
  processor       : 0
  vendor_id       : AuthenticAMD
  cpu family      : 5
  model           : 8
  model name      : AMD-K6(tm) 3D processor
  stepping        : 12
  cpu MHz         : 451.091
  cache size      : 64 KB
  fdiv_bug        : no
  hlt_bug         : no
  f00f_bug        : no
  coma_bug        : no
  fpu             : yes
  fpu_exception   : yes
  cpuid level     : 1
  wp              : yes
  flags           : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr
  bogomips        : 888.83

Any ideas?

I am compiling glibc because I want to use native posix thread (nptl)
cross-process-safe mutexes, which is supported by my CPU/kernel, while
the Fedora-provided glibc is for i386 which does not support nptl.

Thanks,
Enrique Perez-Terron


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