[libvirt] building error

When I build libvirt, I meet the following error message sometimes: make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GEN libvirt-api.xml GEN libvirt-qemu-api.xml GEN html/index.html ./libvirt-api.xml:2450: parser error : AttValue: ' expected <function name='virConnectDomainEventDeregister' file='libvi ^ ./libvirt-api.xml:2450: parser error : attributes construct error <function name='virConnectDomainEventDeregister' file='libvi ^ ./libvirt-api.xml:2450: parser error : Couldn't find end of Start Tag function line 2450 <function name='virConnectDomainEventDeregister' file='libvi ^ ./libvirt-api.xml:2450: parser error : Premature end of data in tag symbols line 1129 <function name='virConnectDomainEventDeregister' file='libvi ^ ./libvirt-api.xml:2450: parser error : Premature end of data in tag api line 2 <function name='virConnectDomainEventDeregister' file='libvi ^ unable to parse ./libvirt-api.xml make[4]: *** [html/index.html] Error 6 make[4]: *** Waiting for unfinished jobs.... If I rebuild it without anything change, the building will success.

On Fri, Apr 20, 2012 at 02:26:31PM +0800, Wen Congyang wrote:
When I build libvirt, I meet the following error message sometimes:
make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GEN libvirt-api.xml GEN libvirt-qemu-api.xml GEN html/index.html ./libvirt-api.xml:2450: parser error : AttValue: ' expected <function name='virConnectDomainEventDeregister' file='libvi
hum ... libvirt-api.xml is generated by docs/apibuild.py that's the first time I heard of a truncated output from that program. [...]
unable to parse ./libvirt-api.xml make[4]: *** [html/index.html] Error 6 make[4]: *** Waiting for unfinished jobs....
If I rebuild it without anything change, the building will success.
It may be a problem of running make with a default parallel seting and a bug in docs/Makefile.am where ./libvirt-api.xml would not be properly serialized with the building of html/index.html. The weird thing is that from your output they seems to be serialized but I would definitely investigate in that direction. I just checked from git head here and that seems to work fine .... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

At 04/20/2012 04:50 PM, Daniel Veillard Wrote:
On Fri, Apr 20, 2012 at 02:26:31PM +0800, Wen Congyang wrote:
When I build libvirt, I meet the following error message sometimes:
make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GEN libvirt-api.xml GEN libvirt-qemu-api.xml GEN html/index.html ./libvirt-api.xml:2450: parser error : AttValue: ' expected <function name='virConnectDomainEventDeregister' file='libvi
hum ... libvirt-api.xml is generated by docs/apibuild.py
that's the first time I heard of a truncated output from that program.
[...]
unable to parse ./libvirt-api.xml make[4]: *** [html/index.html] Error 6 make[4]: *** Waiting for unfinished jobs....
If I rebuild it without anything change, the building will success.
It may be a problem of running make with a default parallel seting and a bug in docs/Makefile.am where ./libvirt-api.xml would not be properly serialized with the building of html/index.html. The weird thing is that from your output they seems to be serialized but I would definitely investigate in that direction.
I just checked from git head here and that seems to work fine ....
The following is my build script: ===================== ./autogen.sh if [[ $? -ne 0 ]]; then exit 1 fi perl -pi -e 's/ *-O2//' configure #remove -O2 from configure if [[ $? -ne 0 ]]; then exit 1 fi ./configure --enable-compile-warnings=error if [[ $? -ne 0 ]]; then exit 1 fi make syntax-check if [[ $? -ne 0 ]]; then exit 1 fi perl -pi -e 's/ --enable-compile-warnings=error//' libvirt.spec perl -pi -e 's/%configure/%configure --enable-compile-warnings=error/' libvirt.spec make dist if [[ $? -ne 0 ]]; then exit 1 fi rpmbuild --define "_sourcedir `pwd`" --define "_without-numad 1" -ba libvirt.spec ===================== Thanks Wen Congyang
Daniel

On 04/20/2012 04:50 AM, Daniel Veillard wrote:
On Fri, Apr 20, 2012 at 02:26:31PM +0800, Wen Congyang wrote:
When I build libvirt, I meet the following error message sometimes:
make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GEN libvirt-api.xml GEN libvirt-qemu-api.xml GEN html/index.html ./libvirt-api.xml:2450: parser error : AttValue: ' expected <function name='virConnectDomainEventDeregister' file='libvi hum ... libvirt-api.xml is generated by docs/apibuild.py
that's the first time I heard of a truncated output from that program.
unable to parse ./libvirt-api.xml make[4]: *** [html/index.html] Error 6 make[4]: *** Waiting for unfinished jobs....
If I rebuild it without anything change, the building will success. It may be a problem of running make with a default parallel seting and a bug in docs/Makefile.am where ./libvirt-api.xml would not be
[...] properly serialized with the building of html/index.html. The weird thing is that from your output they seems to be serialized but I would definitely investigate in that direction.
I just checked from git head here and that seems to work fine ....
Daniel
I just encountered what looks like the same problem. At the time I was running "make -j4" in the libvirt directory, and also building a Fedora rawhide kernel, so the system was loaded down fairly well: make[4]: Entering directory `/home/laine/devel/libvirt/docs' GEN libvirt-qemu-api.xml devhelp/index.html GEN html/index.html ./libvirt-api.xml:2686: parser error : AttValue: ' expected <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ ./libvirt-api.xml:2686: parser error : attributes construct error <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ ./libvirt-api.xml:2686: parser error : Couldn't find end of Start Tag arg line 2686 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ ./libvirt-api.xml:2686: parser error : Premature end of data in tag function line 2683 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ ./libvirt-api.xml:2686: parser error : Premature end of data in tag symbols line 1136 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ ./libvirt-api.xml:2686: parser error : Premature end of data in tag api line 2 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor con ^ unable to parse ./libvirt-api.xml make[4]: *** [devhelp/index.html] Error 6 make[4]: *** Waiting for unfinished jobs.... ./libvirt-api.xml:3112: parser error : CData section not finished Populate a disk image with data from its backing i The ^ ./libvirt-api.xml:3112: parser error : Premature end of data in tag info line 3098 The ^ ./libvirt-api.xml:3112: parser error : Premature end of data in tag function line 3097 The ^ ./libvirt-api.xml:3112: parser error : Premature end of data in tag symbols line 1136 The ^ ./libvirt-api.xml:3112: parser error : Premature end of data in tag api line 2 The ^ unable to parse ./libvirt-api.xml make[4]: *** [html/index.html] Error 6
participants (3)
-
Daniel Veillard
-
Laine Stump
-
Wen Congyang