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-devel

RE: [XCP] RE: [Xen-devel] xen-api installation problem

To: 'Tony Wei' <twei@xxxxxxxxxxxxxxxxxxxxxxxx>, Vincent Hanquez <Vincent.Hanquez@xxxxxxxxxxxxx>
Subject: RE: [XCP] RE: [Xen-devel] xen-api installation problem
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Tue, 17 Nov 2009 23:36:29 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Roger, Mike Schwartz <mschwartz@xxxxxxxxxxxxxxxxxxxxxxxx>, Cruz <rcruz@xxxxxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 17 Nov 2009 15:36:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <40B551BEDC7945419A5897958AB3947C01B1B743@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <40B551BEDC7945419A5897958AB3947C01B1B386@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4B0194BB.5040506@xxxxxxxxxxxxx> <40B551BEDC7945419A5897958AB3947C01B1B615@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD2143B74F1531@xxxxxxxxxxxxxxxxxxxxxxxxx> <40B551BEDC7945419A5897958AB3947C01B1B743@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acpm5qHjIceltrbFQHCW2NyPJsygMQAvaI+wAA3k3HAAAGdjcAAAMa4g
Thread-topic: [XCP] RE: [Xen-devel] xen-api installation problem
Hi,

You're still missing 'aclocal' which I think is part of the 'automake' package 
-- try installing that as well as 'autoconf'.

The updated build script (http://xenbits.xen.org/xapi/build-xapi-toolstack.sh) 
should do this for you. If you're still having trouble, try a re-clone of the 
VM plus a fresh copy of the build script.

I think the other errors are harmless.

Cheers,
Dave

-----Original Message-----
From: Tony Wei [mailto:twei@xxxxxxxxxxxxxxxxxxxxxxxx] 
Sent: 17 November 2009 23:27
To: Dave Scott; Vincent Hanquez
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Roger Cruz; Mike Schwartz
Subject: RE: [XCP] RE: [Xen-devel] xen-api installation problem

Hi, I gto autoconf package by following the way you showed below, and
run the script again. Unfortunately, I got the following new errors when
it starts to run autoreconf:

Building xapi-specific libraries
Can't exec "aclocal": No such file or directory at /usr/bin/autoreconf
line 174.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf
line 174.
Can't exec "aclocal": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 288.
autoreconf: failed to run aclocal: No such file or directory

By the way, the previous errors still exist:

make[5]: Entering directory
`/root/repo/xen-dist-ocaml.hg/obj/findlib/findlib-1.1.2pl1/src/findlib'
Makefile:129: depend: No such file or directory

......

File "omake_gen_magic.ml", line 83, characters 14-33:
Error: Unbound value Lm_string_util.trim
make[5]: *** [omake_gen_magic.cmo] Error 2
make[5]: Leaving directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot'
make[4]: *** [boot] Error 2
make[4]: Leaving directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9'
make[3]: [/root/repo/xen-dist-ocaml.hg/obj/omake/.configured] Error 2
(ignored)
rm -f
/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot/Makefile.dep
make -C /root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot
Makefile.dep
make[4]: Entering directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot'
Makefile:909: Makefile.dep: No such file or directory



-----Original Message-----
From: Dave Scott [mailto:Dave.Scott@xxxxxxxxxxxxx] 
Sent: Tuesday, November 17, 2009 6:20 PM
To: Tony Wei; Vincent Hanquez
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Roger Cruz
Subject: [XCP] RE: [Xen-devel] xen-api installation problem

Hi Tony,

(added '[XCP]' to subject)

It turns out there are two problems:
1. the missing 'sh autogen.sh; configure' that Vincent pointed out
(thanks!)
2. the fact that the autoconf and automake packages are missing in the
current build VM

I've added fixes/workarounds for both of these into the build script
 http://xenbits.xen.org/xapi/build-xapi-toolstack.sh

Could you re-clone a fresh build VM and try again?

Clearly we need to do a bit of work on our 'build system' :-)

Cheers,
Dave

-----Original Message-----
From: Tony Wei [mailto:twei@xxxxxxxxxxxxxxxxxxxxxxxx] 
Sent: 17 November 2009 16:51
To: Vincent Hanquez
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Dave Scott; Roger Cruz
Subject: RE: [Xen-devel] xen-api installation problem

Hi Vincent,

I modified the script as you suggested and ran it in a brand-new
buildvm. It still failed and I got the following error messages (plus
the previous errors):

========================================================================
===================

make[5]: Entering directory
`/root/repo/xen-dist-ocaml.hg/obj/findlib/findlib-1.1.2pl1/src/findlib'
Makefile:129: depend: No such file or directory

......

File "omake_gen_magic.ml", line 83, characters 14-33:
Error: Unbound value Lm_string_util.trim
make[5]: *** [omake_gen_magic.cmo] Error 2
make[5]: Leaving directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot'
make[4]: *** [boot] Error 2
make[4]: Leaving directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9'
make[3]: [/root/repo/xen-dist-ocaml.hg/obj/omake/.configured] Error 2
(ignored)
rm -f
/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot/Makefile.dep
make -C /root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot
Makefile.dep
make[4]: Entering directory
`/root/repo/xen-dist-ocaml.hg/obj/omake/omake-0.9.6.9/boot'
Makefile:909: Makefile.dep: No such file or directory

.......

Building xapi-specific libraries
autogen.sh: line 2: autoreconf: command not found

========================================================================
===================

By the way, instead of installing a host with a pre-built xapi
toolstack, I used an XenServer 5.0.0 to host buildvm, is it OK?

Your early assistance is highly appreciated!

Tony


-----Original Message-----
From: Vincent Hanquez [mailto:vincent.hanquez@xxxxxxxxxxxxx] 
Sent: Monday, November 16, 2009 1:07 PM
To: Tony Wei
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Dave Scott
Subject: Re: [Xen-devel] xen-api installation problem

Tony Wei wrote:
>
> Hi, I built xapi build appliance VM by following the instruction as:
>
>  
>
> http://xenbits.xen.org/xapi/install.html
>
>  
>
> Everything looks OK until I run:
>
>  
>
> # ./build-xapi-toolstack.sh
>
>  
>
> It stops at:
>
>  
>
> ...
>
> Building xapi-specific libraries
>
> Make: *** No rule to make target 'clean'. Stop.
>
>  
>
> Please advise. Thanks.
>
Not sure that will fix it but you can try adding just before the 
./rebuild step line 28 in the build-xapi-toolstack.sh script:

sh autogen.sh
./configure

the script should look like:

...
echo "Building xapi-specific libraries"
cd $REPO/xen-api-libs.hg
sh autogen.sh
./configure
./rebuild
echo "Building xapi toolstack"
...

-- 
Vincent Hanquez

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel