[Bug 284483] sysutils/grub2-efi: Fails to build with GCC 14: error: implicit declaration of function 'grub_env_set'; did you mean 'grub_memset'? [-Wimplicit-function-declaration]
Date: Fri, 31 Jan 2025 14:25:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284483 Bug ID: 284483 Summary: sysutils/grub2-efi: Fails to build with GCC 14: error: implicit declaration of function 'grub_env_set'; did you mean 'grub_memset'? [-Wimplicit-function-declaration] Product: Ports & Packages Version: Latest Hardware: Any URL: https://pkg-status.freebsd.org/gohan06/data/134amd64-d efault-foo/2025-01-24_09h47m14s/logs/grub2-efi-2.02_21 .log OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org Blocks: 281091 The port fails to build with GCC 14, which is about to become GCC_DEFAULT version. This link can help: https://gcc.gnu.org/gcc-14/porting_to.html grub-core/disk/geli.c: In function 'recover_key': grub-core/disk/geli.c:449:3: error: implicit declaration of function 'grub_env_set'; did you mean 'grub_memset'? [-Wimplicit-function-declaration] 449 | grub_env_set ("gelipassphrase", passphrase); | ^~~~~~~~~~~~ | grub_memset grub-core/disk/geli.c:449:3: warning: nested extern declaration of 'grub_env_set' [-Wnested-externs] gmake[2]: *** [Makefile:6329: grub-core/disk/libgrubkern_a-geli.o] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/sysutils/grub2-efi/work/grub-2.02' gmake[1]: *** [Makefile:11106: all-recursive] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/grub2-efi/work/grub-2.02' gmake: *** [Makefile:3496: all] Error 2 *** Error code 1 Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091 [Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc. -- You are receiving this mail because: You are the assignee for the bug.