[Bug bpf/23829] Bug introduced in bpf -base.cxx in git master
gmoreira at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Oct 26 05:47:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23829
--- Comment #1 from Gustavo Moreira <gmoreira at gmail dot com> ---
Other errors related to the same merge:
bpf-translate.cxx: In member function ‘size_t
bpf::bpf_unparser::parse_asm_stmt(embeddedcode*, size_t, bpf::asm_stmt&)’:
util.h:62:59: error: format ‘%lu’ expects argument of type ‘long unsigned int’,
but argument 2 has type ‘std::vector<std::__cxx11::basic_string<char>
>::size_type {aka unsigned int}’ [-Werror=format=]
#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
^
util.h:68:53: note: in definition of macro ‘SEMANTIC_ERROR’
#define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__)
^~~~~~~~~~~
bpf-translate.cxx:839:31: note: in expansion of macro ‘_F’
throw SEMANTIC_ERROR (_F("invalid bpf embeddedcode syntax (label
expects 1 arg, found %lu)", args.size()-1), stmt.tok);
^~
util.h:62:59: error: format ‘%lu’ expects argument of type ‘long unsigned int’,
but argument 2 has type ‘std::vector<std::__cxx11::basic_string<char>
>::size_type {aka unsigned int}’ [-Werror=format=]
#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
^
util.h:68:53: note: in definition of macro ‘SEMANTIC_ERROR’
#define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__)
^~~~~~~~~~~
bpf-translate.cxx:846:31: note: in expansion of macro ‘_F’
throw SEMANTIC_ERROR (_F("invalid bpf embeddedcode syntax (alloc
expects 2 args, found %lu)", args.size()-1), stmt.tok);
^~
util.h:62:59: error: format ‘%lu’ expects argument of type ‘long unsigned int’,
but argument 2 has type ‘std::vector<std::__cxx11::basic_string<char>
>::size_type {aka unsigned int}’ [-Werror=format=]
#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
^
util.h:68:53: note: in definition of macro ‘SEMANTIC_ERROR’
#define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__)
^~~~~~~~~~~
bpf-translate.cxx:854:31: note: in expansion of macro ‘_F’
throw SEMANTIC_ERROR (_F("invalid bpf embeddedcode syntax (call
expects at least 2 args, found %lu)", args.size()-1), stmt.tok);
^~
util.h:62:59: error: format ‘%lu’ expects argument of type ‘long unsigned int’,
but argument 2 has type ‘std::vector<std::__cxx11::basic_string<char>
>::size_type {aka unsigned int}’ [-Werror=format=]
#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
^
util.h:68:53: note: in definition of macro ‘SEMANTIC_ERROR’
#define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__)
^~~~~~~~~~~
bpf-translate.cxx:864:31: note: in expansion of macro ‘_F’
throw SEMANTIC_ERROR (_F("invalid bpf embeddedcode syntax (opcode
expects 4 args, found %lu)", args.size()-1), stmt.tok);
^~
bpf-translate.cxx: In member function ‘void
bpf::bpf_unparser::emit_asm_opcode(const bpf::asm_stmt&,
std::map<std::__cxx11::basic_string<char>, bpf::block*>)’:
bpf-translate.cxx:1084:14: error: ‘BPF_JLT’ was not declared in this scope
case BPF_JLT: c = LTU; break;
^~~~~~~
bpf-translate.cxx:1085:14: error: ‘BPF_JLE’ was not declared in this scope
case BPF_JLE: c = LEU; break;
^~~~~~~
bpf-translate.cxx:1088:14: error: ‘BPF_JSLT’ was not declared in this scope
case BPF_JSLT: c = LT; break;
^~~~~~~~
bpf-translate.cxx:1089:14: error: ‘BPF_JSLE’ was not declared in this scope
case BPF_JSLE: c = LE; break;
^~~~~~~~
In file included from staptree.h:27:0,
from bpf-internal.h:18,
from bpf-translate.cxx:10:
util.h:62:59: error: format ‘%ld’ expects argument of type ‘long int’, but
argument 2 has type ‘int64_t {aka long long int}’ [-Werror=format=]
#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
^
util.h:68:53: note: in definition of macro ‘SEMANTIC_ERROR’
#define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__)
^~~~~~~~~~~
bpf-translate.cxx:1127:27: note: in expansion of macro ‘_F’
throw SEMANTIC_ERROR (_F("offset field '%ld' out of range in bpf code",
stmt.off), stmt.tok);
^~
cc1plus: all warnings being treated as errors
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list