This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
ToT glibc build problem with ToT GCC
- From: Steve Ellcey <sellcey at marvell dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Cc: "msebor at redhat dot com" <msebor at redhat dot com>
- Date: Thu, 29 Aug 2019 16:26:59 +0000
- Subject: ToT glibc build problem with ToT GCC
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jl+Aupnb1H3vhfP/aOvILDFC5GjYTHKC2M+t6tRtpZE=; b=dbRpOZOevpFOoveoFXWq3noJUI5gwwYGODBGqYs5CoUf2g1g2ZflS/K91atF75Bkh4htEXzP43nSwsniXs91uXiqQaV1x1MXr8zPNVIRgJZrNsMGRxSZavvcT+ekZZU6jtM5j+Y7f2E13hE7/jC5cRIANehpKneU5Hmiox8PyIyx+6aSpL9aPJjdwsyuDjZ29Og5Svd9QUVQYU5+YjJeQy3N4lZSX3Mj02BOdorOhWO6JI1StYkjlCev4UyPXsJ7t6vkfthY675MVFDtvqNbKOFZ7NfXon4X3zthb4yn+o275VI/LA4lvhdR7gYwKjvtS/5qhAoJvRK5xlwCln3Zxg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DPJpU2syKgWlQhasaHB8xLp7irQkGjNrEeOcxlWwrBmuxEtZTLwyF8xNpDR31yKEzC1wnOMbR2Q1VtiftSEiasKXyPW0yZaPw+hVQYySODxrPvcy/ucGpUXnXPtkiKO4Pq6Ely80sbz+i9hhGzB68IDRZ4MfZErCEi/jN3vMFdUqEFmRAw3kAe/KGKYk4mgfK/W13QJ/fZHtY8M4TsptPqoLM82Omli+sEUEEHw0YEhz7J+/zVLTrfxqoVh3i2G5+I6BKbKC0NdmDL81b+62TndhiPZHT6xbrFIWK1gLhVjIVCYAk3XZ9oM7jke1CVCyHfXQl5pYMvRSJvTGqgAcMA==
I am building the latest glibc with the latest GCC and getting an error.
I see where, in locale/programs/charmap.h we declare bytes as a zero
length array in charseq but I am not sure where the write in
locale/programs/ld-ctype.c is. The only line references that GCC seems
to be outputing refer to the declaration, not the use.
Is anyone else seeing this? Any ideas on what we should be changed?
The declaration? The use? Or is this a bogus warning from GCC that
we want to ignore? I think that GCC is reporting this now due to Martin
Sebor's GCC patch for PR 83431 but I haven't verified that.
Steve Ellcey
sellcey@marvell.com
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
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: destination object declared here
63 | unsigned char bytes[0];
| ^~~~~
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target '/home/sellcey/tot/obj/glibc64/locale/ld-ctype.o' failed
make[2]: *** [/home/sellcey/tot/obj/glibc64/locale/ld-ctype.o] Error 1