Bug 1980993 - catch1: FTBFS with glibc 2.34 due to dynamic stack sizes
Summary: catch1: FTBFS with glibc 2.34 due to dynamic stack sizes
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: catch1
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: ---
Assignee: Zoltan Fridrich
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-10 11:33 UTC by Florian Weimer
Modified: 2021-12-02 13:37 UTC (History)
4 users (show)

Fixed In Version: catch1-1.12.2-10.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description Florian Weimer 2021-07-10 11:33:42 UTC
Build errors look like this:

/builddir/build/BUILD/Catch2-1.12.2/include/internal/catch_fatal_condition.hpp:139:33: error: size of array 'altStackMem' is not an integral constant-expression
  139 |         static char altStackMem[SIGSTKSZ];
      |                                 ^~~~~~~~
/builddir/build/BUILD/Catch2-1.12.2/include/internal/catch_fatal_condition.hpp:191:45: error: size of array 'altStackMem' is not an integral constant-expression
  191 |     char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
      |                                             ^~~~~~~~

Fedora rawhide has a patch:

commit 059104ba87494c0b5ebe16844ec190f253e51cac
Author: Tom Hughes <tom@compton.nu>
Date:   Fri Feb 19 10:56:09 2021 +0000

    Add patch for non-constant SIGSTKSZ

But it is not entirely future-proof because 32 KiB may not be enough on future CPUs (although it should be good enough for AVX-512 support).


Note You need to log in before you can comment on or make changes to this bug.