1

我目前在 Windows 10 上,正在尝试在 cygwin64 上安装 GRUB2。我已经设法进行引导和配置。当我运行 make 我得到下面的错误。我查看了 windows/hostdisk.c 和 hostdisk.c 但无法立即找到导致冲突类型错误的原因。


error: conflicting types for ‘grub_util_file_sync’
 grub_util_file_sync (FILE *f)
 ^~~~~~~~~~~~~~~~~~~
In file included from grub-core/osdep/windows/hostdisk.c:30:0,
                 from grub-core/osdep/hostdisk.c:14:
./include/grub/emu/misc.h:72:5: note: previous declaration of ‘grub_util_file_sync’ was here
 int grub_util_file_sync (FILE *f);
     ^~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:6023: grub-core/osdep/libgrubkern_a-hostdisk.o] Error 1
make[2]: Leaving directory '/home/Campbell/src/grub-2.04'
make[1]: *** [Makefile:11304: all-recursive] Error 1
make[1]: Leaving directory '/home/Campbell/src/grub-2.04'
make: *** [Makefile:3343: all] Error 2
4

0 回答 0