Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3Gk3-0002QR-9P for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 18:11:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Gk2-0002QM-DN for grub-devel@gnu.org; Wed, 28 Oct 2009 18:11:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Gjw-0002Pk-GS for grub-devel@gnu.org; Wed, 28 Oct 2009 18:11:41 -0400 Received: from [199.232.76.173] (port=47513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Gjw-0002Ph-6n for grub-devel@gnu.org; Wed, 28 Oct 2009 18:11:36 -0400 Received: from mail-gx0-f224.google.com ([209.85.217.224]:36169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Gjv-00088L-UJ for grub-devel@gnu.org; Wed, 28 Oct 2009 18:11:36 -0400 Received: by gxk24 with SMTP id 24so3236632gxk.6 for ; Wed, 28 Oct 2009 15:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=A7QSna3vtTuV73Km8YQ2tzI/ALRglV8v2N4Mv1avpBU=; b=Re9cMihfoYOQTdVIeKQ1a/TObTrxtJ+aMRB66OwK+1pv6+rtnHC88PnZz66gxfcKKO M2+raJqBGxOEdXcjErwCymeUTzKXLuLNnvUi8ZLb8NYCyomdBquypae48ILSmuyJ/fSb lF0MVrbHA9my7aG1a9QtdmZWLdGMLuj6IY4+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ncL4X1+I8bCMlrE3nRHMmuy+PaZsOfQOtOzRTwF2vikBxQPalfiIHJdprW84EJsy1g kW6FeKO9E6EIPkD7qoDjNeAVxXuR2ZopZaPDEGv7flYFDFoS1PVbF+V3h+4XPVS1z0lw ymFR+cG//bcg8O7egHpcxN42WSFhCdeltaF30= MIME-Version: 1.0 Received: by 10.90.11.30 with SMTP id 30mr1596974agk.42.1256767895019; Wed, 28 Oct 2009 15:11:35 -0700 (PDT) From: =?ISO-8859-1?Q?Andr=E9_Lopes?= Date: Wed, 28 Oct 2009 22:11:13 +0000 Message-ID: To: grub-devel@gnu.org Content-Type: multipart/alternative; boundary=00163616421ff2a31204770613d2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: 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:11:42 -0000 --00163616421ff2a31204770613d2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 th= e 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 function) 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 function) 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 function) 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 function) 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? Many thanks, --=20 Andr=E9 Lopes --00163616421ff2a31204770613d2 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi all,

I'm trying to build Grub2 in my Macbook5,1. The OSX vers= ion 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 co= mpiled with following components:
Platform: i386-efi
grub-emu: YesUSB support for grub-emu: Yes
With memory debugging: No
efiemu runti= me: No (cannot compile with -m64 -mcmodel=3Dlarge -mno-red-zone -nostdlib)<= br> grub-fstest: Yes
grub-mkfont: Yes
***********************************= ********************

Everything looks fine, so i issue a make comman= d, that gives me this error:
cc1: warnings being treated as errors
kern/misc.c:62: warning: no previous prototype for =91memcpy=92
kern/mis= c.c:66: warning: no previous prototype for =91memmove=92
make: *** [kern= el_mod-kern_misc.o] Error 1

I've tryied also to configure with t= he argument --disable-werror, but on the make the error is similar:
gcc -I. -I./. -I. -I./include -I./include -Wall -W=A0 -Wall -W -Wshadow -Wp= ointer-arith -Wmissing-prototypes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 -Wundef -Wstrict-prototypes -g -Os -falign-jumps=3D1 -falign-loop= s=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 -f= no-builtin -m32 -MD -c -o kernel_mod-symlist.o symlist.c
symlist.c: In function =91grub_register_exported_symbols=92:
symlist.c:2= 19: error: =91memcmp=92 undeclared (first use in this function)
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: (nea= r initialization for =91tab[157].addr=92)
symlist.c:220: error: =91memcp= y=92 undeclared (first use in this function)
symlist.c:220: warning: mis= sing initializer
symlist.c:220: warning: (near initialization for =91tab[158].addr=92)
sy= mlist.c:221: error: =91memmove=92 undeclared (first use in this function)symlist.c:221: warning: missing initializer
symlist.c:221: warning: (n= ear initialization for =91tab[159].addr=92)
symlist.c:222: error: =91memset=92 undeclared (first use in this function)<= br>symlist.c:222: warning: missing initializer
symlist.c:222: warning: (= near initialization for =91tab[160].addr=92)
symlist.c:226: error: dupli= cate case value
symlist.c:226: error: previously used here
make: *** [kernel_mod-symlist= .o] Error 1
=A0
Can anyone help me on this issue?
Many thanks,
--
Andr=E9 Lopes
--00163616421ff2a31204770613d2--