From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92083 invoked by alias); 26 Oct 2018 05:47:15 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 85605 invoked by uid 48); 26 Oct 2018 05:47:09 -0000 From: "gmoreira at gmail dot com" To: systemtap@sourceware.org Subject: [Bug bpf/23829] Bug introduced in bpf -base.cxx in git master Date: Fri, 26 Oct 2018 05:47:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gmoreira at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00060.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23829 --- Comment #1 from Gustavo Moreira --- Other errors related to the same merge: bpf-translate.cxx: In member function =E2=80=98size_t bpf::bpf_unparser::parse_asm_stmt(embeddedcode*, size_t, bpf::asm_stmt&)=E2= =80=99: util.h:62:59: error: format =E2=80=98%lu=E2=80=99 expects argument of type = =E2=80=98long unsigned int=E2=80=99, but argument 2 has type =E2=80=98std::vector >::size_type {aka unsigned int}=E2=80=99 [-Werror=3Dformat=3D] #define _F(format, ...) autosprintf(_(format), __VA_ARGS__) ^ util.h:68:53: note: in definition of macro =E2=80=98SEMANTIC_ERROR=E2=80=99 #define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__) ^~~~~~~~~~~ bpf-translate.cxx:839:31: note: in expansion of macro =E2=80=98_F=E2=80=99 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 =E2=80=98%lu=E2=80=99 expects argument of type = =E2=80=98long unsigned int=E2=80=99, but argument 2 has type =E2=80=98std::vector >::size_type {aka unsigned int}=E2=80=99 [-Werror=3Dformat=3D] #define _F(format, ...) autosprintf(_(format), __VA_ARGS__) ^ util.h:68:53: note: in definition of macro =E2=80=98SEMANTIC_ERROR=E2=80=99 #define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__) ^~~~~~~~~~~ bpf-translate.cxx:846:31: note: in expansion of macro =E2=80=98_F=E2=80=99 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 =E2=80=98%lu=E2=80=99 expects argument of type = =E2=80=98long unsigned int=E2=80=99, but argument 2 has type =E2=80=98std::vector >::size_type {aka unsigned int}=E2=80=99 [-Werror=3Dformat=3D] #define _F(format, ...) autosprintf(_(format), __VA_ARGS__) ^ util.h:68:53: note: in definition of macro =E2=80=98SEMANTIC_ERROR=E2=80=99 #define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__) ^~~~~~~~~~~ bpf-translate.cxx:854:31: note: in expansion of macro =E2=80=98_F=E2=80=99 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 =E2=80=98%lu=E2=80=99 expects argument of type = =E2=80=98long unsigned int=E2=80=99, but argument 2 has type =E2=80=98std::vector >::size_type {aka unsigned int}=E2=80=99 [-Werror=3Dformat=3D] #define _F(format, ...) autosprintf(_(format), __VA_ARGS__) ^ util.h:68:53: note: in definition of macro =E2=80=98SEMANTIC_ERROR=E2=80=99 #define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__) ^~~~~~~~~~~ bpf-translate.cxx:864:31: note: in expansion of macro =E2=80=98_F=E2=80=99 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 =E2=80=98void bpf::bpf_unparser::emit_asm_opcode(const bpf::asm_stmt&, std::map, bpf::block*>)=E2=80=99: bpf-translate.cxx:1084:14: error: =E2=80=98BPF_JLT=E2=80=99 was not declare= d in this scope case BPF_JLT: c =3D LTU; break; ^~~~~~~ bpf-translate.cxx:1085:14: error: =E2=80=98BPF_JLE=E2=80=99 was not declare= d in this scope case BPF_JLE: c =3D LEU; break; ^~~~~~~ bpf-translate.cxx:1088:14: error: =E2=80=98BPF_JSLT=E2=80=99 was not declar= ed in this scope case BPF_JSLT: c =3D LT; break; ^~~~~~~~ bpf-translate.cxx:1089:14: error: =E2=80=98BPF_JSLE=E2=80=99 was not declar= ed in this scope case BPF_JSLE: c =3D 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 =E2=80=98%ld=E2=80=99 expects argument of type = =E2=80=98long int=E2=80=99, but argument 2 has type =E2=80=98int64_t {aka long long int}=E2=80=99 [-Werror= =3Dformat=3D] #define _F(format, ...) autosprintf(_(format), __VA_ARGS__) ^ util.h:68:53: note: in definition of macro =E2=80=98SEMANTIC_ERROR=E2=80=99 #define SEMANTIC_ERROR(...) semantic_error(ERR_SRC, __VA_ARGS__) ^~~~~~~~~~~ bpf-translate.cxx:1127:27: note: in expansion of macro =E2=80=98_F=E2=80=99 throw SEMANTIC_ERROR (_F("offset field '%ld' out of range in bpf code", stmt.off), stmt.tok); ^~ cc1plus: all warnings being treated as errors --=20 You are receiving this mail because: You are the assignee for the bug.