From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HppT0-0007sm-SM for mharc-grub-devel@gnu.org; Sun, 20 May 2007 13:45:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HppSz-0007sh-4y for grub-devel@gnu.org; Sun, 20 May 2007 13:45:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HppSx-0007sV-JC for grub-devel@gnu.org; Sun, 20 May 2007 13:45:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HppSx-0007sS-EN for grub-devel@gnu.org; Sun, 20 May 2007 13:45:11 -0400 Received: from khepri.openbios.org ([80.190.231.112]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HppSx-0002mw-06 for grub-devel@gnu.org; Sun, 20 May 2007 13:45:11 -0400 Received: from stepan by khepri.openbios.org with local (Exim 4.67) (envelope-from ) id 1HppSs-0002yr-Rh for grub-devel@gnu.org; Sun, 20 May 2007 19:45:06 +0200 Date: Sun, 20 May 2007 19:45:06 +0200 From: Stefan Reinauer To: The development of GRUB 2 Message-ID: <20070520174506.GC26265@coresystems.de> References: <464F1811.7060507@georgi-clan.de> <200705191944.13081.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200705191944.13081.okuji@enbug.org> X-Operating-System: Linux 2.6.21-119-default on an x86_64 User-Agent: Mutt/1.5.13 (2006-08-11) X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-detected-kernel: Linux 2.6 (newer, 3) Subject: Re: [PATCH] make grub2 compile with libc-less crosscompilers 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: Sun, 20 May 2007 17:45:13 -0000 * Yoshinori K. Okuji [070519 19:44]: > On Saturday 19 May 2007 17:30, Patrick Georgi wrote: > > I'm now using a cross compiler with target "i386-elf", ie. no operating > > system specification, which works fine so far. With grub2 I had an issue > > in the configuration process as some tests try to build executables with > > the target compiler that link libc (and potentially even more libs) - > > which don't exist in my configuration. > > As those are not necessary, I decided to modify grub2 instead of messing > > around even more with the not-so-nice gcc build system. I second this patch. Cleaning out platform dependencies where there should be none is a good goal on the long and stony road to portable software. > They are necessary. Otherwise, you cannot make a core image, for example. > Also, without grub-emu, how do you plan to debug GRUB? Can you please explain this? I would think grub-emu is something that needs to be compiled with the host compiler, not the target compiler. If you need the target, it is not an emulation, thus pretty useless. > BTW I can hardly believe that it is so difficult to use gnu build tools on > solaris. Otherwise, how are opensolaris developers building GRUB? Well, niche products are always hard to maintain. Try cross-compiling a driver from the mainstream operating system windows under the niche OS Linux and you will find lots of trouble, too. Not hard to believe. Cross compiling a Linux/BSD only product like Grub under Solaris is for sure easier, but not exactly trivial. Not hard to believe that one would not start fixing auto tools code without a reason ;-) Stefan -- coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br. Tel.: +49 761 7668825 • Fax: +49 761 7664613 Email: info@coresystems.de • http://www.coresystems.de/