Received: from eggs.gnu.org ([2001:4830:134:3::10]:57112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZDtI-00010w-LF for qemu-devel@nongnu.org; Mon, 15 Aug 2016 05:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZDtF-0002mZ-C2 for qemu-devel@nongnu.org; Mon, 15 Aug 2016 05:09:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZDtF-0002lt-3f for qemu-devel@nongnu.org; Mon, 15 Aug 2016 05:09:01 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7F93iaF137208 for ; Mon, 15 Aug 2016 05:08:59 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 24t0295yv4-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 15 Aug 2016 05:08:59 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 15 Aug 2016 10:08:57 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id EFA0B1B08069 for ; Mon, 15 Aug 2016 10:10:29 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u7F98sCd23461898 for ; Mon, 15 Aug 2016 09:08:54 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u7F98reS024394 for ; Mon, 15 Aug 2016 03:08:53 -0600 References: <1470837437-14713-1-git-send-email-pbonzini@redhat.com> <1470837437-14713-3-git-send-email-pbonzini@redhat.com> <66e64b7a-8d4d-a8ab-03d3-c48277165b77@de.ibm.com> From: Christian Borntraeger Date: Mon, 15 Aug 2016 11:08:49 +0200 MIME-Version: 1.0 In-Reply-To: <66e64b7a-8d4d-a8ab-03d3-c48277165b77@de.ibm.com> Content-Type: text/plain; charset=utf-8 Message-Id: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 02/14] build-sys: fix building with make CFLAGS=.. argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Cornelia Huck On 08/15/2016 10:41 AM, Christian Borntraeger wrote: > On 08/10/2016 03:57 PM, Paolo Bonzini wrote: >> From: Marc-Andr=C3=A9 Lureau >> >> When calling make with a CFLAGS=3D.. argument, the -g/-O filter is not >> applied, which may result with build failure with ASAN for example. It >> could be solved with an 'override' directive on CFLAGS, but that would >> actually prevent setting different CFLAGS manually. >> >> Instead, filter the CFLAGS argument from the top-level Makefile (so >> you could still call make with a different CFLAGS argument on a >> rom/Makefile manually) >> >> Signed-off-by: Marc-Andr=C3=A9 Lureau >> Reviewed-by: Paolo Bonzini >> Message-Id: <20160805082421.21994-2-marcandre.lureau@redhat.com> >> Signed-off-by: Paolo Bonzini >=20 >=20 > This patch breaks the build on the s390-ccw.img bios if I enable > --enable-debug >=20 [...] >=20 Something like=20 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -10,8 +10,10 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw) .PHONY : all clean build-all =20 OBJECTS =3D start.o main.o bootmap.o sclp-ascii.o virtio.o virtio-scsi.o -CFLAGS +=3D -fPIE -fno-stack-protector -ffreestanding -march=3Dz900 -CFLAGS +=3D -fno-delete-null-pointer-checks -msoft-float +QEMU_CFLAGS :=3D $(filter -W%, $(QEMU_CFLAGS)) +QEMU_CFLAGS :=3D -ffreestanding -fno-delete-null-pointer-checks -msoft-f= loat +QEMU_CFLAGS :=3D -march=3Dz900 -fPIE +QEMU_CFLAGS +=3D $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector) LDFLAGS +=3D -Wl,-pie -nostdlib =20 build-all: s390-ccw.img seems to help. I need to double check...