https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99458
Bug ID: 99458
Summary: libgo doesn't build against latest glibc
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: jakub at gcc dot gnu.org
CC: cmang at google dot com
Target Milestone: ---
As mentioned already in PR99264 which is now fixed, latest glibc changed the
MINSIGSTKSZ and SIGSTKSZ macros so that they are no longer compile time
constants.
This seems to break libgo build (got that when building the 32-bit libgo on
x86_64 e.g.):
../../../../libgo/runtime/proc.c: In function 'runtime_malg':
../../../../libgo/runtime/proc.c:805:38: error: comparison of integer
expressions of different signedness: 'uintptr' {aka 'unsigned int'} and 'long
int' [-Werror=sign-compare]
805 | if(stacksize < SIGSTKSZ)
| ^
Guess SIGSTKSZ should be cast to (uintptr).