Date: Fri, 17 May 2024 20:18:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 279071] loader build error with EFI_DEBUG Message-ID: <bug-279071-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279071 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=3D250737&action= =3Dedit 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 'unsign= ed 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 m= acro '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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279071-227>