#1096566 efibootguard: ftbfs with GCC-15

#1096566#5
Date:
2025-02-17 17:11:17 UTC
From:
To:
[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/efibootguard_0.19-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
/usr/bin/mkdir -p drivers/watchdog/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c drivers/watchdog/hpwdt.c -o drivers/watchdog/hpwdt.o
/usr/bin/mkdir -p drivers/watchdog/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c drivers/watchdog/eiois200_wdt.c -o drivers/watchdog/eiois200_wdt.o
/usr/bin/mkdir -p drivers/utils/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c drivers/utils/simatic.c -o drivers/utils/simatic.o
/usr/bin/mkdir -p drivers/utils/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c drivers/utils/smbios.c -o drivers/utils/smbios.o
/usr/bin/mkdir -p drivers/watchdog/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c drivers/watchdog/wdfuncs_end.c -o drivers/watchdog/wdfuncs_end.o
/usr/bin/mkdir -p env/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c env/syspart.c -o env/syspart.o
/usr/bin/mkdir -p env/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c env/fatvars.c -o env/fatvars.o
/usr/bin/mkdir -p kernel-stub/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c kernel-stub/fdt.c -o kernel-stub/fdt.o
/usr/bin/mkdir -p kernel-stub/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c kernel-stub/initrd.c -o kernel-stub/initrd.o
/usr/bin/mkdir -p kernel-stub/; gcc -I. -include config.h -I./include -I/usr/include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/x86_64-linux-gnu  -Wall -Wextra -std=gnu99 -ggdb -O0 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing -Wsign-compare -DGNU_EFI_USE_MS_ABI -DGNU_EFI_3_0_COMPAT -Werror -mgeneral-regs-only -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-stack-protector -mno-red-zone -c kernel-stub/main.c -o kernel-stub/main.o
/usr/bin/mkdir -p completion/zsh; PYTHONPATH=./completion/shtab:./completion /usr/bin/python3 -m shtab -u --shell=zsh bg_setenv.cli.bg_setenv >completion/zsh/_bg_setenv
/usr/bin/mkdir -p completion/zsh; PYTHONPATH=./completion/shtab:./completion /usr/bin/python3 -m shtab -u --shell=zsh bg_printenv.cli.bg_printenv >completion/zsh/_bg_printenv
ln -s -f bg_setenv bg_printenv
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -static -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/bg_setenv-bg_setenv.o `test -f 'tools/bg_setenv.c' || echo './'`tools/bg_setenv.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -static -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/bg_setenv-bg_printenv.o `test -f 'tools/bg_printenv.c' || echo './'`tools/bg_printenv.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -static -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/bg_setenv-bg_envtools.o `test -f 'tools/bg_envtools.c' || echo './'`tools/bg_envtools.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -static -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/bg_setenv-main.o `test -f 'tools/main.c' || echo './'`tools/main.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_api_fat.o `test -f 'env/env_api_fat.c' || echo './'`env/env_api_fat.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_api.o `test -f 'env/env_api.c' || echo './'`env/env_api.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_api_crc32.o `test -f 'env/env_api_crc32.c' || echo './'`env/env_api_crc32.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_config_file.o `test -f 'env/env_config_file.c' || echo './'`env/env_config_file.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_config_partitions.o `test -f 'env/env_config_partitions.c' || echo './'`env/env_config_partitions.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-env_disk_utils.o `test -f 'env/env_disk_utils.c' || echo './'`env/env_disk_utils.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/libebgenv_a-uservars.o `test -f 'env/uservars.c' || echo './'`env/uservars.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/libebgenv_a-ebgpart.o `test -f 'tools/ebgpart.c' || echo './'`tools/ebgpart.c
gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -I./tools -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/libebgenv_a-fat.o `test -f 'tools/fat.c' || echo './'`tools/fat.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_api_fat.lo env/env_api_fat.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_api.lo env/env_api.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_api_crc32.lo env/env_api_crc32.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_config_file.lo env/env_config_file.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_api_fat.c  -fPIC -DPIC -o env/.libs/env_api_fat.o
env/env_api_fat.c: In function ‘bgenv_get’:
env/env_api_fat.c:296:9: error: ‘__builtin_strncpy’ output may be truncated copying between 2 and 4 bytes from a string of length 254 [-Werror=stringop-truncation]
  296 |         strncpy(data, buffer, res+1);
      |         ^
env/env_api_fat.c:296:9: error: ‘__builtin_strncpy’ output may be truncated copying between 2 and 4 bytes from a string of length 254 [-Werror=stringop-truncation]
env/env_api_fat.c:296:9: error: ‘__builtin_strncpy’ output may be truncated copying between 2 and 11 bytes from a string of length 254 [-Werror=stringop-truncation]
env/env_api_fat.c:296:9: error: ‘__builtin_strncpy’ output may be truncated copying between 2 and 6 bytes from a string of length 254 [-Werror=stringop-truncation]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_api.c  -fPIC -DPIC -o env/.libs/env_api.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_api_crc32.c  -fPIC -DPIC -o env/.libs/env_api_crc32.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_config_file.c  -fPIC -DPIC -o env/.libs/env_config_file.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_config_partitions.lo env/env_config_partitions.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o env/env_disk_utils.lo env/env_disk_utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_config_partitions.c  -fPIC -DPIC -o env/.libs/env_config_partitions.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_api_crc32.c -o env/env_api_crc32.o >/dev/null 2>&1
cc1: all warnings being treated as errors
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_disk_utils.c  -fPIC -DPIC -o env/.libs/env_disk_utils.o
make[4]: *** [Makefile:1050: env/libebgenv_a-env_api_fat.o] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_config_file.c -o env/env_config_file.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_api.c -o env/env_api.o >/dev/null 2>&1
env/env_api_fat.c: In function 'bgenv_get':
env/env_api_fat.c:296:9: error: '__builtin_strncpy' output may be truncated copying between 2 and 4 bytes from a string of length 254 [-Werror=stringop-truncation]
  296 |         strncpy(data, buffer, res+1);
      |         ^
env/env_api_fat.c:296:9: error: '__builtin_strncpy' output may be truncated copying between 2 and 4 bytes from a string of length 254 [-Werror=stringop-truncation]
env/env_api_fat.c:296:9: error: '__builtin_strncpy' output may be truncated copying between 2 and 11 bytes from a string of length 254 [-Werror=stringop-truncation]
env/env_api_fat.c:296:9: error: '__builtin_strncpy' output may be truncated copying between 2 and 6 bytes from a string of length 254 [-Werror=stringop-truncation]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_disk_utils.c -o env/env_disk_utils.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I. -include config.h -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/efibootguard-0.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c env/env_config_partitions.c -o env/env_config_partitions.o >/dev/null 2>&1
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1043: env/env_api_fat.lo] Error 1
make[3]: *** [Makefile:1350: all-recursive] Error 1
make[2]: *** [Makefile:719: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/efibootguard-0.19'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/efibootguard-0.19'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096566#14
Date:
2025-09-05 15:57:28 UTC
From:
To:
I have pushed a fix to the git repo.