0

我一直在尝试在 MacOS 上编译 GRUB,但是当我运行make它时出现错误:

In file included from grub-core/osdep/blocklist.c:6:
grub-core/osdep/generic/blocklist.c:62:67: error: use of undeclared identifier
      'FILE_TYPE_NO_DECOMPRESS'; did you mean 'GRUB_FILE_TYPE_NO_DECOMPRESS'?
  ...(core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                           GRUB_FILE_TYPE_NO_DECOMPRESS
./include/grub/file.h:135:5: note: 'GRUB_FILE_TYPE_NO_DECOMPRESS' declared here
    GRUB_FILE_TYPE_NO_DECOMPRESS = 0x20000
    ^
In file included from grub-core/osdep/blocklist.c:6:
grub-core/osdep/generic/blocklist.c:119:63: error: use of undeclared identifier
      'FILE_TYPE_NO_DECOMPRESS'; did you mean 'GRUB_FILE_TYPE_NO_DECOMPRESS'?
  ...(core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                           GRUB_FILE_TYPE_NO_DECOMPRESS
./include/grub/file.h:135:5: note: 'GRUB_FILE_TYPE_NO_DECOMPRESS' declared here
    GRUB_FILE_TYPE_NO_DECOMPRESS = 0x20000
    ^
2 errors generated.
make[2]: *** [grub-core/osdep/grub_mkrescue-blocklist.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

有没有办法解决这个问题,或者只是我的笔记本电脑不兼容?

4

0 回答 0