build: bitcoin-qt built against Qt 5.12 requires glibc 2.28+ #22280

issue hebasto openend this issue on June 19, 2021
  1. hebasto commented at 3:36 am on June 19, 2021: member

    As noted in #22244 (comment), the bitcon-qt binary exports glibc symbols that were added in version 2.28:

    • renameat2
    • The renameat2 function has been added, a variant of the renameat function which has a flags argument. If the flags are zero, the renameat2 function acts like renameat. If the flag is not zero and there is no kernel support for renameat2, the function will fail with an errno value of EINVAL. This is different from the existing gnulib function renameatu, which performs a plain rename operation in case of a RENAME_NOREPLACE flags and a non-existing destination (and therefore has a race condition that can clobber the destination inadvertently).
    • statx
    • The statx function has been added, a variant of the fstatat64 function with an additional flags argument. If there is no direct kernel support for statx, glibc provides basic stat support based on the fstatat64 function.

    From qtbase/dist/changes-5.11.3:

    0****************************************************************************
    1*                                  Linux                                   *
    2****************************************************************************
    3
    4
    5 - Fixed a number of incompatibilities with Linux C libraries due to use of
    6   new kernel system calls statx(2) and renameat2(2). In order to enable
    7   them now in Qt, they need to be provided in the C library's own
    8   headers. Currently, glibc 2.28 contains them.
    

    Moreover, statx requires minimum Linux kernel version 4.11.

    Unless we find the way to disable Qt features that require these new glibc calls, should we bump minimum glibc version for the 22.0 release binaries? Or make different requirements for bitcoind and bitcoin-qt?

  2. hebasto added the label Build system on Jun 19, 2021
  3. laanwj added this to the milestone 22.0 on Jun 21, 2021
  4. hebasto commented at 12:43 pm on July 1, 2021: member
    Related to #22365.
  5. hebasto commented at 6:39 pm on July 5, 2021: member
    Since #22365 has been merged, this could be closed, I think.
  6. hebasto closed this on Jul 5, 2021

  7. DrahtBot locked this on Aug 18, 2022


hebasto

Labels
Build system

Milestone
22.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-18 00:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me