* [Qemu-devel] compile qemu.git failed on RHEL6
@ 2015-09-09 6:59 Zheng, Di
2015-09-09 9:54 ` [Qemu-devel] [Qemu-discuss] " Nan Xiao
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Zheng, Di @ 2015-09-09 6:59 UTC (permalink / raw)
To: qemu-discuss@nongnu.org, qemu-devel@nongnu.org; +Cc: Hu, Robert, Liu, RongrongX
[-- Attachment #1: Type: text/plain, Size: 4859 bytes --]
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'
[-- Attachment #2: Type: text/html, Size: 11529 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] compile qemu.git failed on RHEL6
2015-09-09 6:59 [Qemu-devel] compile qemu.git failed on RHEL6 Zheng, Di
@ 2015-09-09 9:54 ` Nan Xiao
2015-09-09 11:15 ` Peter Maydell
2015-09-09 13:20 ` [Qemu-devel] " Daniel P. Berrange
2 siblings, 0 replies; 4+ messages in thread
From: Nan Xiao @ 2015-09-09 9:54 UTC (permalink / raw)
To: Zheng, Di
Cc: Hu, Robert, Liu, RongrongX, qemu-devel@nongnu.org,
qemu-discuss@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 5592 bytes --]
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 <di.zheng@intel.com> 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'
>
>
>
[-- Attachment #2: Type: text/html, Size: 10053 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] compile qemu.git failed on RHEL6
2015-09-09 6:59 [Qemu-devel] compile qemu.git failed on RHEL6 Zheng, Di
2015-09-09 9:54 ` [Qemu-devel] [Qemu-discuss] " Nan Xiao
@ 2015-09-09 11:15 ` Peter Maydell
2015-09-09 13:20 ` [Qemu-devel] " Daniel P. Berrange
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2015-09-09 11:15 UTC (permalink / raw)
To: Zheng, Di
Cc: Hu, Robert, Liu, RongrongX, qemu-devel@nongnu.org,
qemu-discuss@nongnu.org
On 9 September 2015 at 07:59, Zheng, Di <di.zheng@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] compile qemu.git failed on RHEL6
2015-09-09 6:59 [Qemu-devel] compile qemu.git failed on RHEL6 Zheng, Di
2015-09-09 9:54 ` [Qemu-devel] [Qemu-discuss] " Nan Xiao
2015-09-09 11:15 ` Peter Maydell
@ 2015-09-09 13:20 ` Daniel P. Berrange
2 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrange @ 2015-09-09 13:20 UTC (permalink / raw)
To: Zheng, Di
Cc: Hu, Robert, Liu, RongrongX, qemu-devel@nongnu.org,
qemu-discuss@nongnu.org
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 :|
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-09 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 6:59 [Qemu-devel] compile qemu.git failed on RHEL6 Zheng, Di
2015-09-09 9:54 ` [Qemu-devel] [Qemu-discuss] " Nan Xiao
2015-09-09 11:15 ` Peter Maydell
2015-09-09 13:20 ` [Qemu-devel] " Daniel P. Berrange
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).