Skip to contentSkip to conversation

4.4.0-rc3 tagged

DISCUSSION Ian Jackson 6 participants 23 messages Jan 31, 2014 – Mar 12, 2014

lore
Share & tools
lore
#1 lore raw

On CentOS release 5.10 (Final) I hit QEMU bug #1257099:

lt LINK libcacard.la
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_buffer_response_delete' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libcacard.la] Error 1
make[3]: Leaving directory `/home/don/xen-4.4.0-rc3/tools/qemu-xen-dir'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make: *** [install-tools] Error 2

See https://bugs.launchpad.net/bugs/1257099

Based on

https://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.htmlhttps://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.html

it should make it into QEMU at some point.

So now I either change tools/Makefile to include "--disable-smartcard-nss" for QEMU or use the patch:

From c6ce0e32c09979ba5d7d0d416293fbc700372c61 Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Fri, 31 Jan 2014 20:59:28 +0000
Subject: [PATCH] tools/Makefile: Change QEMU_XEN_ENABLE_DEBUG to an add to
allow for additional QEMU options.

This is currently needed to work around QEMU bug #1257099 on CentOS 5.10

I.E. via

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss

---
 tools/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/Makefile +1 -3
index 00c69ee..a3b8a7e 100644
@@ -174,9 +174,7 @@ qemu-xen-dir-force-update:
        fi
 
 ifeq ($(debug),y)
-QEMU_XEN_ENABLE_DEBUG := --enable-debug --enable-trace-backend=stderr
-else
-QEMU_XEN_ENABLE_DEBUG :=
+QEMU_XEN_ENABLE_DEBUG += --enable-debug --enable-trace-backend=stderr
 endif
 
 subdir-all-qemu-xen-dir: qemu-xen-dir-find
Signature · 44 lines
1.8.2.1


and also:

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss


This gets me to:

Parsing /home/don/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl
 MLDEP
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[7]: Entering directory `/home/don/xen/tools/ocaml/libs/xl'
 MLC      xenlight.cmo
 MLA      xenlight.cma
 CC       xenlight_stubs.o
cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char'
xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'
make[7]: *** [xenlight_stubs.o] Error 1
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[6]: *** [subdir-install-xl] Error 2
make[6]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[5]: *** [subdirs-install] Error 2
make[5]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[4]: *** [subdir-install-libs] Error 2
make[4]: Leaving directory `/home/don/xen/tools/ocaml'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/don/xen/tools/ocaml'
make[2]: *** [subdir-install-ocaml] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2


Not sure how to work around this.
    -Don Slutz
Quoted 16 lines · Ian Jackson

We've just tagged 4.4.0-rc3, please test and report bugs.

The tarball can be downloaded here:

http://bits.xensource.com/oss-xen/release/4.4.0-rc3/xen-4.4.0-rc3.tar.gz

Ian.

(PS: Due to an oversight by me, the version number in the xen/Makefile is still "-rc2", so the message printed at startup by 4.4.0-rc3 claims that it's "4.4.0-rc2". Sorry about that.)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

Don Slutz writes ("Re: [Xen-devel] 4.4.0-rc3 tagged"):

Quoted 1 line

On CentOS release 5.10 (Final) I hit QEMU bug #1257099:

CC'ing Stefano, who is in charge of the Xen qemu-upstream tree.

Thanks,
Ian.

Quoted 121 lines

lt LINK libcacard.la
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_buffer_response_delete' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libcacard.la] Error 1
make[3]: Leaving directory `/home/don/xen-4.4.0-rc3/tools/qemu-xen-dir'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make: *** [install-tools] Error 2

See https://bugs.launchpad.net/bugs/1257099

Based on

https://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.htmlhttps://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.html

it should make it into QEMU at some point.

So now I either change tools/Makefile to include "--disable-smartcard-nss" for QEMU or use the patch:

From c6ce0e32c09979ba5d7d0d416293fbc700372c61 Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Fri, 31 Jan 2014 20:59:28 +0000
Subject: [PATCH] tools/Makefile: Change QEMU_XEN_ENABLE_DEBUG to an add to
allow for additional QEMU options.

