From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZfId-0006eF-QM for qemu-devel@nongnu.org; Wed, 09 Sep 2015 09:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZfIY-0005mL-3h for qemu-devel@nongnu.org; Wed, 09 Sep 2015 09:20:31 -0400 Date: Wed, 9 Sep 2015 14:20:21 +0100 From: "Daniel P. Berrange" Message-ID: <20150909132021.GG22200@redhat.com> References: <50F1590C65D39F48948F60183AEB8A0A1E093403@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <50F1590C65D39F48948F60183AEB8A0A1E093403@SHSMSX103.ccr.corp.intel.com> Subject: Re: [Qemu-devel] compile qemu.git failed on RHEL6 Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 > 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 :|