问题描述
我一直在尝试在 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 (将#修改为@)