[Bug 279071] loader build error with EFI_DEBUG
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 279071] loader build error with EFI_DEBUG"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 279071] loader build error with EFI_DEBUG"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 279071] loader build error with EFI_DEBUG"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 279071] loader build error with EFI_DEBUG"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 279071] loader build error with EFI_DEBUG"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 May 2024 20:18:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279071 Bug ID: 279071 Summary: loader build error with EFI_DEBUG Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu Created attachment 250737 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=250737&action=edit Use -Wno-format for zfs_module.c When compiling with -DEFI_DEBUG, stand/efi/boot1/zfs_module.c needs the same -Wno-format flag as ufs_module.c. Otherwise, /usr/src/stand/efi/boot1/zfs_module.c:155:22: error: format specifies type 'wchar_t *' (aka 'int *') but the argument has type 'CHAR16 *' (aka 'unsigned short *') [-Werror,-Wformat] 154 | DPRINTF("load: '%s' spa: '%s', devpath: %S\n", filepath, | ~~ 155 | spa->spa_name, text); | ^~~~ /usr/home/15/src/stand/efi/boot1/boot_module.h:37:45: note: expanded from macro 'DPRINTF' 37 | #define DPRINTF(fmt, args...) printf(fmt, ##args) | ~~~ ^~~~ 1 error generated. *** [zfs_module.o] Error code 1 Fix attached. The comment in stand/efi/boot1/Makefile says this is platform-dependent. I was cross-compiling aarch64 to riscv64. -- You are receiving this mail because: You are the assignee for the bug.