This is the mail archive of the 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 rtld.c: 1180: dl_main when compilingglibc-2.3.3

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

  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/ \
      --library-path /var/tmp/glibc-build:\
                     /var/tmp/glibc-build/nptl             \
      /var/tmp/glibc-build/sunrpc/rpcgen -Y ../scripts -c  \ 
      rpcsvc/bootparam_prot.x -o                           \
  Inconsistency detected by 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
  $ 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.

Enrique Perez-Terron

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