I think you should use python 2.7. please refer this link: https://github.com/BenoitZugmeyer/addic7ed-cli/issues/18 .
Best Regards Nan Xiao On Wed, Sep 9, 2015 at 2:59 PM, Zheng, Di <[email protected]> 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.... > > Traceback (most recent call last): > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 352, in > <module> > > ret = gen_marshal_input(cmd['command'], arglist, ret_type, > middle_mode) + "\n" > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 224, in > gen_marshal_input > > ret += gen_sync_call(name, args, ret_type) > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 56, in > gen_sync_call > > name=c_name(name), args=arglist, retval=retval) > > 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-qmp-commands.h] Error 1 > > make: *** Deleting file `tests/test-qmp-commands.h' > > Traceback (most recent call last): > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 352, in > <module> > > ret = gen_marshal_input(cmd['command'], arglist, ret_type, > middle_mode) + "\n" > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 224, in > gen_marshal_input > > ret += gen_sync_call(name, args, ret_type) > > File "/root/cathy/qemu.git/scripts/qapi-commands.py", line 56, in > gen_sync_call > > name=c_name(name), args=arglist, retval=retval) > > 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: *** [qmp-commands.h] Error 1 > > make: *** Deleting file `qmp-commands.h' > > 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: *** [qapi-visit.h] Error 1 > > make: *** Deleting file `qapi-visit.h' > > Traceback (most recent call last): > > File "/root/cathy/qemu.git/scripts/qapi-event.py", line 285, in <module> > > ret = generate_event_implement(api_name, event_name, params) > > File "/root/cathy/qemu.git/scripts/qapi-event.py", line 114, in > generate_event_implement > > 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-event.h] Error 1 > > make: *** Deleting file `tests/test-qapi-event.h' > > Traceback (most recent call last): > > File "/root/cathy/qemu.git/scripts/qapi-event.py", line 285, in <module> > > ret = generate_event_implement(api_name, event_name, params) > > File "/root/cathy/qemu.git/scripts/qapi-event.py", line 114, in > generate_event_implement > > 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: *** [qapi-event.h] Error 1 > > make: *** Deleting file `qapi-event.h' > > >
