Grub won't make on Cygwin

旧城冷巷雨未停 提交于 2019-12-12 02:46:20

问题


It seems that information about using the two together is not easy to come by. When trying to make I get some fun errors. I was wondering if my version of gcc (4.7) won't cut it or I'm lacking a dependency.

I included...

  • GCC
  • GNU Make
  • GNU Bison
  • GNU gettext
  • GNU binutils
  • Flex

Am doubtful about but am beginning to wonder if it matters

  • libdevmapper

The error that occurs in Cygwin x86 - Possibly GCC 4.7 related?

../grub-2.00/grub-core/lib/xzembed/xz_dec_lzma2.c:534:29: error: always_inline function might not be inlinable [-Werror=attributes]

回答1:


FYI, the problem appears to have something to do with header sizes being larger than expected. The issue is related to this problem:

http://lists.gnu.org/archive/html/grub-devel/2013-12/msg00342.html

Do this:

export TARGET_CFLAGS="-Qn"

...and rebuild from a fresh grub-2.00 source directory. That should fix things up.



来源:https://stackoverflow.com/questions/19776217/grub-wont-make-on-cygwin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!