The package in Plucky appear to now have the above fix, and the
compilation of the specific file that did initially work now works.

However, a similar error is hit just after, so there is something still
awry here.

Failing command line:
clang -S \
    -target bpf \
    -D __BPF_TRACING__ \
    -Wno-visibility -I/usr/include/x86_64-linux-gnu 
-DBPF_DIR_MNT=\"/sys/fs/bpf\" 
-DBPF_OBJECT_PATH=\"/usr/lib/x86_64-linux-gnu/bpf\" -DMAX_DISPATCHER_ACTIONS=10 
-DTOOLS_VERSION=\""1.5.1"\" -DLIBBPF_VERSION=\"1.5.0\" -DRUNDIR=\"/run\" 
-DHAVE_BPFTOOL -DHAVE_LIBBPF_PERF_BUFFER__CONSUME 
-DHAVE_LIBBPF_BTF__LOAD_FROM_KERNEL_BY_ID -DHAVE_LIBBPF_BTF__TYPE_CNT 
-DHAVE_LIBBPF_BPF_OBJECT__NEXT_MAP -DHAVE_LIBBPF_BPF_OBJECT__NEXT_PROGRAM 
-DHAVE_LIBBPF_BPF_PROGRAM__INSN_CNT -DHAVE_LIBBPF_BPF_PROGRAM__TYPE 
-DHAVE_LIBBPF_BPF_PROGRAM__FLAGS 
-DHAVE_LIBBPF_BPF_PROGRAM__EXPECTED_ATTACH_TYPE -DHAVE_LIBBPF_BPF_MAP_CREATE 
-DHAVE_LIBBPF_PERF_BUFFER__NEW_RAW -DHAVE_LIBBPF_BPF_XDP_ATTACH 
-DHAVE_LIBBPF_BPF_MAP__SET_AUTOCREATE -DHAVE_LIBBPF_BPF_PROG_TEST_RUN_OPTS 
-DHAVE_LIBBPF_BPF_XDP_QUERY -DHAVE_SECURE_GETENV -DLIBBPF_DYNAMIC 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-ffile-prefix-map=/home/ubuntu/src/b/xdp-tools-1.5.1=. 
-I/usr/include/x86_64-linux-gnu/  -DBPF_DIR_MNT=\"/sys/fs/bpf\" 
-DBPF_OBJECT_PATH=\"/usr/lib/x86_64-linux-gnu/bpf\" -DMAX_DISPATCHER_ACTIONS=10 
-DTOOLS_VERSION=\""1.5.1"\" -DLIBBPF_VERSION=\"1.5.0\" -DRUNDIR=\"/run\" 
-DHAVE_BPFTOOL -DHAVE_LIBBPF_PERF_BUFFER__CONSUME 
-DHAVE_LIBBPF_BTF__LOAD_FROM_KERNEL_BY_ID -DHAVE_LIBBPF_BTF__TYPE_CNT 
-DHAVE_LIBBPF_BPF_OBJECT__NEXT_MAP -DHAVE_LIBBPF_BPF_OBJECT__NEXT_PROGRAM 
-DHAVE_LIBBPF_BPF_PROGRAM__INSN_CNT -DHAVE_LIBBPF_BPF_PROGRAM__TYPE 
-DHAVE_LIBBPF_BPF_PROGRAM__FLAGS 
-DHAVE_LIBBPF_BPF_PROGRAM__EXPECTED_ATTACH_TYPE -DHAVE_LIBBPF_BPF_MAP_CREATE 
-DHAVE_LIBBPF_PERF_BUFFER__NEW_RAW -DHAVE_LIBBPF_BPF_XDP_ATTACH 
-DHAVE_LIBBPF_BPF_MAP__SET_AUTOCREATE -DHAVE_LIBBPF_BPF_PROG_TEST_RUN_OPTS 
-DHAVE_LIBBPF_BPF_XDP_QUERY -DHAVE_SECURE_GETENV -DLIBBPF_DYNAMIC 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-ffile-prefix-map=/home/ubuntu/src/b/xdp-tools-1.5.1=. 
-I/usr/include/x86_64-linux-gnu/  -I../../headers 
-I/usr/include/x86_64-linux-gnu/  \
    -Wall \
    -Wno-unused-value \
    -Wno-pointer-sign \
    -Wno-compare-distinct-pointer-types \
    -Werror \
    -O2 -emit-llvm -c -g -o xdp-dispatcher.ll xdp-dispatcher.c
clang: error: argument unused during compilation: '-c' 
[-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-c' 
[-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-c' 
[-Werror,-Wunused-command-line-argument]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2103416

Title:
  [clang-tidy 20] warning: argument unused during compilation: '-c' when
  using compilation database

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-20/+bug/2103416/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to