
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