qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] [Qemu-devel] compile qemu.git failed on RHEL6


From: Daniel P. Berrange
Subject: Re: [Qemu-discuss] [Qemu-devel] compile qemu.git failed on RHEL6
Date: Wed, 9 Sep 2015 14:20:21 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Sep 09, 2015 at 06:59:11AM +0000, Zheng, Di wrote:
> Hi all:
> 
> 
> Compile qemu.git failed on RHEL6 while succeed on RHEL7.
> 
> Reproduce steps:
> ./configure --target-list=x86_64-softmmu
> make
> 
> Failed log:
> ...
> GEN   x86_64-softmmu/config-devices.mak
>   GEN   config-all-devices.mak
> Traceback (most recent call last):
>   File "/root/cathy/qemu.git/scripts/qapi-visit.py", line 467, in <module>
>     ret = generate_visit_struct(expr)
>   File "/root/cathy/qemu.git/scripts/qapi-visit.py", line 145, in 
> generate_visit_struct
>     ret = generate_visit_struct_fields(name, members, base)
>   File "/root/cathy/qemu.git/scripts/qapi-visit.py", line 92, in 
> generate_visit_struct_fields
>     name=argname)
>   File "/root/cathy/qemu.git/scripts/qapi.py", line 954, in mcgen
>     return cgen(code, **kwds)
>   File "/root/cathy/qemu.git/scripts/qapi.py", line 947, in cgen
>     raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
> TypeError: subn() takes at most 4 arguments (5 given)
> make: *** [tests/test-qapi-visit.h] Error 1
> make: *** Deleting file `tests/test-qapi-visit.h'
> make: *** Waiting for unfinished jobs....

Yep, this is a bug in QEMU - it is intended to be buildable with
Python >= 2.6, but appears to have used a feature from 2.7, so
we need to fix that


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]