This is currently needed to work around QEMU bug #1257099 on CentOS 5.10

I.E. via

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss

---
  tools/Makefile | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
tools/Makefile +1 -3
index 00c69ee..a3b8a7e 100644
@@ -174,9 +174,7 @@ qemu-xen-dir-force-update:
         fi
 
  ifeq ($(debug),y)
-QEMU_XEN_ENABLE_DEBUG := --enable-debug --enable-trace-backend=stderr
-else
-QEMU_XEN_ENABLE_DEBUG :=
+QEMU_XEN_ENABLE_DEBUG += --enable-debug --enable-trace-backend=stderr
  endif
 
  subdir-all-qemu-xen-dir: qemu-xen-dir-find
Signature · 44 lines
1.8.2.1


and also:

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss


This gets me to:

Parsing /home/don/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl
  MLDEP
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[7]: Entering directory `/home/don/xen/tools/ocaml/libs/xl'
  MLC      xenlight.cmo
  MLA      xenlight.cma
  CC       xenlight_stubs.o
cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char'
xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'
make[7]: *** [xenlight_stubs.o] Error 1
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[6]: *** [subdir-install-xl] Error 2
make[6]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[5]: *** [subdirs-install] Error 2
make[5]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[4]: *** [subdir-install-libs] Error 2
make[4]: Leaving directory `/home/don/xen/tools/ocaml'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/don/xen/tools/ocaml'
make[2]: *** [subdir-install-ocaml] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2


Not sure how to work around this.
     -Don Slutz
Quoted 16 lines · Ian Jackson

We've just tagged 4.4.0-rc3, please test and report bugs.

The tarball can be downloaded here:

http://bits.xensource.com/oss-xen/release/4.4.0-rc3/xen-4.4.0-rc3.tar.gz

Ian.

(PS: Due to an oversight by me, the version number in the xen/Makefile is still "-rc2", so the message printed at startup by 4.4.0-rc3 claims that it's "4.4.0-rc2". Sorry about that.)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 4 lines · Ian Jackson

Don Slutz writes ("Re: [Xen-devel] 4.4.0-rc3 tagged"):

Quoted 1 line

On CentOS release 5.10 (Final) I hit QEMU bug #1257099:

CC'ing Stefano, who is in charge of the Xen qemu-upstream tree.

This is the bug that you fixed with the patch linked below, but it looks like the patch never made it upstream.

Let me ping Paolo on this.

Quoted 125 lines

Thanks,
Ian.

Quoted 121 lines

lt LINK libcacard.la
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_buffer_response_delete' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libcacard.la] Error 1
make[3]: Leaving directory `/home/don/xen-4.4.0-rc3/tools/qemu-xen-dir'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen-4.4.0-rc3/tools'
make: *** [install-tools] Error 2

See https://bugs.launchpad.net/bugs/1257099

Based on

https://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.htmlhttps://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01826.html

it should make it into QEMU at some point.

So now I either change tools/Makefile to include "--disable-smartcard-nss" for QEMU or use the patch:

From c6ce0e32c09979ba5d7d0d416293fbc700372c61 Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Fri, 31 Jan 2014 20:59:28 +0000
Subject: [PATCH] tools/Makefile: Change QEMU_XEN_ENABLE_DEBUG to an add to
allow for additional QEMU options.

This is currently needed to work around QEMU bug #1257099 on CentOS 5.10

I.E. via

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss

---
  tools/Makefile | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
tools/Makefile +1 -3
index 00c69ee..a3b8a7e 100644
@@ -174,9 +174,7 @@ qemu-xen-dir-force-update:
         fi
 
  ifeq ($(debug),y)
-QEMU_XEN_ENABLE_DEBUG := --enable-debug --enable-trace-backend=stderr
-else
-QEMU_XEN_ENABLE_DEBUG :=
+QEMU_XEN_ENABLE_DEBUG += --enable-debug --enable-trace-backend=stderr
  endif
 
  subdir-all-qemu-xen-dir: qemu-xen-dir-find
Signature · 44 lines
1.8.2.1


and also:

export QEMU_XEN_ENABLE_DEBUG=--disable-smartcard-nss


This gets me to:

Parsing /home/don/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl
  MLDEP
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[7]: Entering directory `/home/don/xen/tools/ocaml/libs/xl'
  MLC      xenlight.cmo
  MLA      xenlight.cma
  CC       xenlight_stubs.o
cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char'
xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'
make[7]: *** [xenlight_stubs.o] Error 1
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl'
make[6]: *** [subdir-install-xl] Error 2
make[6]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[5]: *** [subdirs-install] Error 2
make[5]: Leaving directory `/home/don/xen/tools/ocaml/libs'
make[4]: *** [subdir-install-libs] Error 2
make[4]: Leaving directory `/home/don/xen/tools/ocaml'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/don/xen/tools/ocaml'
make[2]: *** [subdir-install-ocaml] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2


Not sure how to work around this.
     -Don Slutz
Quoted 16 lines · Ian Jackson

We've just tagged 4.4.0-rc3, please test and report bugs.

The tarball can be downloaded here:

http://bits.xensource.com/oss-xen/release/4.4.0-rc3/xen-4.4.0-rc3.tar.gz

Ian.

(PS: Due to an oversight by me, the version number in the xen/Makefile is still "-rc2", so the message printed at startup by 4.4.0-rc3 claims that it's "4.4.0-rc2". Sorry about that.)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 36 lines · Stefano Stabellini

This gets me to:

Quoted 35 lines
Quoted 35 lines

Parsing/home/don/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl
MLDEP
make[7]: Leaving directory /home/don/xen/tools/ocaml/libs/xl' make[7]: Entering directory /home/don/xen/tools/ocaml/libs/xl'

  MLC      xenlight.cmo
  MLA      xenlight.cma
  CC       xenlight_stubs.o

cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT' xenlight_stubs.c:344: error: expected expression before 'libxl_defbool' xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how' make[7]: *** [xenlight_stubs.o] Error 1
make[7]: Leaving directory `/home/don/xen/tools/ocaml/libs/xl' make[6]: *** [subdir-install-xl] Error 2
make[6]: Leaving directory `/home/don/xen/tools/ocaml/libs' make[5]: *** [subdirs-install] Error 2
make[5]: Leaving directory `/home/don/xen/tools/ocaml/libs' make[4]: *** [subdir-install-libs] Error 2
make[4]: Leaving directory `/home/don/xen/tools/ocaml'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/don/xen/tools/ocaml'
make[2]: *** [subdir-install-ocaml] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2

Not sure how to work around this.
-Don Slutz

Any idea on what to do about ocaml issue?
-Don Slutz

#5 lore raw
Quoted 10 lines · Don Slutz
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT' xenlight_stubs.c:344: error: expected expression before 'libxl_defbool' xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Ian.

#6 lore raw
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Don Slutz
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

cc1: warnings being treated as errors
xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT' xenlight_stubs.c:344: error: expected expression before 'libxl_defbool' xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 6 lines
Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Ian.

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

-Don Slutz

#7 lore raw
Quoted 17 lines · Don Slutz
Quoted 16 lines · Ian Campbell
Quoted 11 lines · Don Slutz
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

cc1: warnings being treated as errors xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Quoted 7 lines
Quoted 2 lines

Ian.

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

-Don Slutz

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Applying the top macro from
http://docs.camlcity.org/docs/godisrc/oasis-ocaml-fd-1.1.1.tar.gz/ocaml-fd-1.1.1/lib/fd_stubs.c
as a compatibility hack might also be a good idea.

~Andrew

#8 lore raw
Quoted 23 lines · Andrew Cooper
Quoted 22 lines · Don Slutz
Quoted 12 lines · Ian Campbell
Quoted 11 lines · Don Slutz
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

cc1: warnings being treated as errors xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 6 lines
Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Ian.

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

Quoted 6 lines
Quoted 2 lines

-Don Slutz

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Also CCing Roger who added the ocaml autoconf stuff.

Quoted 3 lines

Applying the top macro from
http://docs.camlcity.org/docs/godisrc/oasis-ocaml-fd-1.1.1.tar.gz/ocaml-fd-1.1.1/lib/fd_stubs.c
as a compatibility hack might also be a good idea.

Not a bad idea.

Ian.

#9 lore raw
Quoted 27 lines · Ian Campbell
Quoted 26 lines · Andrew Cooper
Quoted 24 lines · Don Slutz
Quoted 12 lines · Ian Campbell
Quoted 11 lines · Don Slutz
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

cc1: warnings being treated as errors xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 6 lines
Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Ian.

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

-Don Slutz

Quoted 8 lines
Quoted 3 lines

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

(remember to re-generate the configure script after applying)

---
commit e49609cc7b93c2633cf5a49206cb29d6bdd612be

Author: Roger Pau Monne <[email protected]>
Date:   Mon Feb 10 11:54:13 2014 +0100

tools: check OCaml version is at least 3.09.3

tools/configure.ac +6 -0
index 0754f0e..6d1e2ee 100644
@@ -161,6 +161,12 @@ AS_IF([test "x$ocamltools" = "xy"], [
         AS_IF([test "x$enable_ocamltools" = "xyes"], [
             AC_MSG_ERROR([Ocaml tools enabled, but unable to find Ocaml])])
         ocamltools="n"
+    ], [
+        AX_COMPARE_VERSION([$OCAMLVERSION], [lt], [3.09.4], [
+            AS_IF([test "x$enable_ocamltools" = "xyes"], [
+                AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported])])
+            ocamltools="n"
+        ])
     ])
 ])
 AS_IF([test "x$xsmpolicy" = "xy"], [

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#10 lore raw
Quoted 33 lines · Roger Pau Monné
Quoted 32 lines · Ian Campbell
Quoted 20 lines · Andrew Cooper
Quoted 19 lines · Don Slutz
Quoted 18 lines · Ian Campbell
Quoted 11 lines · Don Slutz
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

cc1: warnings being treated as errors xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT. What version do you have?

Ian.

Quoted 8 lines
Quoted 5 lines

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

-Don Slutz

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Quoted 6 lines
Quoted 1 line

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

(remember to re-generate the configure script after applying)

Not sure if the older Autoconf (2.68) is at fault, but I get:

dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

and the generated script is bad:

if test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"; then :

if test "x$enable_ocamltools" = "xyes"; then :

as_fn_error $? "Ocaml tools enabled, but unable to find Ocaml" "$LINENO" 5
fi
ocamltools="n"

else

        AX_COMPARE_VERSION($OCAMLVERSION, lt, 3.09.4,
            AS_IF([test "x$enable_ocamltools" = "xyes"], [
                AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported])])
            ocamltools="n"
        )

