Re: commit 6520fe5564acf07ade7b18a1272db1184835c487 "x86, realmode:16-bit real-mode code support for relocs tool" breaks cross-compilation fromx86-64 -> x86-32

From: H. Peter Anvin
Date: Sun May 20 2012 - 11:58:33 EST


On 05/20/2012 04:38 AM, Arthur Marsh wrote:
> Hi, I normally use the make-kpkg script on Debian unstable on an AMD64
> machine to rebuild 32-bit x86 kernels via the following command line:
>
> CONCURRENCY_LEVEL=8 DEB_HOST_ARCH=i386 \
> MAKEFLAGS="CC=gcc-4.7 LD=ld.gold" make-kpkg \
> --initrd --config menuconfig --arch i386 \
> --cross-compile - linux-image
>
> This failed recently with the output:
>
>
> Is this a problem with the Debian mk-kpkg command from kernel-package or
> the kernel's own build system?
>

Neither. It means you have exposed a linker bug. It was believed to be
only in GNU ld, but apparently it is in gold as well (building the
kernel with gold has always been iffy.)

The bisect isn't very useful, because you really want the result from
two patches later.

Let me emphasize: these patches only *detect* the failure, turning it
from silent corruption to an error message.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/