🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4586

Bug#1154060: udev-hid-bpf: FTBFS with LLVM 23 as default: clang 23 emits memcpy calls in BPF code

#4586
From: Sylvestre Ledru
Date: Sun, 15 Nov 2026 13:40
43 lines
2910 bytes
Source: udev-hid-bpf
Version: 2.3.0.20260703.4.gef5fbe3-1
Severity: important
Tags: ftbfs
User: pkg-llvm-team@lists.alioth.debian.org
Usertags: llvm-23-default
Control: affects -1 + src:llvm-defaults
Control: block 1154024 by -1

Hello,

We are going to switch the default LLVM version to 23 (transition bug
#1154024). llvm-defaults 0.75~exp1, in experimental, already points to
23.

udev-hid-bpf fails to build in unstable with it, and builds without it:

libbpf: failed to find BTF info for global/extern symbol 'memcpy'
Error: failed to link 'src/bpf/0010-Huion__Dial-2.bpf.unstripped.o': No
such file or directory (2)

src/bpf/stable/0010-Huion__Dial-2.bpf.c uses __builtin_memcpy() on
large report descriptors (lines 460-469). clang 23 apparently doesn't
inline these anymore and emits a call to memcpy, which libbpf can't
resolve.

To reproduce, with sbuild:

  sbuild -d unstable \
    --extra-repository='deb http://deb.debian.org/debian experimental main' \
    --build-dep-resolver=aptitude \
    --add-depends='clang (>= 1:23~), llvm-dev (>= 1:23~), libclang-dev (>= 1:23~)' \
    <package>

The --add-depends forces the llvm-defaults packages from experimental
(the default apt resolver won't pick them, aptitude does), everything
else comes from unstable.

The severity will be raised to serious once llvm-defaults 23 is in
unstable.

Cheers,
Sylvestre
Technical Details
Message-ID: <NZICB-c2ZC-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sylvestre Ledru <sylvestre@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154060: udev-hid-bpf: FTBFS with LLVM 23 as default: clang 23 emits memcpy calls in BPF code
Date: Sun, 15 Nov 2026 14:40:01 +0100
Message-ID: <NZICB-c2ZC-7@gated-at.bofh.it>
X-Original-To: <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 15 13:31:21 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Sylvestre Ledru <sylvestre@debian.org>, 1154060@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sudipm.mukherjee@gmail.com
X-Debian-Pr-Message: report 1154060
X-Debian-Pr-Package: src:udev-hid-bpf
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: udev-hid-bpf
User-Agent: mail (GNU Mailutils 3.21)
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002741
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 43
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 15 Nov 2026 12:03:01 +0100
X-Original-Message-ID: <20261115110301.7BF4B19CDB16@pulau.ecranbleu.org>