fi

fi

-Don Slutz

Quoted 18 lines

---
commit e49609cc7b93c2633cf5a49206cb29d6bdd612be

Author: Roger Pau Monne <[email protected]>
Date:   Mon Feb 10 11:54:13 2014 +0100

tools: check OCaml version is at least 3.09.3

tools/configure.ac +0 -0
index 0754f0e..6d1e2ee 100644
@@ -161,6 +161,12 @@ AS_IF([test "x$ocamltools" = "xy"], [
          AS_IF([test "x$enable_ocamltools" = "xyes"], [
              AC_MSG_ERROR([Ocaml tools enabled, but unable to find Ocaml])])

tools/configure.ac AS_IF([test "x$ocamltools" = "xy"], [ · line 172

Quoted 10 lines
tools/configure.ac +6 -0
          ocamltools="n"
+    ], [
+        AX_COMPARE_VERSION([$OCAMLVERSION], [lt], [3.09.4], [
+            AS_IF([test "x$enable_ocamltools" = "xyes"], [
+                AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported])])
+            ocamltools="n"
+        ])
      ])
  ])
  AS_IF([test "x$xsmpolicy" = "xy"], [

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#11 lore raw
Quoted 42 lines · Don Slutz
Quoted 34 lines · Roger Pau Monné
Quoted 33 lines · Ian Campbell
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Don Slutz
Quoted 19 lines · Ian Campbell
Quoted 11 lines · Don Slutz
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

cc1: warnings being treated as errors xenlight_stubs.c: In function 'Defbool_val':
xenlight_stubs.c:344: warning: implicit declaration of function 'CAMLreturnT'
xenlight_stubs.c:344: error: expected expression before 'libxl_defbool'
xenlight_stubs.c: In function 'String_option_val':
xenlight_stubs.c:379: error: expected expression before 'char' xenlight_stubs.c: In function 'aohow_val':
xenlight_stubs.c:440: error: expected expression before 'libxl_asyncop_how'

Quoted 1 line

Any idea on what to do about ocaml issue?

My guess is that your ocaml is too old and doesn't supply CAMLreturnT.
What version do you have?

Ian.

Quoted 8 lines
Quoted 5 lines

dcs-xen-53:~>ocaml -version
The Objective Caml toplevel, version 3.09.3

-Don Slutz

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Quoted 6 lines
Quoted 1 line

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

(remember to re-generate the configure script after applying)

Quoted 7 lines

Not sure if the older Autoconf (2.68) is at fault, but I get:

dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

On Debian systems you need the autoconf-archive package which provides the AX_COMPARE_VERSION macro, and then you also need to run aclocal before autoconf.

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw
Quoted 8 lines · Roger Pau Monné
Quoted 7 lines · Don Slutz
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Andrew Cooper
Quoted 3 lines · Don Slutz
Quoted 1 line · Ian Campbell

On Thu, 2014-02-06 at 19:15 -0500, Don Slutz wrote:

[snip]

Quoted 19 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

Quoted 8 lines
Quoted 1 line

(remember to re-generate the configure script after applying)

Not sure if the older Autoconf (2.68) is at fault, but I get:

dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

Quoted 6 lines

On Debian systems you need the autoconf-archive package which provides the AX_COMPARE_VERSION macro, and then you also need to run aclocal before autoconf.

Roger.

The CentOS 5.10 system has a too old autoconf to do the rebuild, So I went to a Fedora 17 system.

It does have autoconf-archive package, nut that make no difference:

Installed:
autoconf-archive.noarch 0:2012.09.08-1.fc17

Complete!
dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

And the same bad code is still generated:

if test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"; then :

if test "x$enable_ocamltools" = "xyes"; then :

as_fn_error $? "Ocaml tools enabled, but unable to find Ocaml" "$LINENO" 5
fi
ocamltools="n"

else

        AX_COMPARE_VERSION($OCAMLVERSION, lt, 3.09.4,
            AS_IF([test "x$enable_ocamltools" = "xyes"], [
                AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported])])
            ocamltools="n"
        )

