<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/122774>122774</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            libcxx presubmit should be tested against minimal supported glibc (2.24)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          zeroomega
      </td>
    </tr>
</table>

<pre>
    In https://libcxx.llvm.org/#platform-and-compiler-support, it mentioned the minimal supported glibc on Linux is glibc-2.24, which is from Debian 9 Stretch. However, all libcxx presubmit builders uses a docker image from Ubuntu 20.04, which has glibc-2.35, see:

```
➜  ~ docker run -it --entrypoint bash 'ghcr.io/llvm/libcxx-linux-builder:b9a2658a3e8bd13b0f9e7a8a440832a95b377216'
runner@0b34c8fcc3c5:~$ /usr/lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Ubuntu GLIBC 2.35-0ubuntu3.8) stable release version 2.35.
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.4.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.
```

This could potentially cause issues as non of the presubmit builder could catch a change that breaks glibc 2.24. We should explicitly use the minimal supported glibc on part of, if not all of libcxx presbumit builders for linux.

FYI, Ubuntu 18.04 LTS Bionic has glibc 2.27. Ubuntu 16.04 LTS Xenial has glibc 2.23.


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEVMGO2zgS_Rr6UrAgU7IlH3yQHSsx4O3Otm3s5jQgqZLECUUKJNXdnkO-fUBJ6U4jGAzAU6GqWPXeq8eck41G3JH1nqw_LdjgW2N3f6E1psOGLbip7ruThtb73pGkILQ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