Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M3T3R-0003r0-Ps for mharc-grub-devel@gnu.org; Mon, 11 May 2009 06:48:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3T3P-0003pa-AB for grub-devel@gnu.org; Mon, 11 May 2009 06:48:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3T3K-0003nE-3j for grub-devel@gnu.org; Mon, 11 May 2009 06:48:14 -0400 Received: from [199.232.76.173] (port=38960 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3T3J-0003n7-Um for grub-devel@gnu.org; Mon, 11 May 2009 06:48:10 -0400 Received: from mail-qy0-f116.google.com ([209.85.221.116]:61333) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3T3J-0005Sg-60 for grub-devel@gnu.org; Mon, 11 May 2009 06:48:09 -0400 Received: by qyk14 with SMTP id 14so3882877qyk.14 for ; Mon, 11 May 2009 03:48:03 -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 :date:message-id:subject:from:to:content-type; bh=JsIjX55UqxObwyMXJRCqfbSFwtvRhYWww0TP2eHerXQ=; b=bGp2MzzGDZOry8fU/HnHEhLn//EnB4EOlHZlCuTy6sNLrHm8xeatx5sWkQAArKmtOV xBJnWxtdnZCfWzsHvhpkkHvV8ky2vwDzz6xF0n+NAuYY3yFhLk39/KLoU/xP+ULJiBjX I1PDPTEBiYyYRlibaxbGqpCSBacyHCyX6QkB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TVsBobIEUH/NqlCjiUi/gDRO3vGtsnBGHA+CtHYam3AYN/3A+VDXI3U8G7PYql6HQO xqXOeTJwnkoIzLSwcdDWg9OBdYPF5O+j/7UhWvXCFQ35teOMzsvEhDM5mc/OCiR2uy6f IoNNSTq/AfC3m1Dm3mqQGdTeI41iKzuyLeS9s= MIME-Version: 1.0 Received: by 10.220.85.130 with SMTP id o2mr10562814vcl.80.1242038881479; Mon, 11 May 2009 03:48:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 May 2009 20:48:01 +1000 Message-ID: <48f46e890905110348u23ca548bh68b068cb4cc9008@mail.gmail.com> From: Peter Cros To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0016e646528453ee840469a0b682 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Make grub2 compile with Apple's gcc 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: Mon, 11 May 2009 10:48:15 -0000 --0016e646528453ee840469a0b682 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, patches were applied with grub2 rev 2202, compiles and builds grub.efi in Mac OSX 10.5.6 , i686-apple-darwin9-gcc-4.0.1, with no errors, but fails to run grub.efi. ./configure --with-platform=efi --target=x86_64 ./grub-mkimage -d . -o grubosx.efi appleldr boot cat cmp chain configfile crc date echo ext2 fixvideo fat fs_uuid gpt gptsync halt help hexdump hfs hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs pc pci reboot reiserfs read scsi sleep search sh video videotest xfs rEFIt then gives - Starting grubosx.efi and hangs there (i.e. before the Welcome to GRUB). Attempt to compile macho2img.c gave error, but is this needed for x86_64? On Mon, May 11, 2009 at 2:46 AM, Vladimir 'phcoder' Serbinenko < phcoder@gmail.com> wrote: > Hello. With this patch you can compile grub2 using Apple's gcc. Only > partially tested. You need objconv available from > http://www.agner.org/optimize/ licensed under GPL and additionally patched > with attached patch > Then you need to patch grub2 with attached patch. If you compile for > i386-pcbefore you begin you need to compile execute: > gcc -o macho2img util/macho2img.c -Iinclude > Then just compile grub2 normally. I will look how to automatise the > compilation of macho2img > -- > Regards > Vladimir 'phcoder' Serbinenko > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Cros (pxw) --0016e646528453ee840469a0b682 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

patches were applied with grub2 rev 2202,= compiles and builds grub.efi in Mac OSX 10.5.6 , i686-apple-darwin9-gcc-4.= 0.1, with no errors, but fails to run grub.efi.

./configure =A0--with-platform=3Defi --target=3Dx86_64

=
./grub-mkimage -d . -o grubosx.efi appleldr boot cat cmp chain configf= ile crc date echo ext2 fixvideo fat fs_uuid gpt gptsync halt help hexdump h= fs =A0hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs p= c pci reboot reiserfs read scsi sleep search sh video videotest xfs

rEFIt then gives -
=A0=A0 =A0Starting grubosx= .efi
and hangs there (i.e. before the Welcome to GRUB).

Attempt to compile macho2img.c gave error, but is this need= ed for x86_64?


On Mon, May 11, 2009 at 2:46 = AM, Vladimir 'phcoder' Serbinenko <phcoder@gmail.com> wrote:
Hello. With this patch you can compile grub2 using Apple's gcc. Only pa= rtially tested. You need objconv available from http://www.agner.org/optimize/ licens= ed under GPL and additionally patched with attached patch
Then you need to patch grub2 with attached patch. If you compile for i386-p= cbefore you begin you need to compile execute:
gcc -o macho2img util/mac= ho2img.c -Iinclude
Then just compile grub2 normally. I will look how to = automatise the compilation of macho2img
--
Regards
Vladimir 'phcoder' Serbin= enko

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




--
Cros (pxw)

<= br> --0016e646528453ee840469a0b682--