Skip to contentSkip to conversation

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

DISCUSSION H. Peter Anvin 1 participant 1 message May 20, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Arthur Marsh

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

Quoted 6 lines

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