[Raspbian-devel] Xen ARM make-install fails on Raspberry Pi

John P. McDermott (USN Civilian) john.mcdermott at nrl.navy.mil
Wed Jun 28 12:51:47 UTC 2017


Xen Developers,

I have several years of experience at building x86 Xen from source but very little ARM experience. I am trying to build Xen from source on a Raspberry Pi Model 3B, for the first time. No apparent problems with the RPi or Raspbian:

pi at xenpro9:~ $ uname -a
Linux xenpro9 4.9.28-v7+ #998 SMP Mon May 15 16:55:39 BST 2017 armv7l GNU/Linux
pi at xenpro9:~ $ 

I cloned the Xen source from Github raspbian-packages. Following the guidance on the Xen wiki, building natively, configure and make world work as expected but when I run make install-xen, as root, that fails with the following output:

make[6]: Leaving directory '/home/pi/nrl/xen/xen/arch/arm/arm32/lib'
make[5]: Leaving directory '/home/pi/nrl/xen/xen/arch/arm/arm32'
make -f /home/pi/nrl/xen/xen/Rules.mk -C platforms built_in.o
make[5]: Entering directory '/home/pi/nrl/xen/xen/arch/arm/platforms'
make[5]: 'built_in.o' is up to date.
make[5]: Leaving directory '/home/pi/nrl/xen/xen/arch/arm/platforms'
make[4]: Leaving directory '/home/pi/nrl/xen/xen/arch/arm'
make[3]: Leaving directory '/home/pi/nrl/xen/xen/arch/arm'
[ -d //boot ] || install -d -m0755 -p //boot
install -m0644 -p /home/pi/nrl/xen/xen/xen //boot/xen-4.8.1
ln -f -s xen-4.8.1 //boot/xen-4.8
ln: failed to create symbolic link ‘//boot/xen-4.8’: Operation not permitted
Makefile:58: recipe for target '_install' failed
make[2]: *** [_install] Error 1
make[2]: Leaving directory '/home/pi/nrl/xen/xen'
Makefile:45: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/pi/nrl/xen/xen'
Makefile:97: recipe for target 'install-xen' failed
make: *** [install-xen] Error 2
root at xenpro9:/home/pi/nrl/xen#

I get the same error with make install. I do see what looks like a healthy Xen image in /boot:

pi at xenpro9:/boot $ ls
bcm2708-rpi-0-w.dtb     bootcode.bin   fixup_x.dat       overlays
bcm2708-rpi-b.dtb       cmdline.txt    issue.txt         start_cd.elf
bcm2708-rpi-b-plus.dtb  config.txt     kernel7.img       start_db.elf
bcm2708-rpi-cm.dtb      COPYING.linux  kernel.img        start.elf
bcm2709-rpi-2-b.dtb     fixup_cd.dat   LICENCE.broadcom  start_x.elf
bcm2710-rpi-3-b.dtb     fixup.dat      LICENSE.oracle    xen-4.8.1
bcm2710-rpi-cm3.dtb     fixup_db.dat   os_config.json
pi at xenpro9:/boot $ ls -l xen-*
-rwxr-xr-x 1 root root 688144 Jun 28 06:30 xen-4.8.1
pi at xenpro9:/boot $ 

I have never seen x86 Xen have this build error. I don’t understand the install scripts well enough to see where the extra slash is being inserted. Any suggestions for a local fix I should try?

Sincerely,

John

p.s. Just to check, I also tried building from the xen.org tip:

git clone git://xenbits.xen.org/xen.git

This code will not even build make world:

gcc  -marm -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -g3 -O0 -fno-omit-frame-pointer -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF .xenstored_domain.o.d -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE   -Werror -I. -include /home/pi/nrl2/xen/tools/xenstore/../../tools/config.h -I./include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libs/evtchn/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libxc/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libs/toollog/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libs/foreignmemory/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libs/devicemodel/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include -D__XEN_TOOLS__ -DXEN_LIB_STORED="\"/var/lib/xenstored\"" -DXEN_RUN_STORED="\"/var/run/xenstored\""  -I/home/pi/nrl2/xen/tools/xenstore/../../tools/libs/gnttab/include -I/home/pi/nrl2/xen/tools/xenstore/../../tools/include  -c -o xenstored_domain.o xenstored_domain.c 
/tmp/cc6dE5Ua.s: Assembler messages:
/tmp/cc6dE5Ua.s:636: Error: selected processor does not support ARM mode `dmb'
/tmp/cc6dE5Ua.s:681: Error: selected processor does not support ARM mode `dmb'
/tmp/cc6dE5Ua.s:749: Error: selected processor does not support ARM mode `dmb'
/tmp/cc6dE5Ua.s:793: Error: selected processor does not support ARM mode `dmb'
/home/pi/nrl2/xen/tools/xenstore/../../tools/Rules.mk:218: recipe for target 'xenstored_domain.o' failed
make[5]: *** [xenstored_domain.o] Error 1
make[5]: Leaving directory '/home/pi/nrl2/xen/tools/xenstore'
/home/pi/nrl2/xen/tools/../tools/Rules.mk:242: recipe for target 'subdir-install-xenstore' failed
make[4]: *** [subdir-install-xenstore] Error 2
make[4]: Leaving directory '/home/pi/nrl2/xen/tools'
/home/pi/nrl2/xen/tools/../tools/Rules.mk:237: recipe for target 'subdirs-install' failed
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory '/home/pi/nrl2/xen/tools'
Makefile:68: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/pi/nrl2/xen/tools'
Makefile:126: recipe for target 'install-tools' failed
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory '/home/pi/nrl2/xen'
Makefile:163: recipe for target 'world' failed
make: *** [world] Error 2
pi at xenpro9:~/nrl2/xen $ 





More information about the Raspbian-devel mailing list