Bug 1984919 - device-mapper-multipath: FTBFS due to type of PTHREAD_STACK_MIN in glibc 2.34
Summary: device-mapper-multipath: FTBFS due to type of PTHREAD_STACK_MIN in glibc 2.34
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: device-mapper-multipath
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1987420 (view as bug list)
Depends On:
Blocks: F35FTBFS 1984921
TreeView+ depends on / blocked
 
Reported: 2021-07-22 13:24 UTC by Florian Weimer
Modified: 2021-07-30 19:45 UTC (History)
11 users (show)

Fixed In Version: device-mapper-multipath-0.8.6-5.fc35
Clone Of:
: 1984921 (view as bug list)
Environment:
Last Closed: 2021-07-30 19:45:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2021-07-22 13:24:21 UTC
Building device-mapper-multipath against glibc 2.34 results in the following build failure:

util.c: In function 'setup_thread_attr':
util.c:226:23: error: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Werror=sign-compare]
  226 |         if (stacksize < PTHREAD_STACK_MIN)
      |                       ^
cc1: all warnings being treated as errors
make[1]: *** [../Makefile.inc:154: util.o] Error 1

The reason for the warning is that PTHREAD_STACK_MIN is now non-constant and has type long int. Previously its type was int, but it was a constant, so the compiler was able to suppress the warning.

Comment 1 Ben Marzinski 2021-07-30 19:20:27 UTC
*** Bug 1987420 has been marked as a duplicate of this bug. ***

Comment 2 Ben Marzinski 2021-07-30 19:45:38 UTC
Thanks for the heads-up. Fixed by patch 0023-libmultipath-deal-with-dynamic-PTHREAD_STACK_MIN.patch in device-mapper-multipath-0.8.6-5.fc35


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