WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] Unable to compile xapi from git on debian squeeze]

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-API] Unable to compile xapi from git on debian squeeze]
From: Errol Neal <eneal@xxxxxxxxxxxxxxxxx>
Date: Mon, 15 Aug 2011 13:19:57 -0400
Delivery-date: Mon, 15 Aug 2011 10:22:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Reply-to: eneal@xxxxxxxxxxxxxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
On Aug 15 2011 
>>Install the ocaml-native-compilers package and try again. For some reason the 
>>large (but not massive) datamodel.ml causes the bytecode compilers to blow 
>>their stacks.
>>Jon
> On Mon, 08/15/2011 03:12 AM, Sergei Lebedev &lt;superbobry@xxxxxxxxx&gt; 
> wrote:
>> Hi Errol,
>> Which architecture are using? the error message suggests arch. mismatch.
>> --Sergei


Thanks for that suggestion Jon. I got a bit further, but it's hitting a 
different error now:

root@squeeze:~/tmp/xen-api/ocaml/xiu# gcc -v -g -O2 -DCOMPILE_NATIVE 
-I/usr/lib/ocaml -fno-omit-frame-pointer -fno-optimize-sibling-calls 
-fno-strict-aliasing -std=gnu99 -mno-tls-direct-seg-refs -Wall 
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -Werror 
-Wmissing-prototypes -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -I. -c -o xenctrl_xiu.o 
xenctrl_xiu.c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-6' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-multiarch 
--with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu 
--without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/i386-linux-gnu 
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc 
--enable-targets=all --with-arch-32=i586 --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-6)
COLLECT_GCC_OPTIONS='-v' '-g' '-O2' '-D' 'COMPILE_NATIVE' '-I' '/usr/lib/ocaml' 
'-fno-omit-frame-pointer' '-fno-optimize-sibling-calls' '-fno-strict-aliasing' 
'-std=gnu99' '-mno-tls-direct-seg-refs' '-Wall' '-Wstrict-prototypes' 
'-Wno-unused-value' '-Wdeclaration-after-statement' '-Werror' 
'-Wmissing-prototypes' '-D' '__XEN_TOOLS__' '-D' '_LARGEFILE_SOURCE' '-D' 
'_FILE_OFFSET_BITS=64' '-D' '_LARGEFILE_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-D' 
'_GNU_SOURCE' '-I' '.' '-c' '-o' 'xenctrl_xiu.o' '-mtune=generic' '-march=i586'
 /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/cc1 -quiet -v -I 
/usr/lib/ocaml -I . -D COMPILE_NATIVE -D __XEN_TOOLS__ -D _LARGEFILE_SOURCE -D 
_FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D _GNU_SOURCE 
xenctrl_xiu.c -quiet -dumpbase xenctrl_xiu.c -mno-tls-direct-seg-refs 
-mtune=generic -march=i586 -auxbase-strip xenctrl_xiu.o -g -O2 -Wall 
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -Werror 
-Wmissing-prototypes -std=gnu99 -version -fno-omit-frame-pointer 
-fno-optimize-sibling-calls -fno-strict-aliasing -o /tmp/ccSdH7JQ.s
GNU C (Debian 4.6.1-6) version 4.6.1 (i486-linux-gnu)
        compiled by GNU C version 4.6.1, GMP version 5.0.1, MPFR version 
3.0.1-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=44 --param ggc-min-heapsize=27581
ignoring nonexistent directory "/usr/local/include/i386-linux-gnu"
ignoring nonexistent directory 
"/usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/../../../../../i486-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/ocaml
 .
 /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/include
 /usr/local/include
 /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/include-fixed
 /usr/include/i386-linux-gnu
 /usr/include
End of search list.
GNU C (Debian 4.6.1-6) version 4.6.1 (i486-linux-gnu)
        compiled by GNU C version 4.6.1, GMP version 5.0.1, MPFR version 
3.0.1-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=44 --param ggc-min-heapsize=27581
Compiler executable checksum: 196f9ad1be8a95bb0d16599e39af0d11
xenctrl_xiu.c:454:9: error: unknown field âarch_ioctlâ specified in initializer
xenctrl_xiu.c:454:9: error: excess elements in struct initializer [-Werror]
xenctrl_xiu.c:454:9: error: (near initialization for 
âxiu_privcmd_ops.u.privcmdâ) [-Werror]
xenctrl_xiu.c:455:9: error: unknown field ârestrict_toâ specified in initializer
xenctrl_xiu.c:455:9: error: excess elements in struct initializer [-Werror]
xenctrl_xiu.c:455:9: error: (near initialization for 
âxiu_privcmd_ops.u.privcmdâ) [-Werror]
xenctrl_xiu.c:573:9: error: unknown field ârestrict_toâ specified in initializer
xenctrl_xiu.c:573:9: error: excess elements in struct initializer [-Werror]
xenctrl_xiu.c:573:9: error: (near initialization for âxiu_evtchn_ops.u.evtchnâ) 
[-Werror]
cc1: all warnings being treated as errors

Thanks so much for your time on this!

-Errol


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>