如何解决GRUB 编译出现 2 个错误
我一直在尝试在 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
有没有办法解决这个问题,或者只是我的笔记本电脑不兼容?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。