Skip to contentSkip to conversation

New: host-localedef 2.30-20 fails to compile on fedora 32 (gcc 10.0.1)

Buildroot bugzilla at busybox.net 1 participant 5 messages Mar 27, 2020 – Mar 29, 2020

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=12711

Bug ID: 12711
Summary: host-localedef 2.30-20 fails to compile on fedora 32
(gcc 10.0.1)
Product: buildroot
Version: 2020.02
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: ian_ormshaw at waters.com
CC: buildroot at uclibc.org
Target Milestone: ---

host-localedef 2.30-20 fails to compile on fedora 32 (gcc 10.0.1)

/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/host/bin/ccache /usr/lib64/ccache/gcc programs/ld-ctype.c -c -std=gnu11 -fgnu89-inline -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno

      -I/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/host/include

-DCOMPLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"'
-Iprograms -I../include -I/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build/locale

-I/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build
-I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86
-I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64
-I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include
-I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread
-I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch
-I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu
-I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86
-I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I..
-I../libio -I. -D_LIBC_REENTRANT -include
/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build/libc-modules.h -DMODULE_NAME=locale_programs -include ../include/libc-symbols.h
-DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"'
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/share/i18n/locales"' -DTOP_NAMESPACE=glibc -o
/home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build/locale/ld-ctype.o -MD -MP -MF /home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build/locale/ld-ctype.o.dt -MT /home/ian/build/hiwire-linux-c38cdaa1-x86_64/buildroot/build/host-localedef-2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/build/locale/ld-ctype.o programs/ld-ctype.c: In function ?ctype_finish?:
programs/ld-ctype.c:855:18: error: array subscript 0 is outside the bounds of
an interior zero-length array ?unsigned char[0]? [-Werror=zero-length-bounds]

  855 |  replace[0].bytes[0] = '?';
      |  ~~~~~~~~~~~~~~~~^~~

In file included from programs/repertoire.h:24,
from programs/localedef.h:32, from programs/ld-ctype.c:35:
programs/charmap.h:63:17: note: while referencing ?bytes?

   63 |   unsigned char bytes[0];
      |                 ^~~~~
programs/ld-ctype.c:856:18: error: array subscript 1 is outside the bounds of
an interior zero-length array ?unsigned char[0]? [-Werror=zero-length-bounds]
  856 |  replace[0].bytes[1] = '\0';
      |  ~~~~~~~~~~~~~~~~^~~

In file included from programs/repertoire.h:24,
from programs/localedef.h:32, from programs/ld-ctype.c:35:
programs/charmap.h:63:17: note: while referencing ?bytes?

   63 |   unsigned char bytes[0];
      |                 ^~~~~

cc1: all warnings being treated as errors

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 12711] host-localedef 2.30-20 fails to compile on fedora 32 (gcc 10.0.1)

https://bugs.busybox.net/show_bug.cgi?id=12711

Dr I J Ormshaw <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           Hardware|All                         |PC
             Target|                            |x86_64
               Host|                            |x86_64
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 12711] host-localedef 2.30-20 fails to compile on fedora 32 (gcc 10.0.1)

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12711

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |yann.morin.1998 at free.fr

--- Comment #1 from Yann E. MORIN <[email protected]> --- Ian, All,

You may want to backport this upstream commit:
https://sourceware.org/git/?p=glibc.git;a=commit;h=1471fa556afb428c4a4c46cf5543a4101d5bcf91

Care to test on your side, and then send us a patch?

Regards,
Yann E, MORIN.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 12711] host-localedef 2.30-20 fails to compile on fedora 32 (gcc 10.0.1)

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12711

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Yann E. MORIN <[email protected]> --- Fixed with commit 13cc36dcfe from Peter, thanks.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.