From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Or8Qr-0001Y5-1n for mharc-grub-devel@gnu.org; Thu, 02 Sep 2010 07:58:17 -0400 Received: from [140.186.70.92] (port=49233 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Or8Qn-0001VG-L5 for grub-devel@gnu.org; Thu, 02 Sep 2010 07:58:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Or8Qm-0006fj-6R for grub-devel@gnu.org; Thu, 02 Sep 2010 07:58:13 -0400 Received: from col0-omc3-s14.col0.hotmail.com ([65.55.34.152]:47436) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Or8Qm-0006fJ-2N for grub-devel@gnu.org; Thu, 02 Sep 2010 07:58:12 -0400 Received: from COL109-W22 ([65.55.34.135]) by col0-omc3-s14.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Sep 2010 04:58:10 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_0599c028-c559-4286-8efa-874edd49c442_" X-Originating-IP: [81.244.129.171] From: lode leroy To: Date: Thu, 2 Sep 2010 13:58:10 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 02 Sep 2010 11:58:10.0335 (UTC) FILETIME=[1D1052F0:01CB4A96] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ Subject: (no subject) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 11:58:14 -0000 --_0599c028-c559-4286-8efa-874edd49c442_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I tried compiling grub from bzr on cygwin. grub-mkimage failed with the following error: ~/grub/build/grub-core $ ../grub-mkimage -v -O i386-pc -d . -o core.img bio= sdisk part_msdos fat ntfs ../grub-mkimage: info: getting the size of ./biosdisk.mod. ../grub-mkimage: info: getting the size of ./part_msdos.mod. ../grub-mkimage: info: getting the size of ./fat.mod. ../grub-mkimage: info: getting the size of ./fshelp.mod. ../grub-mkimage: info: getting the size of ./ntfs.mod. ../grub-mkimage: info: the total module size is 0x6280. ../grub-mkimage: info: getting the size of ./kernel.img. ../grub-mkimage: info: reading ./kernel.img. ../grub-mkimage: info: getting the size of ./kernel.img. ../grub-mkimage: error: invalid ELF header. I found that the problem can be solved by replacing the following line in t= he Makefile strip -v -R .rel.dyn -R .reginfo -R .note -R .comment -o kernel.img kernel= .exec.exe by strip -Felf32-i386 -v -R .rel.dyn -R .reginfo -R .note -R .comment -o kern= el.img kernel.exec.exe -- lode = --_0599c028-c559-4286-8efa-874edd49c442_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I tried compiling grub from bzr on cygwin.

grub-mkimage failed with = the following error:

~/grub/build/grub-core $ ../grub-mkimage -v -O = i386-pc -d . -o core.img biosdisk part_msdos fat ntfs
../grub-mkimage: i= nfo: getting the size of ./biosdisk.mod.
../grub-mkimage: info: getting = the size of ./part_msdos.mod.
../grub-mkimage: info: getting the size of= ./fat.mod.
../grub-mkimage: info: getting the size of ./fshelp.mod.
= ../grub-mkimage: info: getting the size of ./ntfs.mod.
../grub-mkimage: = info: the total module size is 0x6280.
../grub-mkimage: info: getting th= e size of ./kernel.img.
../grub-mkimage: info: reading ./kernel.img.
= ../grub-mkimage: info: getting the size of ./kernel.img.
../grub-mkimage= : error: invalid ELF header.

I found that the problem can be solved = by replacing the following line in the Makefile

strip -v -R .rel.dyn= -R .reginfo -R .note -R .comment =3B -o kernel.img kernel.exec.exe
=
by

strip -Felf32-i386 -v -R .rel.dyn -R .reginfo -R .note -R .co= mment =3B -o kernel.img kernel.exec.exe

-- lode
<= /body> = --_0599c028-c559-4286-8efa-874edd49c442_--