fi

-Don Slutz

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw
Quoted 46 lines · Don Slutz
Quoted 8 lines · Roger Pau Monné
Quoted 7 lines · Don Slutz
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Andrew Cooper
Quoted 3 lines · Don Slutz
Quoted 1 line · Ian Campbell

On Thu, 2014-02-06 at 19:15 -0500, Don Slutz wrote:

[snip]

Quoted 20 lines
Quoted 12 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Quoted 6 lines
Quoted 1 line

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

(remember to re-generate the configure script after applying)

Quoted 8 lines

Not sure if the older Autoconf (2.68) is at fault, but I get:

dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

Quoted 6 lines

On Debian systems you need the autoconf-archive package which provides the AX_COMPARE_VERSION macro, and then you also need to run aclocal before autoconf.

Roger.

The CentOS 5.10 system has a too old autoconf to do the rebuild, So I went to a Fedora 17 system.

It does have autoconf-archive package, nut that make no difference:

Installed:
autoconf-archive.noarch 0:2012.09.08-1.fc17

Quoted 6 lines

Complete!
dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

Did you run aclocal before autoconf?

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Tested-by
#14 lore raw
Quoted 51 lines · Roger Pau Monné
Quoted 42 lines · Don Slutz
Quoted 7 lines · Roger Pau Monné
Quoted 6 lines · Don Slutz
Quoted 5 lines · Roger Pau Monné
Quoted 4 lines · Ian Campbell
Quoted 3 lines · Andrew Cooper
Quoted 2 lines · Don Slutz
Quoted 1 line · Ian Campbell

