8000 Build failing on ppc64el due to printf formatting error · Issue #5330 · iovisor/bcc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Build failing on ppc64el due to printf formatting error #5330
Open
@seb128

Description

@seb128

Trying to build 0.31.0 on Ubuntu ppc64el the build fails with this error

make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu'
make -C libbpf-tools V=1 prefix=/<<PKGBUILDDIR>>/debian/tmp/libbpf-tools install
make[2]: Entering directory '/<<PKGBUILDDIR>>/libbpf-tools'
mkdir -p /<<PKGBUILDDIR>>/libbpf-tools/.output
clang -g -O2 -Wall -target bpf -D__TARGET_ARCH_powerpc	      \
	     -Ipowerpc/ -I/<<PKGBUILDDIR>>/libbpf-tools/.output -I/usr/include -I/usr/include/powerpc64le-linux-gnu -c bashreadline.bpf.c -o /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.bpf.o &&      \
llvm-strip-19 -g /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.bpf.o
/usr/sbin/bpftool gen skeleton /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.bpf.o > /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -I/<<PKGBUILDDIR>>/libbpf-tools/.output -I/usr/include -I/usr/include/powerpc64le-linux-gnu -c bashreadline.c        			\
			 -o /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.o
bashreadline.c: In function ‘handle_lost_events’:
bashreadline.c:90:14: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
   90 |         warn("lost %llu events on CPU #%d\n", lost_cnt, cpu);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~
      |                                               |
      |                                               __u64 {aka long unsigned int}
bashreadline.c:21:35: note: in definition of macro ‘warn’
   21 | #define warn(...) fprintf(stderr, __VA_ARGS__)
      |                                   ^~~~~~~~~~~
bashreadline.c:90:23: note: format string is defined here
   90 |         warn("lost %llu events on CPU #%d\n", lost_cnt, cpu);
      |                    ~~~^
      |                       |
      |                       long long unsigned int
      |                    %lu
cc1: all warnings being treated as errors
make[2]: *** [Makefile:190: /<<PKGBUILDDIR>>/libbpf-tools/.output/bashreadline.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/libbpf-tools'
make[1]: *** [debian/rules:44: override_dh_auto_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0