qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: "Zheng, Di" <di.zheng@intel.com>
Cc: "Hu, Robert" <robert.hu@intel.com>,
	"Liu, RongrongX" <rongrongx.liu@intel.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"qemu-discuss@nongnu.org" <qemu-discuss@nongnu.org>
Subject: Re: [Qemu-devel] compile qemu.git failed on RHEL6
Date: Wed, 9 Sep 2015 14:20:21 +0100	[thread overview]
Message-ID: <20150909132021.GG22200@redhat.com> (raw)
In-Reply-To: <50F1590C65D39F48948F60183AEB8A0A1E093403@SHSMSX103.ccr.corp.intel.com>

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

      parent reply	other threads:[~2015-09-09 13:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150909132021.GG22200@redhat.com \
    --to=berrange@redhat.com \
    --cc=di.zheng@intel.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=robert.hu@intel.com \
    --cc=rongrongx.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).