This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Inconsistency detected by ld.so: dynamic-link.h: 161: elf_get_dynamic_info: Assertion `info[15] == ((void *)0)' failed!
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "Jeremy C. Reed" <reed at reedmedia dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 25 Sep 2003 23:15:00 -0400
- Subject: Re: Inconsistency detected by ld.so: dynamic-link.h: 161: elf_get_dynamic_info: Assertion `info[15] == ((void *)0)' failed!
- References: <Pine.LNX.4.43.0309251716190.13812-100000@pilchuck.reedmedia.net>
On Thu, Sep 25, 2003 at 06:31:04PM -0700, Jeremy C. Reed wrote:
> (If there is a better forum for assistance, please let me know. Thank
> you.)
>
> I have built glibc-2.3.2 several times over the past 25+ days on different
> hardware, under different 2.2 and 2.4 Linux kernels, and using different
> binutils. When building or unsuccessfully using glibc-2.3.2, I continue to
> get the following error:
>
> Inconsistency detected by ld.so: dynamic-link.h: 161:
> elf_get_dynamic_info: Assertion `info[15] == ((void *)0)' failed!
>
> This last time couple builds it happened during the sunrpc build part when
> configured with --enable-add-ons=linuxthreads. I also tried with and
> without --prefix=/usr, --disable-profile, --with-gd=no, --without-tls and
> --without-__thread.
>
> CPP='gcc -E -x c-header' /home/reed/glibc-build/elf/ld-linux.so.2 --library-path
> /home/reed/glibc-build:/home/reed/glibc-build/math:/home/reed/glibc-build/elf:/home/reed/glibc-build/dlfcn:/home/reed/glibc-build/nss:/home/reed/glibc-build/nis:/home/reed/glibc-build/rt:/home/reed/glibc-build/resolv:/home/reed/glibc-build/crypt:/home/reed/glibc-build/linuxthreads
> /home/reed/glibc-build/sunrpc/rpcgen -Y ../scripts -c
> rpcsvc/bootparam_prot.x -o /home/reed/glibc-build/sunrpc/xbootparam_prot.T
> Inconsistency detected by ld.so: dynamic-link.h: 161:
> elf_get_dynamic_info: Assertion `info[15] == ((void *)0)' failed!
> gmake[2]: *** [/home/reed/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
> gmake[2]: Leaving directory `/home/reed/glibc-2.3.2/sunrpc'
>
>
> I don't know if it is related, but there are many warnings like:
> ... inlining failed in call to ...
>
> I am using a stdio-common/sscanf.c patch.
>
> I was using --host=i386-pc-linux so I had to touch
> stdio-common/errlist-compat.c (due to "errlist.c count 126 vs Versions
> sys_errlist@GLIBC_2.0 count 123" error) before building. I didn't need to
> touch stdio-common/errlist-compat.c when not using --host.
>
> I used GCC 3.3.1. I don't know if it is related, but gcc is built with
> DRIVER_DEFINES = \
> -DLINK_LIBGCC_SPEC="\"%D $(RPATH_FLAG)$(prefix)/lib\"" \
This is probably causing ld.so to be linked with an rpath.
Don't do that. If you don't understand all the issues with using an
rpath, I highly recommend you not use one.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer