Thread View: linux.debian.bugs.rc
1 messages
1 total messages
Started by Luke Yasuda
Mon, 09 Nov 2026 16:30
Bug#1153527: shim: FTBFS: lib/string.c:20:9: error: ‘strrchr’ redefined [-Werror]
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads