[PATCH v7 2/8] posix: let the getopt caller set the translation context

Florian Weimer fweimer@redhat.com
Tue Jun 24 06:15:36 GMT 2025


* Adhemerval Zanella Netto:

> On 23/06/25 16:27, Florian Weimer wrote:
>> * Adhemerval Zanella Netto:
>> 
>>> On 23/06/25 15:21, Vivien Kraus wrote:
>>>> Hello!
>>>>
>>>> Le lundi 23 juin 2025 à 12:36 -0300, Adhemerval Zanella Netto a écrit :
>>>>> You need to update all the afected libc.abilist.  On aarch64:
>>>>>
>>>>> --- ../sysdeps/unix/sysv/linux/aarch64/libc.abilist	2025-06-23
>>>>> 12:01:07.258632245 -0300
>>>>> +++ /[...]/libc.symlist	2025-06-23 12:09:09.305479003 -0300
>>>>> @@ -2764,0 +2765 @@ GLIBC_2.42 cfsetspeed F
>>>>> +GLIBC_2.42 optctxt D 0x8
>>>>>   0x0308: Rev: 1  Flags: none  Index: 23  Cnt: 2  Name:
>>>>> GLIBC_ABI_DT_RELR
>>>>
>>>> How did you find that? Is there a reason to expect more architectures
>>>> with a missing definition, or is aarch64 the only one? I tried to run
>>>> make update-all-abi but it does not do anything.
>>>
>>> The patchwork CI caught the issue [1], but it does not check all supported
>>> ABIs. For patches that add new symbols, I usually build and run update-abi
>>> and/or check-abi for all ABIs that have a libc.abilist file.
>>>
>>> The make update-abi targets only the build target (--target), on current
>>> build scheme a update-all-abi is not really possible.
>> 
>> For symbol additions like these, “make update-all-abi” should actually
>> work.  But there has to be an ABI check failure to patch up.  If you
>> already fixed the current build, then there is no ABI failure to patch
>> across all architectures.
>
> I have not dig into details, but update-all-abi fails to update aarch64 
> abilist (running from a x86_64-linux-gnu build).
>
> Running from aarch64 build o x86_64 does update a lot of abifiles:

It works for me.

I applied Vivien's v9 series and backed out the abilist changes using:

  git checkout origin/master '*.abilist'

Then I built glibc, and ran “make t=elf/check-abi-libc test”.  It failed
as expected:

FAIL: elf/check-abi-libc
original exit status 1
--- ../sysdeps/unix/sysv/linux/x86_64/64/libc.abilist	2025-06-24 08:10:43.818537801 +0200
+++ /home/fweimer/src/gnu/glibc/build/libc.symlist	2025-06-24 08:11:54.918179551 +0200
@@ -2760,0 +2761,3 @@ GLIBC_2.42 cfsetspeed F
+GLIBC_2.42 getopt_long_collision F
+GLIBC_2.42 optctxt D 0x8
+GLIBC_2.42 opttextdomain D 0x8

As far as I can see, this updates all libc.abilist files with the
expected changes (and shows that many are still missing from the v9
series).

Thanks,
Florian



More information about the Libc-alpha mailing list