Article View: linux.debian.bugs.rc
Article #2753Bug#1153527: shim: FTBFS: lib/string.c:20:9: error: ‘strrchr’ redefined [-Werror]
From: Luke Yasuda
Date: Mon, 09 Nov 2026 16:30
Date: Mon, 09 Nov 2026 16:30
32 lines
3979 bytes
3979 bytes
Source: shim
Version: 16.1-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
Hi,
shim fails to build from source now, even though it built on buildds. Probably it fails now due to a glibc upgrade??
build logs:
gcc -O2 -ggdb -std=gnu11 -isystem /build/reproducible-path/shim-16.1/include/system -I/build/reproducible-path/shim-16.1/gnu-efi/inc -I/build/reproducible-path/shim-16.1/gnu-efi/inc/x86_64 -I/build/reproducible-path/shim-16.1/gnu-efi/inc/protocol -Iinclude -iquote . -isystem /usr/include -isystem /usr/lib/gcc/x86_64-linux-gnu/16/include -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args -m64 -DMDE_CPU_X64 -DPAGE_SIZE=4096 -fshort-wchar -fno-builtin -rdynamic -fno-inline -fno-eliminate-unused-debug-types -fno-eliminate-unused-debug-symbols -gpubnames -grecord-gcc-switches -Wall -Wextra -Wno-missing-field-initializers -Wsign-compare -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-unused-variable -Wno-pointer-sign -Werror -Werror=nonnull -Werror=nonnull-compare -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -DPAGE_SIZE=4096 -DSHIM_UNIT_TEST "-DDEFAULT_DEBUG_PRINT_STATE=0" -isystem include-fixed -isystem /usr/include/x86_64-linux-gnu -o test-str lib/string.c test-str.c test.c libefi-test.a -lefivar
lib/string.c:20:9: error: ‘strrchr’ redefined [-Werror]
20 | #define strrchr shim_strrchr
| ^~~~~~~
In file included from /build/reproducible-path/shim-16.1/include/system/string.h:3,
from ./shim.h:52,
from lib/string.c:6:
/usr/include/string.h:295:11: note: this is the location of the previous definition
295 | # define strrchr(S, C) \
| ^~~~~~~
cc1: all warnings being treated as errors
Technical Details
Message-ID:
<NXApP-aQqi-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Luke Yasuda <jing@jing.rocks> Newsgroups: linux.debian.bugs.rc Subject: Bug#1153527: shim: FTBFS: lib/string.c:20:9: error: ‘strrchr’ redefined [-Werror] Date: Mon, 09 Nov 2026 17:30:01 +0100 Message-ID: <NXApP-aQqi-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Nov 9 16:25:11 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Luke Yasuda <jing@jing.rocks>, 1153527@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-efi@lists.debian.org X-Debian-Pr-Message: report 1153527 X-Debian-Pr-Package: src:shim X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: shim Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/837713 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 09 Nov 2026 16:21:44 +0000 X-Original-Message-ID: <179424130412.108611.2763427398668408124.reportbug@cfarm421.jing.rocks>