qemu-discuss
[Top][All Lists]
Advanced

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

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


From: Peter Maydell
Subject: Re: [Qemu-discuss] compile qemu.git failed on RHEL6
Date: Wed, 9 Sep 2015 12:15:55 +0100

On 9 September 2015 at 07:59, Zheng, Di <address@hidden> 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

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