assertion fails in elf/get-dynamic-info.h

Florian Weimer fw@deneb.enyo.de
Sun Jun 3 13:40:00 GMT 2018


* Chris Aoki:

> The glibc wiki includes helpful instructions for
> testing a prototype glibc build.   The instructions are
> found under the heading “Compile against glibc in an
> installed location” at the following URL:
>
> https://sourceware.org/glibc/wiki/Testing/Builds#Compile_against_glibc_in_an_installed_location
>
> However, when I have followed these instructions, the
> prototype glibc fails an assertion early in process startup.
> In the file get-dynamic-info.h:
>
>   /* Flags must not be set for ld.so.  */
>   assert (info[DT_RUNPATH] == NULL);
>   assert (info[DT_RPATH] == NULL);
>
> As far as I can determine, the above assertions defeat the use
> of the following flags given in the aforementioned instructions:
>
>> SYSROOT=<path to the GLIBC install directory>
>>  ...
>>   -Wl,-rpath=${SYSROOT}/lib64 \
>>   -Wl,--dynamic-linker=${SYSROOT}/lib64/ld-<version>.so \

Do you specify those flags when building glibc itself?  That's not
correct.  You should use them only when building against a
built-but-not-installed glibc.



More information about the Libc-alpha mailing list