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: b...@freebsd.org
          Reporter: j...@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.

Reply via email to