Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 19:40:30 -0400
From:      Michael Butler <imb@protected-networks.net>
To:        freebsd-current <freebsd-current@freebsd.org>, mmacy@freebsd.org
Subject:   @SVN r334360 i386 build fails (pmc-related)
Message-ID:  <155aef9d-cf82-6bb9-edbd-f8c6bb67d076@protected-networks.net>

next in thread | raw e-mail | index | archive | help
World build fails as follows:

--- cmd_pmc_stat.o ---
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:274:48: error: format specifies
type 'long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
        fprintf(pmc_args.pa_printfile, "%16ld  %s\n", cvals[CYCLES],
stat_mode_names[CYCLES]);
                                        ~~~~~         ^~~~~~~~~~~~~
                                        %16llu
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:275:73: error: format specifies
type 'long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
        fprintf(pmc_args.pa_printfile, "%16ld  %s\t\t#\t%01.03f
inst/cycle\n", cvals[INST], stat_mode_names[INST],
                                        ~~~~~
      ^~~~~~~~~~~
                                        %16llu
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:277:48: error: format specifies
type 'long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
        fprintf(pmc_args.pa_printfile, "%16ld  %s\n", cvals[BR],
stat_mode_names[BR]);
--- all_subdir_usr.sbin/ntp ---
--- all_subdir_usr.sbin/ntp/ntpdate ---
===> usr.sbin/ntp/ntpdate (all)
--- all_subdir_usr.sbin/pmc ---
                                        ~~~~~         ^~~~~~~~~
                                        %16llu
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:280:7: error: format specifies type
'long' but the argument has type 'uint64_t' (aka 'unsigned long long')
[-Werror,-Wformat]
                    cvals[BR_MISS], stat_mode_names[BR_MISS],
                    ^~~~~~~~~~~~~~
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:284:7: error: format specifies type
'long' but the argument has type 'uint64_t' (aka 'unsigned long long')
[-Werror,-Wformat]
                    cvals[BR_MISS], stat_mode_names[BR_MISS]);
                    ^~~~~~~~~~~~~~
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:285:48: error: format specifies
type 'long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
        fprintf(pmc_args.pa_printfile, "%16ld  %s%s", cvals[CACHE],
stat_mode_names[CACHE],
                                        ~~~~~         ^~~~~~~~~~~~
                                        %16llu
/usr/src/usr.sbin/pmc/cmd_pmc_stat.c:290:48: error: format specifies
type 'long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
        fprintf(pmc_args.pa_printfile, "%16ld  %s%s", cvals[CACHE_MISS],
stat_mode_names[CACHE_MISS],
                                        ~~~~~         ^~~~~~~~~~~~~~~~~
                                        %16llu
7 errors generated.
*** [cmd_pmc_stat.o] Error code 1

	imb




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?155aef9d-cf82-6bb9-edbd-f8c6bb67d076>