SVN r273734 breaks i386 compilation

From: Michael Butler <imb_at_protected-networks.net>
Date: Mon, 27 Oct 2014 12:58:24 -0400
The updates to dd cause this on an i386 ..

===> bin/dd (all)
cc  -O2 -pipe -march=pentium4  -std=gnu99 -fstack-protector
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign
-Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c
/usr/src/bin/dd/args.c
/usr/src/bin/dd/args.c:192:43: error: format specifies type 'intmax_t'
(aka 'long long') but the argument has type 'int' [-Werror,-Wformat]
                errx(1, "bs must be between 1 and %jd", SSIZE_MAX);
                                                  ~~~   ^~~~~~~~~
                                                  %d


/usr/obj/usr/src/tmp/usr/include/sys/limits.h:72:19: note: expanded from
macro 'SSIZE_MAX'
#define SSIZE_MAX       __SSIZE_MAX     /* max value for an ssize_t */
                        ^~~~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:86:21: note: expanded
from macro '__SSIZE_MAX'
#define __SSIZE_MAX     __INT_MAX
                        ^~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:57:19: note: expanded
from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
/usr/src/bin/dd/args.c:201:44: error: format specifies type 'intmax_t'
(aka 'long long') but the argument has type 'int' [-Werror,-Wformat]
                errx(1, "cbs must be between 1 and %jd", SSIZE_MAX);
                                                   ~~~   ^~~~~~~~~
                                                   %d


/usr/obj/usr/src/tmp/usr/include/sys/limits.h:72:19: note: expanded from
macro 'SSIZE_MAX'
#define SSIZE_MAX       __SSIZE_MAX     /* max value for an ssize_t */
                        ^~~~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:86:21: note: expanded
from macro '__SSIZE_MAX'
#define __SSIZE_MAX     __INT_MAX
                        ^~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:57:19: note: expanded
from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
/usr/src/bin/dd/args.c:221:46: error: format specifies type 'uintmax_t'
(aka 'unsigned long long') but the argument has type 'unsigned int'
[-Werror,-Wformat]
                errx(1, "files must be between 1 and %ju", SIZE_MAX);
                                                     ~~~   ^~~~~~~~
                                                     %u
/usr/obj/usr/src/tmp/usr/include/x86/_stdint.h:180:18: note: expanded
from macro 'SIZE_MAX'
#define SIZE_MAX        UINT32_MAX
                        ^~~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_stdint.h:82:20: note: expanded
from macro 'UINT32_MAX'
#define UINT32_MAX      0xffffffffU
                        ^~~~~~~~~~~
/usr/src/bin/dd/args.c:241:45: error: format specifies type 'uintmax_t'
(aka 'unsigned long long') but the argument has type 'int'
[-Werror,-Wformat]
                        errx(1, "ibs must be between 1 and %ju", SSIZE_MAX);
                                                           ~~~   ^~~~~~~~~
                                                           %d
/usr/obj/usr/src/tmp/usr/include/sys/limits.h:72:19: note: expanded from
macro 'SSIZE_MAX'
#define SSIZE_MAX       __SSIZE_MAX     /* max value for an ssize_t */
                        ^~~~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:86:21: note: expanded
from macro '__SSIZE_MAX'
#define __SSIZE_MAX     __INT_MAX
                        ^~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:57:19: note: expanded
from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
/usr/src/bin/dd/args.c:259:45: error: format specifies type 'intmax_t'
(aka 'long long') but the argument has type 'int' [-Werror,-Wformat]
                        errx(1, "obs must be between 1 and %jd", SSIZE_MAX);
                                                           ~~~   ^~~~~~~~~
                                                           %d
/usr/obj/usr/src/tmp/usr/include/sys/limits.h:72:19: note: expanded from
macro 'SSIZE_MAX'
#define SSIZE_MAX       __SSIZE_MAX     /* max value for an ssize_t */
                        ^~~~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:86:21: note: expanded
from macro '__SSIZE_MAX'
#define __SSIZE_MAX     __INT_MAX
                        ^~~~~~~~~
/usr/obj/usr/src/tmp/usr/include/x86/_limits.h:57:19: note: expanded
from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
5 errors generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/bin/dd
*** Error code 1


Received on Mon Oct 27 2014 - 15:58:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC