From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N0iIS-0001E2-Ak for mharc-grub-devel@gnu.org; Wed, 21 Oct 2009 17:00:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0iIP-0001Dh-St for grub-devel@gnu.org; Wed, 21 Oct 2009 17:00:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0iIK-0001DB-EU for grub-devel@gnu.org; Wed, 21 Oct 2009 17:00:36 -0400 Received: from [199.232.76.173] (port=35790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0iIK-0001D2-7Y for grub-devel@gnu.org; Wed, 21 Oct 2009 17:00:32 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:61774) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0iIJ-0005zw-Ma for grub-devel@gnu.org; Wed, 21 Oct 2009 17:00:31 -0400 Received: by ey-out-1920.google.com with SMTP id 3so7698562eyh.34 for ; Wed, 21 Oct 2009 14:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=RtKsKf/e+mORN0LgcZsxSFlkBMo3Bp82nhjO6hWJOuU=; b=Ip1Fs39CEcbC+kfPNkrniXcZyqSOTPOxE8UEc/It+PIJB0xXvKeHN2R/yqAZCaifNy pW5hhmpZgc5u+bHxL3Qf3+R873GK96Zsztt7rVJL55nKuI+e5oUqlSxAF5mUuDaelX7P AEOUUE5OK75ILH9R/t3v1DpNrqap1VIGTUoNE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=w/Oc/VUjqYdGDgM022CKr124RsmqHw7qWB7F0kyI6129KL5FGEt5SSMGKfpDIqNel5 aRyrSywYUif5HXV+4a7+FsGHjLfoSI0BaLg5a5telaBzQqf1Hl/srwkOpIFrLgWIkyrd iX3hHZRidbG+v16NmmFbnhMcODaJfEXjsUA3s= Received: by 10.211.159.6 with SMTP id l6mr9492835ebo.56.1256158830935; Wed, 21 Oct 2009 14:00:30 -0700 (PDT) Received: from debian.bg45.phnet (gprs25.swisscom-mobile.ch [193.247.250.25]) by mx.google.com with ESMTPS id 28sm507207eye.29.2009.10.21.14.00.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Oct 2009 14:00:27 -0700 (PDT) Message-ID: <4ADF7668.30104@gmail.com> Date: Wed, 21 Oct 2009 23:00:24 +0200 From: Vladimir 'phcoder' Serbinenko 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> <4ADF2EE4.2020008@scarlet.be> In-Reply-To: <4ADF2EE4.2020008@scarlet.be> 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) 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 21:00:38 -0000 rubisher wrote: > 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? > If _restgpr_31_x is really GOT table and building system pulls it from some library it will create bugs (all kind of bugs you can imagine caused by bad linking) >> 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. > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git