I managed to compile it, by means of the following changes
1) do what hypernetoman suggests (removing a comment in a public header file)
2) applying this patch to PKGBUILD
--- PKGBUILD 2016-03-17 22:45:49.670416160 +0100
+++ PKGBUILD.old 2016-03-17 22:45:31.183750160 +0100
@@ -129,7 +129,7 @@ build() {
export CFLAGS=-fno-caller-saves
./autogen.sh
./configure PYTHON=/usr/bin/python2 --prefix=/usr --sbindir=/usr/bin --with-sysconfig-leaf-dir=conf.d --with-initddir=/etc/init.d \
- --enable-systemd --disable-docs --enable-stubdom --enable-qemu-traditional --enable-rombios \
+ --enable-systemd --disable-docs --disable-stubdom --enable-qemu-traditional --enable-rombios \
--with-extra-qemuu-configure-args="--disable-bluez --disable-gtk --enable-spice --enable-usb-redir" # --enable-ovmf
make LANG=C PYTHON=python2
}
@@ -147,6 +147,9 @@ package() {
install -Dm755 "$srcdir/09_xen" etc/grub.d/09_xen
install -Dm644 "$srcdir/efi-xen.cfg" etc/xen/efi-xen.cfg
+ mkdir -p usr/lib/systemd/system
+ cp $srcdir/$pkgname-$pkgver/tools/hotplug/Linux/systemd/xenstored* usr/lib/systemd/system
+
# Fix paths in scripts, move to right locations and create missing directories
sed -i 's:/var/run:/run:' etc/init.d/xencommons
sed -i 's:/var/lock:/run/lock:' etc/xen/scripts/hotplugpath.sh
Search Criteria
Package Details: xen 4.19.1pre-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/xen.git (read-only, click to copy) |
---|---|
Package Base: | xen |
Description: | Open-source type-1 or baremetal hypervisor |
Upstream URL: | https://xenproject.org/ |
Keywords: | hypervisor virtualization xen |
Licenses: | GPL2 |
Submitter: | sergej |
Maintainer: | Refutationalist |
Last Packager: | Refutationalist |
Votes: | 185 |
Popularity: | 0.63 |
First Submitted: | 2009-11-09 11:22 (UTC) |
Last Updated: | 2024-09-20 00:31 (UTC) |
Dependencies (63)
- acpica
- bridge-utils
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR)
- gnutls (gnutls-gitAUR)
- inetutils (inetutils-gitAUR, busybox-coreutilsAUR)
- iproute2 (iproute2-gitAUR, busybox-coreutilsAUR, iproute2-selinuxAUR)
- lib32-glibc (lib32-glibc-gitAUR, lib32-glibc-linux4AUR, lib32-glibc-eacAUR, lib32-glibc-eac-binAUR, lib32-glibc-eac-rocoAUR)
- libaio (libaio-gitAUR)
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libseccomp (libseccomp-gitAUR)
- libuuid.so (util-linux-libs-selinuxAUR, util-linux-libs-aesAUR, lib32-util-linux, util-linux-libs)
- libx11 (libx11-gitAUR)
- lzo
- ncurses (ncurses-gitAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- pciutils (pciutils-gitAUR)
- pixman (pixman-gitAUR)
- pkgconf (pkgconf-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- sdl2 (sdl2-gitAUR, sdl2-compat-gitAUR)
- vde2 (vdeplug4-gitAUR)
- yajl (yajl-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- acpica (make)
- bin86AUR (make)
- bison (byacc-bisonAUR, bison-gitAUR) (make)
- bridge-utils (make)
- dev86AUR (make)
- fig2dev (fig2dev-gitAUR) (make)
- flex (flex-gitAUR) (make)
- gettext (gettext-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (make)
- gnutls (gnutls-gitAUR) (make)
- inetutils (inetutils-gitAUR, busybox-coreutilsAUR) (make)
- iproute2 (iproute2-gitAUR, busybox-coreutilsAUR, iproute2-selinuxAUR) (make)
- lib32-glibc (lib32-glibc-gitAUR, lib32-glibc-linux4AUR, lib32-glibc-eacAUR, lib32-glibc-eac-binAUR, lib32-glibc-eac-rocoAUR) (make)
- libaio (libaio-gitAUR) (make)
- libuuid.so (util-linux-libs-selinuxAUR, util-linux-libs-aesAUR, lib32-util-linux, util-linux-libs) (make)
- libx11 (libx11-gitAUR) (make)
- lzo (make)
- ncurses (ncurses-gitAUR) (make)
- openssl (openssl-gitAUR, openssl-staticAUR) (make)
- pandoc (pandoc-sile-gitAUR, pandoc-static-gitAUR, pandoc-binAUR, pandoc-cli) (make)
- pciutils (pciutils-gitAUR) (make)
- pixman (pixman-gitAUR) (make)
- pkgconf (pkgconf-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- sdl2 (sdl2-gitAUR, sdl2-compat-gitAUR) (make)
- systemd (systemd-chromiumosAUR, systemd-selinuxAUR, sysupdated-systemd-gitAUR, systemd-fmlAUR, systemd-gitAUR) (make)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-selinuxAUR, sysupdated-systemd-libs-gitAUR, systemd-libs-fmlAUR, systemd-libs-gitAUR) (make)
- valgrind (valgrind-gitAUR) (make)
- vde2 (vdeplug4-gitAUR) (make)
- wget (wget-gitAUR, wurlAUR) (make)
- yajl (yajl-gitAUR) (make)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat) (make)
- edk2-ovmf (optional) – UEFI support
- grub-xen-gitAUR (optional) – GRUB and pvgrub2 bootloader support
- linux-headers (optional) – extract bootable non-zstd kernel for recent kernels
- seabios (optional) – SeaBIOS payload support
- xen-docsAUR (optional) – HTML documentation and man pages
- xen-qemuAUR (xen-qemuAUR) (optional) – HVM and PV support
Required by (3)
Sources (7)
Latest Comments
« First ‹ Previous 1 .. 26 27 28 29 30 31 32 33 34 35 36 .. 101 Next › Last »
vmaffione commented on 2016-03-17 21:46 (UTC) (edited on 2016-03-17 21:48 (UTC) by vmaffione)
lembang commented on 2016-03-01 20:56 (UTC)
@johnTh
by modifying the ferror it helps to compile the package, although this is not a real solution for this. Thank you.
I force the test to always return 0
JohnTh commented on 2016-02-29 22:09 (UTC)
I am also getting this error. It was not happening a week ago. Package updates have broken something.
The step that is failing is configuring stubdom/gmp-x86_64
Details are in stubdom/gmp-x86_64/config.log
The sizeof type test configure programs build fine, but when run, return 1 because ferror(...) returns 1 after fprintf(...) in the programs built in this Xen build environment. This stops the configure, thought the programs still seem to function as intended, putting type sizes in conftest.val.
Search for ferror in stubdom/gmp-x86_64/configure to show or modify the programs.
I am still looking into why and how to fix.
lembang commented on 2016-02-29 00:49 (UTC)
@malinas
Seems we encounter almost the same error, i have already use gcc-multilib and still experience this error. Any idea?
pacman -Q | grep gcc
gcc-libs-multilib 5.3.0-5
gcc-multilib 5.3.0-5
lib32-gcc-libs 5.3.0-5
checking size of unsigned short... configure: error: cannot compute sizeof (unsigned short)
See `config.log' for more details.
Makefile:170: recipe for target 'gmp-x86_64' failed
make[1]: *** [gmp-x86_64] Error 77
make[1]: Leaving directory '/home/the/aur/aur-xen-master-d1563f51708bc0cd58e989c7e9ab615254c66d6b/src/xen-4.6.1/stubdom'
Makefile:106: recipe for target 'install-stubdom' failed
make: *** [install-stubdom] Error 2
==> ERROR: A failure occurred in build().
malinas commented on 2016-02-26 19:38 (UTC)
ld -nostdlib -L/tmp/makepkg/xen/src/xen-4.6.1/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m elf_x86_64 -T arch/x86/minios-x86_64.lds /tmp/makepkg/xen/src/xen-4.6.1/stubdom/mini-os-x86_64-grub/mini-os.o -o /tmp/makepkg/xen/src/xen-4.6.1/stubdom/mini-os-x86_64-grub/mini-os
ld: warning: section `.bss' type changed to PROGBITS
gzip -f -9 -c /tmp/makepkg/xen/src/xen-4.6.1/stubdom/mini-os-x86_64-grub/mini-os >/tmp/makepkg/xen/src/xen-4.6.1/stubdom/mini-os-x86_64-grub/mini-os.gz
checking for suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking for assembler label suffix... :
checking for assembler global directive... .globl
checking for assembler global directive attribute...
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section... .section .rodata
checking for assembler .type directive... .type $1,@$2
checking for assembler .size directive... .size $1,$2
checking for assembler local label prefix... .L
checking for assembler byte directive... .byte
checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... no
checking if the .align directive accepts an 0x90 fill in .text... yes
checking for unsigned short... make[2]: Leaving directory '/tmp/makepkg/xen/src/xen-4.6.1/extras/mini-os'
install -d -m0755 -p "/tmp/makepkg/xen/src/xen-4.6.1/dist/install/usr/lib/xen/boot"
install -m0644 -p mini-os-x86_64-grub/mini-os.gz "/tmp/makepkg/xen/src/xen-4.6.1/dist/install/usr/lib/xen/boot/pv-grub-x86_64.gz"
yes
checking size of unsigned short... configure: error: cannot compute sizeof (unsigned short)
See `config.log' for more details.
Makefile:170: recipe for target 'gmp-x86_64' failed
make[1]: *** [gmp-x86_64] Error 77
make[1]: *** Waiting for unfinished jobs....
ar rcs qemu.a vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o dma-helpers.o virtio.o virtio-blk.o virtio-net.o virtio-console.o fw_cfg.o block-raw-posix.o lsi53c895a.o esp.o usb-ohci.o eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o msmouse.o ide.o pckbd.o ps2.o vga.o dma.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o cirrus_vga.o parallel.o piix_pci.o usb-uhci.o hpet.o device-hotplug.o pci-hotplug.o piix4acpi.o xenstore.o xen_platform.o xen_machine_fv.o xen_machine_pv.o xen_backend.o xenfb.o xen_console.o exec-dm.o pci_emulation.o helper2.o battery_mgmt.o xenfbfront.o pass-through.o pt-msi.o pt-graphics.o block-vbd.o
make[3]: Leaving directory '/tmp/makepkg/xen/src/xen-4.6.1/stubdom/ioemu/i386-stubdom'
make[2]: Leaving directory '/tmp/makepkg/xen/src/xen-4.6.1/stubdom/ioemu'
make[1]: Leaving directory '/tmp/makepkg/xen/src/xen-4.6.1/stubdom'
Makefile:106: recipe for target 'install-stubdom' failed
make: *** [install-stubdom] Error 2
that's the master one. config.log exit status 0. I guess, I will just update my own 4.6 build from a year ago.
malinas commented on 2016-02-26 18:18 (UTC)
John, that is nice.. i already patched the broken pakcages back in Feb 2015, and actually ran a 4.6 unstable branch back then. However, server ben down some months and after update, I can't for the love of my life make xen see the LVM root on boot :/ I will give yours a try and cross my fingers! ,p
JohnTh commented on 2016-02-19 11:51 (UTC)
Hi,
I have been having go updating the Xen AUR to latest versions (4.5.2 and 4.6.1) with most XSA patches. The files are here:
https://gitlab.com/johnth/aur-xen/tree/xen-4.5
https://gitlab.com/johnth/aur-xen/tree/master
Both branches should build without error using multilib-build, but are not well tested.
These include ovmf and xen.efi.
Let me know any suggestions.
hypernetoman commented on 2016-02-18 20:58 (UTC)
Hi!
Below is the full PKGBUILD for xen-docs updated to 4.5.1 so it is aligned with xen.
Hope it helps.
# Maintainer: M0Rf30
pkgname=xen-docs
pkgver=4.5.1
pkgrel=1
pkgdesc="Xen 4 (docs)"
arch=('i686' 'x86_64')
url="http://xen.org/"
license=('GPL')
makedepends=('markdown' 'transfig' 'ghostscript')
conflicts=('xen4' 'xen3' 'xen-hv-tools' 'libxen4')
source=(http://bits.xensource.com/oss-xen/release/${pkgver}/xen-${pkgver}.tar.gz)
package() {
cd "$srcdir/xen-$pkgver"
unset CFLAGS LDFLAGS
./configure --prefix=/usr --disable-xen --disable-tools --disable-stubdom --enable-docs
make DESTDIR=$pkgdir install-docs
}
md5sums=('d12dc9e5e8bd22a68b5c7f53119221f1')
hypernetoman commented on 2016-02-18 20:47 (UTC)
Hello!
I was getting a compilation error both with xen-4.5.1 and xen-4.4.2 (packages xen and xen-4.4, resp.):
gcc -E ... -o compat/grant_table.i compat/grant_table.c
compat/grant_table.c:33:1: error: unterminated comment
/*
^
compat/grant_table.c:28:0: error: unterminated #ifndef
#ifndef __XEN_PUBLIC_GRANT_TABLE_H__
^
Makefile:61: recipe for target 'compat/grant_table.i' failed
make[3]: *** [compat/grant_table.i] Error 1
I've fixed it by adding this in the PKGBUILD previous to `make LANG=C PYTHON=python2` in build():
`sed -i.backup '33,54d' xen/include/public/grant_table.h`
It removes the offendig block comment which prevents compilation.
It fixes it for me both in xen and xen-4.4.
Hope it helps.
EndlessEden commented on 2016-02-18 06:49 (UTC)
KamijouTouma: did you look at Config.log, sounds more like a env-var issue. not a makepkg issue.
Pinned Comments
Refutationalist commented on 2024-05-22 22:08 (UTC) (edited on 2024-05-23 00:07 (UTC) by Refutationalist)
As of now (2024-22-05) Xen with stubdom doesn't build because of a problem in the imported code. Been this way for about two weeks. Anyone else seeing this behavior?
Also, there is a lot of work happening on Xen in my development repo, thanks to @Serus. Check it out at: https://github.com/refutationalist/saur