Received: from eggs.gnu.org ([2001:4830:134:3::10]:56642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4ACb-0001Y2-05 for qemu-devel@nongnu.org; Tue, 08 Nov 2016 12:28:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4ACW-0000tI-Vt for qemu-devel@nongnu.org; Tue, 08 Nov 2016 12:28:53 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47013 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4ACW-0000ss-QZ for qemu-devel@nongnu.org; Tue, 08 Nov 2016 12:28:48 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uA8HNYP9117665 for ; Tue, 8 Nov 2016 12:28:48 -0500 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 26keg9kmrp-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 08 Nov 2016 12:28:48 -0500 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 8 Nov 2016 17:28:46 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5606617D805F for ; Tue, 8 Nov 2016 17:31:05 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uA8HSi1114549286 for ; Tue, 8 Nov 2016 17:28:44 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uA8HShqh004991 for ; Tue, 8 Nov 2016 10:28:44 -0700 Date: Tue, 8 Nov 2016 18:28:41 +0100 From: Cornelia Huck In-Reply-To: <20161108164951.GG11274@stefanha-x1.localdomain> References: <58218164.2040106@ispras.ru> <20161108164951.GG11274@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <20161108182841.512094fb.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] Concerning " [PULL 6/6] curses: Use cursesw instead of curses" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Sergey Smolov , QEMU Developers On Tue, 8 Nov 2016 16:49:51 +0000 Stefan Hajnoczi wrote: > On Tue, Nov 08, 2016 at 10:40:20AM +0300, Sergey Smolov wrote: > > Dear List! > >=20 > > I've encountered the same problem as was discussed in this thread: > > https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg07898.html > >=20 > > Does anybody succeeded in solving the problem? > >=20 > > From my side, the problem appears when I run the 'configure' script with > > '--target-list=3Daarch64-softmmu' option. The script returns the follow= ing > > message to me: > >=20 > > ERROR: configure test passed without -Werror but failed with -Werror. > > This is probably a bug in the configure script. The failing comm= and > > will be at the bottom of config.log. > > You can run configure with --disable-werror to bypass this check. > >=20 > > I've attached a config.log to this e-mail. >=20 > [...] >=20 > > cc -Werror -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D= 64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef = -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwra= pv -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wfo= rmat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-dec= laration -Wold-style-definition -Wtype-limits -fstack-protector-all -I/usr/= include/libpng14 -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -Wl,-= z,relro -Wl,-z,now -pie -m64 -g -lncursesw > > config-temp/qemu-conf.c: In function =E2=80=98main=E2=80=99: > > config-temp/qemu-conf.c:9:3: error: implicit declaration of function = =E2=80=98addwstr=E2=80=99 [-Werror=3Dimplicit-function-declaration] > > config-temp/qemu-conf.c:9:3: error: nested extern declaration of =E2=80= =98addwstr=E2=80=99 [-Werror=3Dnested-externs] > > config-temp/qemu-conf.c:10:3: error: implicit declaration of function = =E2=80=98addnwstr=E2=80=99 [-Werror=3Dimplicit-function-declaration] > > config-temp/qemu-conf.c:10:3: error: nested extern declaration of =E2= =80=98addnwstr=E2=80=99 [-Werror=3Dnested-externs] > > cc1: all warnings being treated as errors >=20 > http://pdcurses.sourceforge.net/doc/PDCurses.txt: >=20 > Wide-character functions from the X/Open standard -- these are only > available when PDCurses is built with PDC_WIDE defined, and the > prototypes are only available from curses.h when PDC_WIDE is defined > before its inclusion in your app: >=20 > addnwstr addstr > addwstr addstr >=20 > QEMU does not define PDC_WIDE. Try adding ./configure > --extra-flags=3D-DPDC_WIDE. I think the problem is rather the incorrect include detection in configure -- see <20161107133833.3681-1-msuchanek@suse.de> ("[PATCH] Fix legacy ncurses detection.") and the following thread. Sergey: Are you running on SLES?