[PATCH] ARM: Fix cross compilation broken by failing size command
Janusz Krzysztofik
jkrzyszt at tis.icnet.pl
Sat Dec 17 08:01:30 EST 2011
On Saturday 17 of December 2011 at 11:57:37, Russell King - ARM Linux wrote:
> On Fri, Dec 16, 2011 at 11:42:26AM +0100, Janusz Krzysztofik wrote:
> > Unfortunately, I've already pushed that old version to the patch system
> > at http://www.arm.linux.org.uk/developer/patches/, which I know is not
> > a review system. Apparently, I was not patient enough, not waiting more
> > than a week with that regression fix for a single reply to my initial
>
> I'll disagree with you there: this is not a regression fix. A regression
> fix implies that it was something that worked before, a change happened
> to the kernel, and now it's broken.
>
> That is not the case: a change happened to binutils
Not to mine, I'm still using the same version as before.
> which meant 'size'
> no longer parses foreign ELF formats.
But 'size' was not there before v3.2-rc1! The problem has arised because
arch/arm/boot/compress/Makefile, which belongs to the kernel sources,
not to binutils you're trying to blame, was changed. The 'size' call was
introduced into that Makefile, i.e. the file that belongs to the kernel
sources, whithout taking care of what can happen if that command fails.
And I was just lucky enough to find out it may fail in certains build
environments, like mine.
> This is not a change to the
> kernel,
but a change to a file in the kernel source tree. Isn't it the same?
> and therefore it is not a kernel regression.
Than, you say that if a kernel Makefile is broken, effectively breaking
the kernel compilation in certain build environments, then it's not a
kernel regression and can be released as is? Funny.
> Therefore, I consider it lower priority than true kernel regression
> fixes, and also lower priority than normal bug fixes to the kernel:
> it's actually a feature change - changing the kernel to work with a
> new toolchain.
I repeat: I haven't changed my toolchain. A file that belongs to the
kernel sources was changed.
> Since the original proposed change causes _me_ problems (I'm missing
> an arm-linux-size for some unknown reason - which I've yet to resolve
> one way or other) I've not yet considered the change any further than
> noting that fact.
If you were so kind to share your findings once discovered, you would
give me a chance to correct that problem with missing
$(CROSS_COMPILE)size tool already several weeks ago. Fortunately, Tony
was kind enough to comment, better late than never.
> If it turns out that older versions of binutils do not supply a 'size'
> command, then we need something like your v2 patch. If it's the case
> that for some reason it never got transferred when I changed machines,
> then your v1 patch is appropriate and I need to fix that. But that
> requires investigation on my side, and I've not been able to do that
> yet.
Thanks to Tony's help, you now have two versions of the patch to choose
from, the initial one, with its own issue, and the corrected one, with
Tony's Ack.
If you are sure this is not a regression and can wait while the stable
kernel version is released with that issue not corrected - your choice.
You are the ARM port maintainer, not me, and I respect your rights to
manage things the way you like. I only disagree with your opinion about
this issue not being a regression.
I'm not representing any third party interests, only my own (and public
to some extent, I thought), and even if not happy, I'm willing to handle
that issue myslef in my build environment as long as it exists in the
official kernel sources, in order to be able to still help solving other
kernel issues I happen to find out from time to time.
Thanks,
Janusz
More information about the linux-arm-kernel
mailing list