Article 5B8SW glibc-2.30 doesn't build with gcc-10.2.0

glibc-2.30 doesn't build with gcc-10.2.0

by
nobodino
from LinuxQuestions.org on (#5B8SW)
While trying to build glibc-2.30 with gcc-10.2.0 an error occured:
-----------------------
libc-tls.c: In function '__libc_setup_tls':
libc-tls.c:209:30: error: array subscript 1 is outside the bounds of an interior zero-length array 'struct dtv_slotinfo[0]' [-Werror=zero-length-bounds]
209 | static_slotinfo.si.slotinfo[1].map = main_map;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from ../sysdeps/x86/ldsodefs.h:64,
from ../sysdeps/gnu/ldsodefs.h:46,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from libc-tls.c:21:
../sysdeps/generic/ldsodefs.h:406:7: note: while referencing 'slotinfo'
406 | } slotinfo[0];
-----------------------

And according to this message, glibc-2.30 has non backported patch to build with gcc-10.2.0 : https://gcc.gnu.org/legacy-ml/gcc-pa.../msg00449.htmllatest?d=yIl2AUoC8zA latest?i=w0ipQYU2weo:rYZZLlrAnPM:F7zBnMy latest?i=w0ipQYU2weo:rYZZLlrAnPM:V_sGLiP latest?d=qj6IDK7rITs latest?i=w0ipQYU2weo:rYZZLlrAnPM:gIN9vFww0ipQYU2weo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments