[PATCH v4] Add TEST_CC and TEST_CXX support

Sam James sam@gentoo.org
Mon Dec 9 01:04:36 GMT 2024


Sam James <sam@gentoo.org> writes:

> Sam James <sam@gentoo.org> writes:
>
>> "H.J. Lu" <hjl.tools@gmail.com> writes:
>>
>>> Support testing glibc build with a different C compiler or a different
>>> C++ compiler with
>>>
>>> $ ../glibc-VERSION/configure TEST_CC="gcc-6.4.1" TEST_CXX="gi++-6.4.1"
>>>
>>> 1. Also check compiler options with TEST_CC and TEST_CXX.
>>> 2. Add check and xcheck targets to Makefile.in and override build compiler
>>> options with ones from TEST_CC and TEST_CXX.
>>>
>>> Tested on Fedora 41/x86-64, building with GCC 14.2.1 and testing with
>>> GCC 11.2.1.
>>>
>>> Rebase against master.
>>>
>>> It doesn't work with older GCC yet.
>>
>> It looks good, but testing it with GCC trunk as default system `gcc` and then TEST_CC as
>> GCC 14, I see:
>> ../scripts/evaluate-test.sh nptl/tst-cleanupx4 $? false false > /tmp/glibc-bld/nptl/tst-cleanupx4.test-result
>> /tmp/glibc-bld/nptl/tst-cleanupx4: error while loading shared libraries:
>> libgcc_s.so.1: cannot open shared object file: No such file or directory
>>
>> $ cat nptl/tst-cleanup0.out
>> libgcc_s.so.1 must be installed for pthread_cancel to work
>> Didn't expect signal from child: got `Aborted'
>
> Actually, I see others like this without TEST_CC, so please ignore. I'll
> investigate that.

That was tired user error.


More information about the Libc-alpha mailing list