Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M3Yda-0005AZ-H7 for mharc-grub-devel@gnu.org; Mon, 11 May 2009 12:45:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3YdX-00059e-0v for grub-devel@gnu.org; Mon, 11 May 2009 12:45:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3YdT-00059J-8o for grub-devel@gnu.org; Mon, 11 May 2009 12:45:54 -0400 Received: from [199.232.76.173] (port=51770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3YdS-00059G-Gv for grub-devel@gnu.org; Mon, 11 May 2009 12:45:50 -0400 Received: from mx20.gnu.org ([199.232.41.8]:60984) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3YdS-0004Dj-4c for grub-devel@gnu.org; Mon, 11 May 2009 12:45:50 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3YdR-0002rc-HH for grub-devel@gnu.org; Mon, 11 May 2009 12:45:49 -0400 Received: by ewy6 with SMTP id 6so3723593ewy.42 for ; Mon, 11 May 2009 09:45:47 -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 :content-transfer-encoding; bh=PjkPvAgSn/nNeB4+gX2ph37j4yIpVmMRAx3iJwo6zVQ=; b=lo5ovPphE5NaVcRDn2AU8UNjIsodVotMjFP2lSpvMI34T3g/r4vwO4N9KScbFf6Nby Ztrgk1LqIoV84htMS5EGX2V38aqA6YQ3iXN2CSJ7MwVJIxP5xlxNMIHigMXgcqfQXXr7 UALg3ZuKP0moqUJfQwdG5YSI7ALc4fS0Q5hYI= 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:content-transfer-encoding; b=DpFUAR8M0GqnlXjS2bCvajRFOwOZH2Ky/ZaLJxhRaCNon5h8DcXLCofG42VEeilg0j 2swjwJkWOg6PkMyraR1dolJgYtHNjIAwP7ZuBL9r4ElPVIT0wTgbBtBWiBXot6KhTKIm jsK29YmTRCuP7FJvzg0Zfz2LWdPnnvmsvQM3o= MIME-Version: 1.0 Received: by 10.210.82.13 with SMTP id f13mr277122ebb.85.1242060345543; Mon, 11 May 2009 09:45:45 -0700 (PDT) In-Reply-To: References: <48f46e890905110348u23ca548bh68b068cb4cc9008@mail.gmail.com> Date: Mon, 11 May 2009 18:45:45 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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 16:45:55 -0000 On Mon, May 11, 2009 at 6:30 PM, Vladimir 'phcoder' Serbinenko wrote: > On Mon, May 11, 2009 at 12:48 PM, Peter Cros wrote: >> >> Hi, >> patches were applied with grub2 rev 2202, compiles and builds grub.efi i= n 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 configfil= e crc date echo ext2 fixvideo fat fs_uuid gpt gptsync halt help hexdump hfs= =A0hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs pc = 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). > Also it looks like the problems are limited to kernel.mod. If you take this file from linux build rest should be fine > It's a bug in grub-mkimage - it inappropriately assumes that text is a > first segment. I'll fix it. Temporarily you can just comment out the > following line: > util/i386/efi/grub-mkimage.c: line 104: strcpy (kernel_image + sizeof > (Elf_Ehdr) + GRUB_KERNEL_MACHINE_PREFIX, prefix); >> >> 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 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/optimi= ze/ licensed under GPL and additionally patched with attached patch >>> Then you need to patch grub2 with attached patch. If you compile for i3= 86-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 com= pilation of macho2img >>> -- >>> Regards >>> Vladimir 'phcoder' Serbinenko >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> http://lists.gnu.org/mailman/listinfo/grub-devel >>> >> >> >> >> -- >> Cros (pxw) >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> > > > > -- > Regards > Vladimir 'phcoder' Serbinenko > --=20 Regards Vladimir 'phcoder' Serbinenko