grub-devel
[Top][All Lists]
Advanced

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

Re: Problem building Grub2 on OSX


From: André Lopes
Subject: Re: Problem building Grub2 on OSX
Date: Thu, 29 Oct 2009 22:19:05 +0000

Continuing this thread, today i was going to make grub.efi file, and then another error om grub-mkimage:

Command:
./grub-mkimage -v -d . -o grub.efi part_gpt hfsplus fat ext2 normal sh chain boot configfile

Output:
(...)
grub-mkimage: info: locating grub_zalloc at 0x4829
grub-mkimage: info: locating memcpy at 0x3b82
grub-mkimage: info: locating memmove at 0x3bc6
grub-mkimage: info: locating start at 0x400
grub-mkimage: info: locating start at 0x400
grub-mkimage: error: undefined symbol memcmp


After this i've tried to "svn update"(r2672) the sources but in the make execution:

gcc -Ikern -I./kern -nostdinc -I. -I./include -I./include -Wall -W  -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes                  -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -DAPPLE_CC=1 -fnested-functions -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -fno-builtin -m32 -MD -c -o kernel_mod-kern_main.o kern/main.c
In file included from kern/main.c:21:
./include/grub/misc.h:23:20: error: stdarg.h: No such file or directory
In file included from kern/main.c:21:
./include/grub/misc.h:178: error: syntax error before ‘va_list’
cc1: warnings being treated as errors
./include/grub/misc.h:178: warning: function declaration isn’t a prototype
./include/grub/misc.h:180: error: syntax error before ‘va_list’
./include/grub/misc.h:180: warning: function declaration isn’t a prototype
make: *** [kernel_mod-kern_main.o] Error 1
 
Any hints, on this problem? The svn tag release_1_97 compiles just fine with the include of stdarg.h.

On Wed, Oct 28, 2009 at 10:56 PM, Robert Millan <address@hidden> wrote:
On Wed, Oct 28, 2009 at 10:35:23PM +0000, André Lopes wrote:
> Yes it was that. Now it builds almost fine!

Fixed in SVN, thank you.

> Now it just gives an ignored error building the docs, i think:
>
> [...]
> make: [docs/grub.info] Error 1 (ignored)

This is to be expected.  Patches welcome.

--
Robert Millan

 The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
 how) you may access your data; but nobody's threatening your freedom: we
 still allow you to remove your data and not access it at all."


_______________________________________________



--
André Lopes
Jonathan Swift  - "May you live every day of your life."
reply via email to

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