On Thu, 2014-02-06 at 19:15 -0500, Don Slutz wrote:

[snip]

Quoted 20 lines
Quoted 12 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

Which, according to google, was introduced in 3.09.4

I think the ./configure script needs a min version check.

Yes, I think so too. Rob, could you advise on a suitable minimum and perhaps patch tools/configure.ac and/or m4/ocaml.m4 as necessary.

Quoted 6 lines
Quoted 1 line

Also CCing Roger who added the ocaml autoconf stuff.

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

(remember to re-generate the configure script after applying)

Quoted 8 lines

Not sure if the older Autoconf (2.68) is at fault, but I get:

dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

Quoted 6 lines

On Debian systems you need the autoconf-archive package which provides the AX_COMPARE_VERSION macro, and then you also need to run aclocal before autoconf.

Roger.

The CentOS 5.10 system has a too old autoconf to do the rebuild, So I went to a Fedora 17 system.

It does have autoconf-archive package, nut that make no difference:

Installed:

Quoted 8 lines
   autoconf-archive.noarch 0:2012.09.08-1.fc17

Complete!
dcs-xen-54:~/xen/tools>autoconf configure.ac >configure configure.ac:14: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR

Quoted 4 lines

Did you run aclocal before autoconf?

Thanks, Roger.

That did what was needed. And it looks to be working. However, with patch:

http://lists.xen.org/archives/html/xen-devel/2014-02/msg00826.html

Which looks to be going in, the version that is checked should be changed to 3.09.3 from 3.09.4.

Note: The commit message does not match the code.

You can add:

-Don Slutz

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#15 lore raw
Quoted 4 lines · Don Slutz
Quoted 1 line · Roger Pau Monné

Did you run aclocal before autoconf?

That did what was needed.

For future reference you can just run ./autogen.sh at the top level and it does the right thing.

(or if it doesn't I'd appreciate a patch to make it do the right thing)

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#16 lore raw
Quoted 10 lines · Ian Campbell
Quoted 4 lines · Don Slutz
Quoted 1 line · Roger Pau Monné

Did you run aclocal before autoconf?

That did what was needed.

For future reference you can just run ./autogen.sh at the top level and it does the right thing.

(or if it doesn't I'd appreciate a patch to make it do the right thing)

I think we have two options here if we want to add the check version stuff, either we run aclocal before autoconf (and require the user to have the autoconf-archive package) or we pick the AX_COMPARE_VERSION macro source [0] and add it to our local m4/ folder.

[0]
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_compare_version.m4

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#17 lore raw
Quoted 10 lines · Roger Pau Monné
Quoted 9 lines · Ian Campbell
Quoted 4 lines · Don Slutz
Quoted 1 line · Roger Pau Monné

Did you run aclocal before autoconf?

That did what was needed.

For future reference you can just run ./autogen.sh at the top level and it does the right thing.

Quoted 6 lines
Quoted 1 line

(or if it doesn't I'd appreciate a patch to make it do the right thing)

I think we have two options here if we want to add the check version stuff, either we run aclocal before autoconf (and require the user to have the autoconf-archive package) or we pick the AX_COMPARE_VERSION macro source [0] and add it to our local m4/ folder.

Is it the case that we currently do the latter for al the existing checks?

Quoted 5 lines

[0]
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_compare_version.m4

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#18 lore raw
Quoted 13 lines · Ian Campbell
Quoted 12 lines · Roger Pau Monné
Quoted 10 lines · Ian Campbell
Quoted 4 lines · Don Slutz
Quoted 1 line · Roger Pau Monné

Did you run aclocal before autoconf?

That did what was needed.

For future reference you can just run ./autogen.sh at the top level and it does the right thing.

(or if it doesn't I'd appreciate a patch to make it do the right thing)

Quoted 7 lines
Quoted 4 lines

I think we have two options here if we want to add the check version stuff, either we run aclocal before autoconf (and require the user to have the autoconf-archive package) or we pick the AX_COMPARE_VERSION macro source [0] and add it to our local m4/ folder.

Is it the case that we currently do the latter for al the existing checks?

Yes, but I'm not sure if any of the macros we have inside of m4/ are also part of autoconf-archive (at least some of those are custom-made AFAIK). I also think it's best to do the latter, I'm going to add the macro itself to my patch and resend.

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#19 lore raw
Quoted 19 lines · Roger Pau Monné
Quoted 18 lines · Ian Campbell
Quoted 16 lines · Roger Pau Monné
Quoted 10 lines · Ian Campbell
Quoted 4 lines · Don Slutz
Quoted 1 line · Roger Pau Monné

Did you run aclocal before autoconf?

That did what was needed.

For future reference you can just run ./autogen.sh at the top level and it does the right thing.

(or if it doesn't I'd appreciate a patch to make it do the right thing)

I think we have two options here if we want to add the check version stuff, either we run aclocal before autoconf (and require the user to have the autoconf-archive package) or we pick the AX_COMPARE_VERSION macro source [0] and add it to our local m4/ folder.

Quoted 7 lines
Quoted 2 lines

Is it the case that we currently do the latter for al the existing checks?

Yes, but I'm not sure if any of the macros we have inside of m4/ are also part of autoconf-archive (at least some of those are custom-made AFAIK). I also think it's best to do the latter, I'm going to add the macro itself to my patch and resend.

Right, I think that is best for now.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#20 lore raw

Ian Campbell writes ("Re: [Xen-devel] 4.4.0-rc3 tagged"):

Quoted 7 lines · Roger Pau Monné
Quoted 4 lines

Yes, but I'm not sure if any of the macros we have inside of m4/ are also part of autoconf-archive (at least some of those are custom-made AFAIK). I also think it's best to do the latter, I'm going to add the macro itself to my patch and resend.

Right, I think that is best for now.

Definitely we should copy it into our own source code. Relying on what is effectively source code in another package is pretty bad I think.

Ian.

#21 lore raw
In reply to Roger Pau Monné
Quoted 3 lines · Roger Pau Monné

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

Did you ever get round to testing this?

I also wonder if we should be testing for the first version we support, rather than the last version we didn't. Maybe that's splitting hairs a bit though.

Quoted 21 lines

(remember to re-generate the configure script after applying)

---
commit e49609cc7b93c2633cf5a49206cb29d6bdd612be

Author: Roger Pau Monne <[email protected]>
Date:   Mon Feb 10 11:54:13 2014 +0100

tools: check OCaml version is at least 3.09.3

tools/configure.ac +0 -0
index 0754f0e..6d1e2ee 100644
@@ -161,6 +161,12 @@ AS_IF([test "x$ocamltools" = "xy"], [
         AS_IF([test "x$enable_ocamltools" = "xyes"], [
             AC_MSG_ERROR([Ocaml tools enabled, but unable to find Ocaml])])

tools/configure.ac AS_IF([test "x$ocamltools" = "xy"], [ · line 172

Quoted 10 lines
tools/configure.ac +6 -0
         ocamltools="n"
+    ], [
+        AX_COMPARE_VERSION([$OCAMLVERSION], [lt], [3.09.4], [
+            AS_IF([test "x$enable_ocamltools" = "xyes"], [
+                AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported])])
+            ocamltools="n"
+        ])
     ])
 ])
 AS_IF([test "x$xsmpolicy" = "xy"], [

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#22 lore raw
Quoted 6 lines · Ian Campbell
Quoted 3 lines · Roger Pau Monné

The Ocaml autoconf stuff was picked from http://forge.ocamlcore.org/.
Here is an untested patch for our configure script to check for the minimum required OCaml version (3.09.3):

Did you ever get round to testing this?

Please ignore -- just saw v2 further down my mailbox...

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel