grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiboot2.h includes stdint.h - not good


From: Pavel Roskin
Subject: multiboot2.h includes stdint.h - not good
Date: Mon, 23 Mar 2009 12:56:29 -0400

Hello!

The current GRUB reports this on stderr during compilation:

In file included from loader/i386/multiboot_helper.S:21:
./include/multiboot2.h:37:20: error: stdint.h: No such file or directory
In file included from loader/i386/multiboot_helper.S:21:
./include/multiboot2.h:37:20: error: stdint.h: No such file or directory
In file included from loader/i386/multiboot_helper.S:21:
./include/multiboot2.h:37:20: error: stdint.h: No such file or directory

There are two problems here.  One is that stdint.h cannot be found
(apparently, the default includes are not used when compiling for the
target).  Another problem is that the build succeeds despite such
errors.

I'm compiling in x86_64 environment (Fedora 10).  There are no arguments
to configure, so it's compiling for i386-pc.  glibc-devel-2.9-3.i386 is
installed.  /usr/include/stdint.h is present (provided by
glibc-headers-2.9-3.x86_64).

By the way, I already noticed that the inclusion of stdint.h from
multiboot2.h is one of the problems preventing cross-compilation of GRUB
without the libc for the target.  Perhaps GRUB should provide its
replacement for stdint.h when compiling for the target.  Alternatively,
multiboot2.h should use GRUB types.

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]