This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Top-of-tree GCC/glibc build problem
- From: Steve Ellcey <sellcey at marvell dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Mon, 7 Oct 2019 15:44:59 +0000
- Subject: Top-of-tree GCC/glibc build problem
- 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=qqoFL3usV/n7NsDQ6ACdFCh8dNTYzjbj6eluqHXtlzw=; b=C36IaSfSfP0GMjWtviBSC/Ep5Kervu8JjYYuGFLpWrP5otoxIl0EVENeGaVJ1I9TQc6qKW1I1JZp7riHZ9nADKXhS4RMI00hf+gJbJADkBrLTh75LsbSXDoN4YZiLnFOnwLz9PrrsLdPqIISYeW4242ZUvUBnJwchUmuQdf10jkx1BfELACo1cgcbpLOvqopDfKMyKqodYRES4RLUZvgz6ehag3LsrJQVmKgM0LVLDG/NuguLZhLbYiauSyTxKkTEReBqSoeJQvJ6Wk6pdAItjy2P7nAt101sVYkkYt3I1HP1dsEo4HmeCTDgsHCrhr3Ek+odL/tmxhnI+PkyLKuvw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aev3O8iMTAc2d8hWrBPuKWTNhm3j7vEOiPMoChsCKV3z8gATvza/dUA91Aq2U8xZ/R7h79FCw4mF61OReJVht+5ahKSwh0B9mhr6ThR6q/xxzhmGXAr2DZygsPOycqt3HrSIDLogOaZqkoJPzWkcuVByp2UY9EegQc1hOYtI7wlhq+FYugjZqrjhrSrv6k2DfVOTxjrgRzkRA+kmqpqVx4AnY01kNL3bydP15+XbEGJ1M6qnrMPTtOaII3SWGyNMetGjHb2G8TeYo1q9Do5PC19SOal0/CwAEzjmzJUaJyZkyuUP664OBAEApWVtguDJzeRwaK/5gQDnVzHwx6XZHw==
Looks like we have another new warning that is blocking top-of-tree glibc
from being built with top-of-tree gcc. Would using 'cp[0]' instead of '*cp'
be the right fix here?
Steve Ellcey
sellcey@marvell.com
zic.c: In function ‘inzsub’:
zic.c:1369:23: error: writing 8 bytes into a region of size 1 [-Werror=stringop-
overflow=]
1369 | z.z_format_specifier = cp ? *cp : '\0';
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
zic.c:124:8: note: destination object declared here
124 | char z_format_specifier;
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target '/home/sellcey/tot/obj-glibc/timezone/zic.
o' failed
make[2]: *** [/home/sellcey/tot/obj-glibc/timezone/zic.o] Error 1
make[2]: Leaving directory '/home/sellcey/tot/glibc/timezone'
Makefile:429: recipe for target 'timezone/others' failed
make[1]: *** [timezone/others] Error 2
make[1]: Leaving directory '/home/sellcey/tot/glibc'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: glibc build failed