Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Call for testing: Xen 4.0



On Mon, Mar 8, 2010 at 2:17 PM, Adam Hamsik <haaaad%gmail.com@localhost> wrote:
Hi,
1) There is a problem during xen kernel link
rc/xen-unstable.hg/xen/Rules.mk -C arch/x86 /root/src/xen-unstable.hg/xen/xen
gmake[3]: Entering directory `/root/src/xen-unstable.hg/xen/arch/x86'
gmake -f /root/src/xen-unstable.hg/xen/Rules.mk -C /root/src/xen-unstable.hg/xen/arch/x86/boot built_in.o
gmake[4]: Entering directory `/root/src/xen-unstable.hg/xen/arch/x86/boot'
RELOC= gmake -f build32.mk reloc.S
gmake[5]: Entering directory `/root/src/xen-unstable.hg/xen/arch/x86/boot'
gcc  -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -fno-stack-protector -Werror -fno-builtin -msoft-float -c reloc.c -o reloc.o
ld -melf_i386 -N -Ttext  -o reloc.lnk reloc.o
ld: invalid hex number `-o'
gmake[5]: *** [reloc.lnk] Error 1
gmake[5]: Leaving directory `/root/src/xen-unstable.hg/xen/arch/x86/boot'
gmake[4]: *** [reloc.S] Error 2
gmake[4]: Leaving directory `/root/src/xen-unstable.hg/xen/arch/x86/boot'
gmake[3]: *** [/root/src/xen-unstable.hg/xen/arch/x86/boot/built_in.o] Error 2
gmake[3]: Leaving directory `/root/src/xen-unstable.hg/xen/arch/x86'
gmake[2]: *** [/root/src/xen-unstable.hg/xen/xen] Error 2
gmake[2]: Leaving directory `/root/src/xen-unstable.hg/xen'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/root/src/xen-unstable.hg/xen'

This problem is xen/arch/x86/boot/build32.mk calls ld with:

-Ttext $(RELOC) -o

RELOC is set in xen/arch/x86/boot/Makefile to $(BOOT_TRAMPOLINE), which is also set in that file:

BOOT_TRAMPOLINE := $(shell sed -n 's,^\#define[[:space:]]\+BOOT_TRAMPOLINE[[:space:]]\+,,p' $(BASEDIR)/include/asm-x86/config.h)

NetBSD's core 'sed' doesn't seem to like that.  Using gsed seems to work.

So there's 3 fixes:

1) Change sed to gsed and make gsed a requirement (seems icky)
2) Hard-code BOOT_TRAMPOLINE to 0x88000 (seems ickier)
3) Fix the sed invocation to make it core NetBSD sed friendly.  This seems like the right solution, but beyond my sed knowledge.  Any takers?

-Dustin
 


Home | Main Index | Thread Index | Old Index