On 9 September 2015 at 07:59, Zheng, Di <di.zh...@intel.com> wrote:
> Compile qemu.git failed on RHEL6 while succeed on RHEL7.

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

Yes, we accidentally broke Python 2.6 support. Try this patch, currently
on the mailing list:
http://patchwork.ozlabs.org/patch/515221/

thanks
-- PMM

Reply via email to