You are not logged in.

#1 2019-10-15 03:10:49

xer01ne
Member
Registered: 2011-02-28
Posts: 45

Xen errors on build

I'm trying to install Xen 4.21.1-1 but the compile is throwing the following error.  I'm not sure what the issue might be.

sed 's/@VERSION@/4.1/g' < META.in >META.new && mv -f META.new META
mkdir -p /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml
ocamlfind remove -destdir /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml xenmmap
ocamlfind: [WARNING] No such file: /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/META
ocamlfind install -destdir /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml -ldconf ignore xenmmap META xenmmap.cmi xenmmap.cma xenmmap.cmxa *.a *.so *.cmx
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/xenmmap.cmx
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/dllxenmmap_stubs.so
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/xenmmap.a
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/libxenmmap_stubs.a
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/xenmmap.cmxa
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/xenmmap.cma
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/xenmmap.cmi
Installed /tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/dist/install/usr/lib/ocaml/xenmmap/META
make[8]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/mmap'
make[7]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs'
make[7]: Entering directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs'
make -C xentoollog install
make[8]: Entering directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/xentoollog'
python2 genlevels.py _xtl_levels.mli.in _xtl_levels.ml.in _xtl_levels.inc
 MLDEP    
 MLC      xentoollog.cmo
 MLA      xentoollog.cma
 CC       xentoollog_stubs.o
xentoollog_stubs.c: In function 'stub_xtl_ocaml_vmessage':
xentoollog_stubs.c:93:16: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
   93 |  value *func = caml_named_value(xtl->vmessage_cb) ;
      |                ^~~~~~~~~~~~~~~~
xentoollog_stubs.c: In function 'stub_xtl_ocaml_progress':
xentoollog_stubs.c:123:16: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  123 |  value *func = caml_named_value(xtl->progress_cb) ;
      |                ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[8]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/xentoollog/../../Makefile.rules:37: xentoollog_stubs.o] Error 1
make[8]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/xentoollog'
make[7]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/../../../tools/Rules.mk:251: subdir-install-xentoollog] Error 2
make[7]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs'
make[6]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs/../../../tools/Rules.mk:246: subdirs-install] Error 2
make[6]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/libs'
make[5]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/../../tools/Rules.mk:251: subdir-install-libs] Error 2
make[5]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml'
make[4]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml/../../tools/Rules.mk:246: subdirs-install] Error 2
make[4]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/ocaml'
make[3]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/../tools/Rules.mk:251: subdir-install-ocaml] Error 2
make[3]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools'
make[2]: *** [/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools/../tools/Rules.mk:246: subdirs-install] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools'
make[1]: *** [Makefile:74: install] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-roberts/aur-xen/src/xen-4.12.1/tools'
make: *** [Makefile:127: install-tools] Error 2

I haven't modified the PKGBUILD.

Any help would be greatly appreciated.

Will

Offline

#2 2019-10-15 03:52:43

loqs
Member
Registered: 2014-03-06
Posts: 9,077

Re: Xen errors on build

Workaround for the PKGBUILD

git diff
diff --git a/PKGBUILD b/PKGBUILD
index 4d20f9c..4523ae0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -156,6 +156,7 @@ prepare() {
   msg2 'Applying misc compile fixes...'
 
   # Compile fixes.
+  sed 's/CFLAGS += -fPIC -Werror -I$(shell ocamlc -where)/CFLAGS += -fPIC -I$(shell ocamlc -where)/' -i tools/ocaml/common.make
 
   # Fix Install Paths.
   msg2 'Fixing installation paths...'

I would suggest reporting the issue upstream so the code can be fixed.

Offline

Board footer

Powered by FluxBB