This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
New Tot Build problem with Tot GCC (strncpy warnings)
- From: Steve Ellcey <sellcey at cavium dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Tue, 12 Dec 2017 09:43:30 -0800
- Subject: New Tot Build problem with Tot GCC (strncpy warnings)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve dot Ellcey at cavium dot com;
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I am not sure if this is due to a GCC change or a glibc change but I am
still unable to build the ToT glibc with the ToT GCC. The
nextafter/nexttoward problem has been fixed, the current errors I get
are due to strncpy warnings. I thought we had fixed these but either
GCC changed or glibc changed and we have some new ones:
Building glibc on aarch64:
In file included from nss_files/files-init.c:22:
nss_files/files-init.c: In function ‘_nss_files_init’:
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 11 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 10 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 10 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 16 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 13 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 4 bytes
from a string of length 13 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nss_db/db-init.c:22:
nss_db/db-init.c: In function ‘_nss_db_init’:
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 7 bytes
from a string of length 17 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 7 bytes
from a string of length 16 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../nscd/nscd.h:111:8: error: ‘strncpy’ output truncated copying 7 bytes
from a string of length 19 [-Werror=stringop-truncation]
strncpy (file->dname, file->fname, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors