From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N0dXB-0005W5-55 for mharc-grub-devel@gnu.org; Wed, 21 Oct 2009 11:55:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0dX8-0005TJ-RC for grub-devel@gnu.org; Wed, 21 Oct 2009 11:55:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0dX4-0005NZ-PG for grub-devel@gnu.org; Wed, 21 Oct 2009 11:55:30 -0400 Received: from [199.232.76.173] (port=58058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0dX4-0005NJ-JL for grub-devel@gnu.org; Wed, 21 Oct 2009 11:55:26 -0400 Received: from sif.is.scarlet.be ([193.74.71.28]:50455) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0dX4-0004HO-01 for grub-devel@gnu.org; Wed, 21 Oct 2009 11:55:26 -0400 Received: from [213.49.126.232] (ip-213-49-126-232.dsl.scarlet.be [213.49.126.232]) (authenticated bits=0) by sif.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n9LFtHOR024039; Wed, 21 Oct 2009 17:55:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=scarlet.be; s=scarlet; t=1256140519; bh=zljvY9f+ymnJ0oHAia3KPvrcxtgwgrmF5XinY0ZTsG8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=xXK0n8tPMTuwsxCEAVhQMtIANdOd8GWByoEyA2cgetcKMJVfwFA0H77sMRqG8j50R yECP/Gddtb5rWs9bQJM78jmQ9kbJik3UxqpqJWXgpmi/n4BvNFNsFGoEb0eL8j/jjP XrCdwKcZlPtLcqkeKaB6KFf4PTK58uoT/MU7hHQ4= Message-ID: <4ADF2EE4.2020008@scarlet.be> Date: Wed, 21 Oct 2009 15:55:16 +0000 From: rubisher User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <20091012.032838.82254107.davem@davemloft.net> <4AD70E53.80004@gmail.com> <1255646501.13480.32.camel@mj> <20091016.054440.193711272.davem@davemloft.net> <1255742496.2746.26.camel@mj> <20091017101110.GA11305@thorin> <20091020213841.GA8854@thorin> <4ADEAA22.9080200@gmail.com> In-Reply-To: <4ADEAA22.9080200@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: sif 20001; Body=5 Fuz1=5 Fuz2=5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: bean123ch@gmail.com, David Miller , Robert Millan Subject: Re: [PATCH] auto-generate libgcc.h 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: Wed, 21 Oct 2009 15:55:31 -0000 Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: >> This should be a much cleaner option than maintaining libgcc.h by hand. Only >> tested on sparc, but it should also cast out the build problems on powerpc. >> >> > 1) Doesn't work in cross-compiler environment. You confused CC and TARGET_CC Tbh, when I look in the libgcc.h, excepted the header, it was empty. It seems that the forked sh doesn't known anything about CC, so I tried: + CC=$(TARGET_CC) /bin/sh $< > $@ || (rm -f $@; exit 1) > 2) Symbols don't get included into symlist.c so it's unlikely to work. Well, finaly it doesn't help a lot, the dpkg-build... still failed at the same place: _restgpr_29_x in boot is not defined Just note that it's not any more _restgpr_31_x(), I presume just because nm list it first? > I'll test on imac g3 today > 3) Even if it works it would result in a largely bloated kernel.img due > to unused libgcc routines > > Well, whatever src tree (svn 2641, 2642, dpkg 1.9-beta3, 1.9-beta4) which I reach to all build with gcc-4.3, it always failed to boot: Welcome to GRUB! the symbol `__lshrdi3' not found Aborted. Press any key to exit. As I am newbe to grub2 (and have few programming knowledge), can you advise me if it's a well known issue? Thanks for all effort, J.