Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3H7Q-0006qC-Fb for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 18:35:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3H7O-0006o9-Tx for grub-devel@gnu.org; Wed, 28 Oct 2009 18:35:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3H7K-0006iw-2I for grub-devel@gnu.org; Wed, 28 Oct 2009 18:35:50 -0400 Received: from [199.232.76.173] (port=53051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3H7J-0006ic-TW for grub-devel@gnu.org; Wed, 28 Oct 2009 18:35:46 -0400 Received: from mail-yw0-f194.google.com ([209.85.211.194]:46960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3H7J-0002xO-19 for grub-devel@gnu.org; Wed, 28 Oct 2009 18:35:45 -0400 Received: by ywh32 with SMTP id 32so1135816ywh.14 for ; Wed, 28 Oct 2009 15:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=dp10JoqRfQpp6ATbQnxc5v3GvNI+SNKD47xMNT202lE=; b=S1mgncP+RyGZ4IaiWWrSo6F+YGirpF+nGGozxEw9aoeeNNTtKiBPpuWdp7y3gmoLJZ tqGc9otGawpNoTkPkoWLAYj5KrfVmj6n+YF/MKiY2RWb2ppucBTZOIgfMx/6r9JlaZHD 48aXo6bjC5u/qzZH0sLvqIE/WS7j08ev36psQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=BAE8c/4uvrg/ZMQUxZ1rdxPL6Jd10wpj7lM6lRNBi2ulmG4k8bwj9+6sXSJc1LGZUJ nrMPdRghYavWqOJoszB0Z6kXoLGVgfycL5Tl3gRRpmngh8Y1tw9Sx7yMuHFKqLGnPCHs rFBvyZ5SAZjXSkGQ6DjXsUJnG9cSYrdgtJ1dE= MIME-Version: 1.0 Received: by 10.91.178.19 with SMTP id f19mr168324agp.33.1256769343633; Wed, 28 Oct 2009 15:35:43 -0700 (PDT) In-Reply-To: <4AE8C29C.1070409@gmail.com> References: <4AE8C29C.1070409@gmail.com> From: =?ISO-8859-1?Q?Andr=E9_Lopes?= Date: Wed, 28 Oct 2009 22:35:23 +0000 Message-ID: To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0016e64714104ab8720477066a4c X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Problem building Grub2 on OSX X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 22:35:51 -0000 --0016e64714104ab8720477066a4c Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Yes it was that. Now it builds almost fine! Now it just gives an ignored error building the docs, i think: Updating ./docs/version.texi ./install-sh -c -d docs /usr/bin/makeinfo -P ./docs --no-split --force docs/grub.texi -o docs/ grub.info ./docs/grub.texi:1552: Prev reference to nonexistent node `Internals' (perhaps incorrect sectioning?). ... ./docs/grub.texi:81: Menu reference to nonexistent node `Network' (perhaps incorrect sectioning?). ./docs/grub.texi:80: Menu reference to nonexistent node `Configuration' (perhaps incorrect sectioning?). ./docs/grub.texi:964: warning: unreferenced node `Menu entry editor'. make: [docs/grub.info] Error 1 (ignored) Many thanks for the help! On Wed, Oct 28, 2009 at 10:15 PM, Vladimir 'phcoder' Serbinenko < phcoder@gmail.com> wrote: > Andr=E9 Lopes wrote: > > Hi all, > > > > I'm trying to build Grub2 in my Macbook5,1. The OSX version is 10.5.8, > > and the Grub2 source code was obtained from the SVN trunk > > > > So, after the ./configure --with-platform=3Defi --target=3Di386 i get t= his: > > ******************************************************* > > GRUB2 will be compiled with following components: > > Platform: i386-efi > > grub-emu: Yes > > USB support for grub-emu: Yes > > With memory debugging: No > > efiemu runtime: No (cannot compile with -m64 -mcmodel=3Dlarge > > -mno-red-zone -nostdlib) > > grub-fstest: Yes > > grub-mkfont: Yes > > ******************************************************* > > > > Everything looks fine, so i issue a make command, that gives me this > > error: > > cc1: warnings being treated as errors > > kern/misc.c:62: warning: no previous prototype for =91memcpy=92 > > kern/misc.c:66: warning: no previous prototype for =91memmove=92 > > make: *** [kernel_mod-kern_misc.o] Error 1 > > > > I've tryied also to configure with the argument --disable-werror, but > > on the make the error is similar: > > gcc -I. -I./. -I. -I./include -I./include -Wall -W -Wall -W -Wshadow > > -Wpointer-arith -Wmissing-prototypes -Wundef > > -Wstrict-prototypes -g -Os -falign-jumps=3D1 -falign-loops=3D1 > > -falign-functions=3D1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow > > -DAPPLE_CC=3D1 -fnested-functions -m32 -fno-stack-protector > > -mno-stack-arg-probe -fno-builtin -m32 -MD -c -o kernel_mod-symlist.o > > symlist.c > > symlist.c: In function =91grub_register_exported_symbols=92: > > symlist.c:219: error: =91memcmp=92 undeclared (first use in this functi= on) > > symlist.c:219: error: (Each undeclared identifier is reported only once > > symlist.c:219: error: for each function it appears in.) > > symlist.c:219: warning: missing initializer > > symlist.c:219: warning: (near initialization for =91tab[157].addr=92) > > symlist.c:220: error: =91memcpy=92 undeclared (first use in this functi= on) > > symlist.c:220: warning: missing initializer > > symlist.c:220: warning: (near initialization for =91tab[158].addr=92) > > symlist.c:221: error: =91memmove=92 undeclared (first use in this funct= ion) > > symlist.c:221: warning: missing initializer > > symlist.c:221: warning: (near initialization for =91tab[159].addr=92) > > symlist.c:222: error: =91memset=92 undeclared (first use in this functi= on) > > symlist.c:222: warning: missing initializer > > symlist.c:222: warning: (near initialization for =91tab[160].addr=92) > > symlist.c:226: error: duplicate case value > > symlist.c:226: error: previously used here > > make: *** [kernel_mod-symlist.o] Error 1 > > > > Can anyone help me on this issue? > > > It seems to be caused by following commit: > 2009-10-25 Robert Millan > > * include/grub/misc.h: Fix wrong evaluation of APPLE_CC. > (memset): Fix function prototype. > In particular by following part: > --- include/grub/misc.h 2009-10-24 23:22:14 +0000 > +++ include/grub/misc.h 2009-10-25 15:14:08 +0000 > @@ -75,11 +75,11 @@ > } > > /* Prototypes for aliases. */ > -#if !defined (GRUB_UTIL) || !defined (APPLE_CC) > +#if !defined (GRUB_UTIL) && !defined (APPLE_CC) > int EXPORT_FUNC(memcmp) (const void *s1, const void *s2, grub_size_t n); > void *EXPORT_FUNC(memmove) (void *dest, const void *src, grub_size_t n); > void *EXPORT_FUNC(memcpy) (void *dest, const void *src, grub_size_t n); > > It should have been > -#if !defined (GRUB_UTIL) || !defined (APPLE_CC) > +#if !defined (GRUB_UTIL) > Try this way and report back > > > > Many thanks, > > -- > > Andr=E9 Lopes > > -----------------------------------------------------------------------= - > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > > -- > Regards > Vladimir 'phcoder' Serbinenko > Personal git repository: http://repo.or.cz/w/grub2/phcoder.git > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Andr=E9 Lopes Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." --0016e64714104ab8720477066a4c Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Yes it was that. Now it builds almost fine!

Now it just gives an ign= ored error building the docs, i think:

Updating ./docs/version.texi<= br>./install-sh -c -d docs
/usr/bin/makeinfo -P ./docs --no-split --forc= e docs/grub.texi -o docs/grub.info
./docs/grub.texi:1552: Prev reference to nonexistent node `Internals' (= perhaps incorrect sectioning?).

...

./docs/grub.texi:81: Menu= reference to nonexistent node `Network' (perhaps incorrect sectioning?= ).
./docs/grub.texi:80: Menu reference to nonexistent node `Configuration'= (perhaps incorrect sectioning?).
./docs/grub.texi:964: warning: unrefer= enced node `Menu entry editor'.
make: [docs/grub.info] Error 1 (ignored)

Many thanks for the help!


On Wed, Oct 28, 2009 at 10:15 PM, = Vladimir 'phcoder' Serbinenko <phcoder@gmail.com> wrote:
<= div class=3D"h5">Andr=E9 Lopes wrote:
> Hi all,
>
> I'm trying to build Grub2 in my Macbook5,1. The OSX version is 10.= 5.8,
> and the Grub2 source code was obtained from the SVN trunk
>
> So, after the ./configure --with-platform=3Defi --target=3Di386 i get = this:
> *******************************************************
> GRUB2 will be compiled with following components:
> Platform: i386-efi
> grub-emu: Yes
> USB support for grub-emu: Yes
> With memory debugging: No
> efiemu runtime: No (cannot compile with -m64 -mcmodel=3Dlarge
> -mno-red-zone -nostdlib)
> grub-fstest: Yes
> grub-mkfont: Yes
> *******************************************************
>
> Everything looks fine, so i issue a make command, that gives me this > error:
> cc1: warnings being treated as errors
> kern/misc.c:62: warning: no previous prototype for =91memcpy=92
> kern/misc.c:66: warning: no previous prototype for =91memmove=92
> make: *** [kernel_mod-kern_misc.o] Error 1
>
> I've tryied also to configure with the argument --disable-werror, = but
> on the make the error is similar:
> gcc -I. -I./. -I. -I./include -I./include -Wall -W =A0-Wall -W -Wshado= w
> -Wpointer-arith -Wmissing-prototypes =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0-Wundef
> -Wstrict-prototypes -g -Os -falign-jumps=3D1 -falign-loops=3D1
> -falign-functions=3D1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow
> -DAPPLE_CC=3D1 -fnested-functions -m32 -fno-stack-protector
> -mno-stack-arg-probe -fno-builtin -m32 -MD -c -o kernel_mod-symlist.o<= br> > symlist.c
> symlist.c: In function =91grub_register_exported_symbols=92:
> symlist.c:219: error: =91memcmp=92 undeclared (first use in this funct= ion)
> symlist.c:219: error: (Each undeclared identifier is reported only onc= e
> symlist.c:219: error: for each function it appears in.)
> symlist.c:219: warning: missing initializer
> symlist.c:219: warning: (near initialization for =91tab[157].addr=92)<= br> > symlist.c:220: error: =91memcpy=92 undeclared (first use in this funct= ion)
> symlist.c:220: warning: missing initializer
> symlist.c:220: warning: (near initialization for =91tab[158].addr=92)<= br> > symlist.c:221: error: =91memmove=92 undeclared (first use in this func= tion)
> symlist.c:221: warning: missing initializer
> symlist.c:221: warning: (near initialization for =91tab[159].addr=92)<= br> > symlist.c:222: error: =91memset=92 undeclared (first use in this funct= ion)
> symlist.c:222: warning: missing initializer
> symlist.c:222: warning: (near initialization for =91tab[160].addr=92)<= br> > symlist.c:226: error: duplicate case value
> symlist.c:226: error: previously used here
> make: *** [kernel_mod-symlist.o] Error 1
>
> Can anyone help me on this issue?
>
It seems to be caused by following commit:
=A02009-10-25 =A0Robert Millan =A0<rmh.grub@aybabtu.com>

=A0 =A0 =A0 =A0 =A0* include/grub/misc.h: Fix wrong evaluation of APPLE_CC= .
=A0 =A0 =A0 =A0 =A0(memset): Fix function prototype.
In particular by following part:
--- include/grub/misc.h 2009-10-24 23:22:14 +0000
+++ include/grub/misc.h 2009-10-25 15:14:08 +0000
@@ -75,11 +75,11 @@
=A0}

=A0/* Prototypes for aliases. =A0*/
-#if !defined (GRUB_UTIL) || !defined (APPLE_CC)
+#if !defined (GRUB_UTIL) && !defined (APPLE_CC)
=A0int EXPORT_FUNC(memcmp) (const void *s1, const void *s2, grub_size_t n);=
=A0void *EXPORT_FUNC(memmove) (void *dest, const void *src, grub_size_t n);=
=A0void *EXPORT_FUNC(memcpy) (void *dest, const void *src, grub_size_t n);<= br>
It should have been
-#if !defined (GRUB_UTIL) || !defined (APPLE_CC)
+#if !defined (GRUB_UTIL)
Try this way and report back


> Many thanks,
> --
> Andr=E9 Lopes
> ----------------------------------------------------------------------= --
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>


--
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Andr=E9 Lopes
Joan Crawford =A0- "I, Joan Crawford, I believe in the= dollar. Everything I earn, I spend." --0016e64714104ab8720477066a4c--