From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HpT7J-0001QB-Bd for mharc-grub-devel@gnu.org; Sat, 19 May 2007 13:53:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpT7H-0001P8-Ab for grub-devel@gnu.org; Sat, 19 May 2007 13:53:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpT7F-0001OI-Or for grub-devel@gnu.org; Sat, 19 May 2007 13:53:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpT7F-0001OC-Kk for grub-devel@gnu.org; Sat, 19 May 2007 13:53:17 -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 1HpT7E-00044U-UB for grub-devel@gnu.org; Sat, 19 May 2007 13:53:17 -0400 Received: from cable-81-173-167-248.netcologne.de ([81.173.167.248] helo=t-stueck.studentenbude.ath.cx) by khepri.openbios.org with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.67) (envelope-from ) id 1HpT7C-0007Hs-EB for grub-devel@gnu.org; Sat, 19 May 2007 19:53:15 +0200 Received: from [192.168.1.201] (divert.studentenbude.ath.cx [192.168.1.201]) by t-stueck.studentenbude.ath.cx (8.13.7+Sun/8.13.7) with ESMTP id l4JHr6Jt027366 for ; Sat, 19 May 2007 19:53:12 +0200 (CEST) Message-ID: <464F39B7.9080209@georgi-clan.de> Date: Sat, 19 May 2007 19:53:59 +0200 From: Patrick Georgi User-Agent: Thunderbird 1.5.0.8 (X11/20061204) MIME-Version: 1.0 To: The development of GRUB 2 References: <464F1811.7060507@georgi-clan.de> <200705191944.13081.okuji@enbug.org> In-Reply-To: <200705191944.13081.okuji@enbug.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (t-stueck.studentenbude.ath.cx [192.168.1.200]); Sat, 19 May 2007 19:53:13 +0200 (CEST) X-DynaStop: Dynamic IP address/81.173.167.248 X-Spam-Score: -1.6 (-) 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: Sat, 19 May 2007 17:53:19 -0000 Yoshinori K. Okuji schrieb: > On Saturday 19 May 2007 17:30, Patrick Georgi wrote: > >> 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. >> > > They are necessary. Otherwise, you cannot make a core image, for example. > uhm. where do you expect a target compiled file (ie. one that's run at boot time) to use libc? I'm _not_ talking about the host compiler - here everything works fine, after all, there's no linker abuse going on there, just the average compile+link process. > Also, without grub-emu, how do you plan to debug GRUB? > qemu - the portions I work on need it anyway > BTW I can hardly believe that it is so difficult to use gnu build tools on > solaris. Otherwise, how are opensolaris developers building GRUB? > Compiling gcc 4.2 (or 4.1.2) with gnu as and gnu ld in the back end resulted in compile errors here, when I tried to do a "normal" build. The grub (0.95 btw!) in the OpenSolaris tree features a parallel makefile hierarchy that uses /usr/sfw/bin/gcc (which uses Sun tools in the back end) and, it seems, manual invocations of gnu ld. so here you are - they basically link by hand Regards, Patrick Georgi