DM
2018-05-24 10:38:59 UTC
Heya,
I'm getting this error on elfutils (LFS 8.2):
CC ar.o
ar.c: In function 'do_oper_insert':
ar.c:1077:56: error: '%-*ld' directive output may be truncated writing
between 6 and 10 bytes into a region of size 7 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:55: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 7 and 11 bytes into a destination of size 7
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar.c:1077:56: error: '%-*ld' directive output may be truncated writing
between 6 and 10 bytes into a region of size 7 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:55: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 7 and 11 bytes into a destination of size 7
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar.c:1077:46: error: '%-*lo' directive output may be truncated writing
between 8 and 11 bytes into a region of size 9 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:45: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 9 and 12 bytes into a destination of size 9
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:714: ar.o] Error 1
make[1]: *** [Makefile:481: all-recursive] Error 1
make: *** [Makefile:397: all] Error 2
Any ideas? The host is LFS 8.1.
Regards,
Daniel
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
h
I'm getting this error on elfutils (LFS 8.2):
CC ar.o
ar.c: In function 'do_oper_insert':
ar.c:1077:56: error: '%-*ld' directive output may be truncated writing
between 6 and 10 bytes into a region of size 7 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:55: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 7 and 11 bytes into a destination of size 7
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar.c:1077:56: error: '%-*ld' directive output may be truncated writing
between 6 and 10 bytes into a region of size 7 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:55: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 7 and 11 bytes into a destination of size 7
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar.c:1077:46: error: '%-*lo' directive output may be truncated writing
between 8 and 11 bytes into a region of size 9 [-Werror=format-
truncation=]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~
ar.c:1077:45: note: directive argument in the range [0, 4294967295]
snprintf (tmpbuf, sizeof (tmpbuf), ofmt ? "%-*lo" : "%-*ld",
bufsize, val);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/argp.h:23,
from ar.c:23:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 9 and 12 bytes into a destination of size 9
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:714: ar.o] Error 1
make[1]: *** [Makefile:481: all-recursive] Error 1
make: *** [Makefile:397: all] Error 2
Any ideas? The host is LFS 8.1.
Regards,
Daniel
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
h