Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-85699

xdp-tools FTBFS when using LLVM-20 [rhel-9.7]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.7
    • rhel-9.7
    • xdp-tools
    • None
    • xdp-tools-1.5.5-1.el9
    • No
    • Low
    • 2
    • rhel-net-core-3
    • ssg_networking
    • 15
    • 16
    • 3
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • NST-Core3-25W22, NST-Core3-25W26
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      xdp-tools-1.5.3-1.el9 fails to build with clang-20 with the following error:

      /usr/bin/clang -S \
          -target bpf \
          -D __BPF_TRACING__ \
          -Wno-visibility -fno-stack-protector -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.5.3"\" -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   -I../../headers  \
          -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-20 is reporting this warning as using "-S" makes clang to stop before running the assembler, making "-c" unused. Removing "-c" should fix the issue.

      Scratch build showing the issue: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=67117640

              tohojo Toke Høiland-Jørgensen
              rhn-support-jchecahi Jesus Checa Hidalgo
              nst-kernel-bugs nst-kernel-bugs
              Prasenjit Mukherjee Prasenjit Mukherjee
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: