-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Similar to libbpf/libbpf#941, the latest version of bpftool have problem when compiled with GCC 15 and glibc 2.43. If CFLAGS were not set, bpftool will fail to build because -Werror is set by default in libbpf's Makefile.
[ 20s] gcc -I. -I../include -I../include/uapi -g -O2 -Werror -Wall -std=gnu89 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -c libbpf.c -o /home/abuild/rpmbuild/BUILD/bpftool-7.6.0-build/bpftool-libbpf-v7.6.0-sources/src/bootstrap/libbpf/staticobjs/libbpf.o
[ 20s] libbpf.c: In function ‘kallsyms_cb’:
[ 20s] libbpf.c:8186:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
[ 20s] 8186 | res = strstr(sym_name, ".llvm.");
[ 20s] | ^
[ 20s] libbpf.c: In function ‘avail_kallsyms_cb’:
[ 20s] libbpf.c:11491:31: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
[ 20s] 11491 | if (!(sym_sfx = strstr(sym_name, ".llvm.")))
[ 20s] | ^
[ 20s] libbpf.c: In function ‘resolve_full_path’:
[ 20s] libbpf.c:12079:35: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
[ 20s] 12079 | next_path = strchr(s, ':');
[ 20s] | ^
As such, I'd like to request a release with libbpf/libbpf@fda2bfc included so we have a C23-compatible bpftool release.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels