Skip to contentSkip to conversation

Problem building xon with cross-compiler

DISCUSSION Stefan Kuhne 2 participants 2 messages Jan 26, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

I try to compile xen-4.5.0 in the uclibc buildroot.

On "make xen" I get this error:

mkdir -p compat/.xlat
grep -v '^[[:blank:]]*#' xlat.lst | sed -ne 's,@arch@,x86_32,g' -re 's,[[:blank:]]+xen\.h[[:blank:]]*$,,p' >compat/.xlat/xen.lst.new if ! cmp -s compat/.xlat/xen.lst.new compat/.xlat/xen.lst; then mv -f compat/.xlat/xen.lst.new compat/.xlat/xen.lst; else rm -f compat/.xlat/xen.lst.new; fi export PYTHON=python; \
while read what name; do \

        /bin/sh 

/foo/buildroot/output/build/xen-4.5.0/xen/tools/get-fields.sh "$what" compat_$name compat/xen.h || exit $?; \
done <compat/.xlat/xen.lst >compat/.xlat/xen.h.new
Fields of 'compat_xenctl_bitmap' not found in 'compat/xen.h'
Makefile:70: recipe for target 'compat/.xlat/xen.h' failed
make[4]: *** [compat/.xlat/xen.h] Error 1

Has anyone an idea what is going wrong?
I didn't get into it, because "compat/xen.h" isn't in the sources.

Kindly regards,
Stefan Kuhne

#1 lore raw
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 26.01.15 at 16:38, <[email protected]> wrote:

I try to compile xen-4.5.0 in the uclibc buildroot.

Of course a first step would be to try to build in a more conventional environment.

Quoted 11 lines

On "make xen" I get this error:

mkdir -p compat/.xlat
grep -v '^[[:blank:]]*#' xlat.lst | sed -ne 's,@arch@,x86_32,g' -re 's,[[:blank:]]+xen\.h[[:blank:]]*$,,p' >compat/.xlat/xen.lst.new if ! cmp -s compat/.xlat/xen.lst.new compat/.xlat/xen.lst; then mv -f compat/.xlat/xen.lst.new compat/.xlat/xen.lst; else rm -f compat/.xlat/xen.lst.new; fi
export PYTHON=python; \
while read what name; do \

         /bin/sh 
Quoted 8 lines

/foo/buildroot/output/build/xen-4.5.0/xen/tools/get-fields.sh "$what" compat_$name compat/xen.h || exit $?; \
done <compat/.xlat/xen.lst >compat/.xlat/xen.h.new
Fields of 'compat_xenctl_bitmap' not found in 'compat/xen.h' Makefile:70: recipe for target 'compat/.xlat/xen.h' failed make[4]: *** [compat/.xlat/xen.h] Error 1

Has anyone an idea what is going wrong?

Perhaps there's something in xen/tools/get-fields.sh that's incompatible with the shell used?

Quoted 1 line

I didn't get into it, because "compat/xen.h" isn't in the sources.

It's a generated file, but it ought to be there by the time the command above gets executed, as it's a dependency of the current target being processed. So another reason might be a make incompatibility.

Jan