On 22.07.22 14:31, Schmidl, Tobias wrote:
> Hi all,
> 
> efibootguard doesn't build for Debian bookworm:
> 
> ```
> make --no-print-directory all-recursive
> Making all in .
>   CHK      version.h
>   GEN      completion/bash/bg_setenv.bash
>   GEN      completion/bash/bg_printenv.bash
>   CC       drivers/watchdog/init_array_start.o
>   CC       drivers/watchdog/wdat.o
>   CC       drivers/watchdog/amdfch_wdt.o
>   CC       drivers/watchdog/i6300esb.o
>   CC       drivers/watchdog/atom-quark.o
>   CC       drivers/watchdog/ipc4x7e_wdt.o
>   UPD      version.h
>   CC       drivers/watchdog/itco.o
>   CC       drivers/watchdog/hpwdt.o
>   CC       drivers/watchdog/init_array_end.o
>   CC       env/syspart.o
>   CC       env/fatvars.o
>   CC       utils.o
>   CC       bootguard.o
>   CC       main.o
>   CC       kernel-stub/fdt.o
>   CC       kernel-stub/initrd.o
> cd . && /bin/bash ./config.status libebgenv.pc
>   CC       kernel-stub/main.o
>   GEN      completion/zsh/_bg_setenv
>   GEN      completion/zsh/_bg_printenv
>   CC       tools/bg_setenv-bg_setenv.o
>   CC       tools/bg_setenv-bg_printenv.o
>   CC       tools/bg_setenv-bg_envtools.o
>   CC       tools/bg_setenv-main.o
>   CC       env/libebgenv_a-env_api_fat.o
>   CC       env/libebgenv_a-env_api.o
>   CC       env/libebgenv_a-env_config_file.o
>   CC       env/libebgenv_a-env_config_partitions.o
>   CC       env/libebgenv_a-env_disk_utils.o
>   CC       env/libebgenv_a-uservars.o
>   CC       tools/libebgenv_a-ebgpart.o
>   CC       env/env_api_fat.lo
>   CC       env/env_config_file.lo
>   CC       env/env_api.lo
>   CC       env/env_config_partitions.lo
>   CC       env/env_disk_utils.lo
>   CC       env/uservars.lo
>   CC       tools/ebgpart.lo
>   CCLD     efibootguardx64.so
> /usr/bin/ld: warning: ./drivers/watchdog/init_array_end.o: missing 
> .note.GNU-stack section implies executable stack
> /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a 
> future version of the linker
>   CCLD     kernel-stub/kernel-stubx64.so
> /usr/bin/ld: warning: /usr/lib/crt0-efi-x86_64.o: missing .note.GNU-stack 
> section implies executable stack
> /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a 
> future version of the linker
> nm: 'efibootguardx64.so': No such file
> nm: 'kernel-stub/kernel-stubx64.so': No such file
>   GEN      efibootguardx64.efi
> objcopy: 'efibootguardx64.so': No such file
>   GEN      kernel-stubx64.efi
> objcopy: 'kernel-stub/kernel-stubx64.so': No such file
> make[2]: *** [Makefile:1832: kernel-stubx64.efi] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [Makefile:1823: efibootguardx64.efi] Error 1
> config.status: creating libebgenv.pc
> make[1]: *** [Makefile:1271: all-recursive] Error 1
> make: *** [Makefile:672: all] Error 2
> ```
> 
> This is for GCC 11.3.0-4, GNU make 4.3.
> 

It's a mixture of gnu-efi and own issue. For gnu-efi, I've discussed it
with Debian folks and pushed an upstream fix proposal:

https://sourceforge.net/p/gnu-efi/mailman/message/37684742/

If that is not taken fast enough, we may need to apply a workaround
suggested in

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013341

For the own stuff, similar changes are needed. But let's wait for any
gnu-efi reaction first.

Thanks for reporting!
Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/c6b200b7-cbb2-d37d-ec39-bfb9b9a4594f%40siemens.com.

Reply via email to