Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LciTp-0007e3-Im for mharc-grub-devel@gnu.org; Thu, 26 Feb 2009 10:48:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LciTo-0007dQ-Aq for grub-devel@gnu.org; Thu, 26 Feb 2009 10:48:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LciTm-0007cp-QT for grub-devel@gnu.org; Thu, 26 Feb 2009 10:48:55 -0500 Received: from [199.232.76.173] (port=49461 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LciTm-0007cm-L8 for grub-devel@gnu.org; Thu, 26 Feb 2009 10:48:54 -0500 Received: from ey-out-1920.google.com ([74.125.78.144]:30677) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LciTm-0000mC-6F for grub-devel@gnu.org; Thu, 26 Feb 2009 10:48:54 -0500 Received: by ey-out-1920.google.com with SMTP id 4so144428eyg.24 for ; Thu, 26 Feb 2009 07:48:52 -0800 (PST) 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=e0rkW2dj1hkIPZtz1wP5PTNDfCdQjldFAlvOakrvs/U=; b=Q8ZIIFe0P+wc0vPceP53lGK+Ak2190gXSmJpo9N0uDrVW1xxcsKTi9MS2Jod5CzTm8 ob16+f0pN6nJVj0jLwab9nk9/WSUSPmTpFtJIoKtcoHgd+6Cs0SMqKVbf/FNLfz9QqmI imBR1ei9B9mE36s60g3XNBvdsCMtqACs8CBjc= 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=kGW0DdNY0Dv+qq/ea5gIqSQSqC4kEXn+anoaaRqDeD5DK9AaZX1G613LSW2j/RYP0o 9wgy3xDAf9Ey4tPSOovpg+hsEz6F1xZ5kCQZ//5hS7TumEQWhFk0DWI7pcWCgrGMk2qT u5OfCqWc2j0G4QF1oQu4LLJcTdSrK4tSfBuI8= MIME-Version: 1.0 Received: by 10.142.185.21 with SMTP id i21mr725017wff.220.1235663331710; Thu, 26 Feb 2009 07:48:51 -0800 (PST) In-Reply-To: <1LchKH-1cdto00@fwd02.aul.t-online.de> References: <5d3bb3090902260315n30ef082epd4321488c5c245cd@mail.gmail.com> <1LchKH-1cdto00@fwd02.aul.t-online.de> Date: Thu, 26 Feb 2009 15:48:51 +0000 Message-ID: <5d3bb3090902260748h3d15e67fg83d2dc6a2838267c@mail.gmail.com> From: Alexandre Bique To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Building grub2 for windows 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: Thu, 26 Feb 2009 15:48:56 -0000 On Thu, Feb 26, 2009 at 2:35 PM, Christian Franke wrote: > Alexandre Bique wrote: >> >> I am trying to build grub2-svn for windows by using mingw32 or cygwin >> but it fails to generate valid windows executables (grub-setup, >> grub-mkimage, etc...). >> >> My configure line: >> ./configure --prefix $HOME/grub-install >> >> using mingw32, msys, gcc 3.4.5 (mingw-vista special r3), binutils >> 2.19.1 >> I also tried with cygwin, gcc 3.4.4, binutils 2.18.50.20080625. >> > > Grub2 should build out of the box on Cygwin. The following works for me > with current grub2 svn (revision 2001) on current Cygwin 1.5.25-15: > > $ ./configure --enable-grub-fstest --prefix=/tmp/inst > $ make > $ make install > $ /tmp/inst/bin/grub-mkrescue grub-rescue.iso > ... boot grub-rescue.iso ... > > There is actually one issue in current grub2 svn: Build with > --enable-grub-emu configure option does not work. It fails with > undefined symbol 'grub_millisleep'. > > What is the error message you got on Cygwin ? The problem is that make install installs elf binaries and not win32 binaries. But win32 binaries are compiled. I moved win32 binaries by hand. There is also a problem if you specify a root directory with space, i think that some variables are not protected with "$my_var" in some shell scripts. Thank you very much. -- Alexandre Bique