qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [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

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