[PATCH] Add --enable-static-c++-link-check option [BZ #31412]

Florian Weimer fweimer@redhat.com
Sun May 26 14:07:57 GMT 2024


* H. J. Lu:

>> > with GCC 6.4.  I will check if it is a testcase issue.
>> >
>> >> Even CXX=no will not work because in some configurations, it's actually
>> >> libgcc_s.so.1 that can't be loaded, and that breaks pthread_cancel.
>> >>
>> >
>> > c++ still works.  Only "c++ -static" doesn't work with the system libc.a.
>>
>> I think you'll see the issue if you go back further, to the 2.34 branch.
>>
>
> I set up LD_LIBRARY_PATH to GCC 6.4 run-time libraries and only saw
>
> FAIL: nptl/tst-pthread-gdb-attach
> FAIL: nptl/tst-pthread-gdb-attach-static
>
> which is caused by gdb dependency on GCC 14 run-time libraries.
>
> --disable-static-c++-link-check together with --disable-static-c++-tests
> allow me to test ppc64le glibc on GCC compiler farm.

Has this GCC 6.4 been built against system glibc?

The use case for what you are trying to do seems to be really narrow to
me.  In general, building a fresh glibc against system glibc will not
result in a GCC that is compatible with the (earlier) glibc under
development.  GCC before 12 probably has it a lot easier.

Thanks,
Florian



More information about the Libc-alpha mailing list