From unknown Tue Jun 24 05:09:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36882 <36882@debbugs.gnu.org> To: bug#36882 <36882@debbugs.gnu.org> Subject: Status: QEMU 4 fails to build for x86_64-linux Reply-To: bug#36882 <36882@debbugs.gnu.org> Date: Tue, 24 Jun 2025 12:09:11 +0000 retitle 36882 QEMU 4 fails to build for x86_64-linux reassign 36882 guix submitter 36882 Leo Famulari severity 36882 important thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 31 16:03:48 2019 Received: (at submit) by debbugs.gnu.org; 31 Jul 2019 20:03:48 +0000 Received: from localhost ([127.0.0.1]:53134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsup8-0002Aj-Pw for submit@debbugs.gnu.org; Wed, 31 Jul 2019 16:03:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:39023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsup6-0002Ab-L8 for submit@debbugs.gnu.org; Wed, 31 Jul 2019 16:03:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51667) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsup5-00016T-M8 for bug-guix@gnu.org; Wed, 31 Jul 2019 16:03:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsup4-0004J2-Ng for bug-guix@gnu.org; Wed, 31 Jul 2019 16:03:43 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:33285) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hsup4-0004IT-HF for bug-guix@gnu.org; Wed, 31 Jul 2019 16:03:42 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3616221FE5; Wed, 31 Jul 2019 16:03:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 31 Jul 2019 16:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type; s= mesmtp; bh=0aFkSahJ5jc3gY3fTcNkHnWRBZtJI2b7H2fCPOXkcZs=; b=SQuq0 7nlz9jCp66GU7XyqAv3SFHnAVKyEPM6fk6lngQYLTiJG/vHtwFZZgXXQiqJFWoRG XkHrZ36BUR/oVqjITISZmPsnfH1dutztaRCpOjE5RsVPlHbcv5mHybFnByE6tfHn 4RrUJ4OcfQp9dEEW8+36ZsoY8em6y9NSJdrBpc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=0aFkSahJ5jc3gY3fTcNkHnWRBZtJI 2b7H2fCPOXkcZs=; b=1TvhZJsmX+k2ThtIc2FS77wHtafQ4mTITQzOFEWKxw7rP 99/6KmA99AqP4/Q6f1CjGiZoxfJlqDUQfL3J6pzxXleX2ygLuh1b9eWhqQnGV5Vv OAdU+XqI94edVBR/XMjWe0HBNzR7iPFl8HDVhaNS6N8mSgdNf8QgtG36GyiFj5ff ilNpzxwI6E1ljNshRHwm9NDeIUIdFPuDhf1crlEjEjWGaFsW/LLqsGQthDI4SIIJ e7xWbyEt2AiJm6LFneo9fppwmmMYQuGVXslnMC5e9Q2tgVqDsJTLia2AFi4EKNug hO1SFtgqPPV4CmcrpIbfBtAQHZk5TDOpjwrSMmcHQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrleehgddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtuggfsehttdertd dtredvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucfkphepjeeirdduvdegrddufeekrdeifeenucfrrghrrghmpehmrg hilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvgenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from localhost (c-76-124-138-63.hsd1.pa.comcast.net [76.124.138.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F89580064 for ; Wed, 31 Jul 2019 16:03:39 -0400 (EDT) Date: Wed, 31 Jul 2019 16:03:34 -0400 From: Leo Famulari To: bug-guix@gnu.org Subject: QEMU 4 fails to build for x86_64-linux Message-ID: <20190731200334.GA29724@jasmine.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) While testing the upgrade of our QEMU package to 4.0.0 or 4.1.0-rc3 on x86_64-linux, the build fails when the header 'gnu/stubs-32.h' can't be found: ------ In file included from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/features.h:452:0, from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/bits/libc-header-start.h:33, from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/stdint.h:26, from linuxboot_dma.c:65: /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. make[1]: *** [/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/rules.mak:69: linuxboot_dma.o] Error 1 make[1]: Leaving directory '/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/pc-bios/optionrom' make: *** [Makefile:519: pc-bios/optionrom/all] Error 2 ------ And of course, this header is not installed by glibc when it is built for 64-bit systems. The header in question, 'stubs.h', looks like this: ------ #if !defined __x86_64__ # include #endif #if defined __x86_64__ && defined __LP64__ # include #endif #if defined __x86_64__ && defined __ILP32__ # include #endif ------ When I build for i686-linux, it works as expected. Any advice? I'm not really sure what's going on here. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 01 10:15:06 2019 Received: (at 36882) by debbugs.gnu.org; 1 Aug 2019 14:15:06 +0000 Received: from localhost ([127.0.0.1]:54827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htBrG-0004QC-Ad for submit@debbugs.gnu.org; Thu, 01 Aug 2019 10:15:06 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:50125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htBrE-0004PO-D2 for 36882@debbugs.gnu.org; Thu, 01 Aug 2019 10:15:05 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7C8D23A8; Thu, 1 Aug 2019 10:14:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 01 Aug 2019 10:14:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=i5wyLBB/PHo4c0g1LWZIHns30R wqp/2GWplRDrXcOjU=; b=e+Lti7/ZGUPBEs4hlhfDFA8HoQS6dFqWY/55951gFs 0tyg7/tYg+8wAbAWEJ+ilg1s4mcRAHdggZjqKF0JdY9VMdpjGsmb86e7AHLJProh rtLX4ThQLweNXr7+WGOw8oTkiAfPhHoiXK5RCKF3w6VEjBqA7xImgV18FcCg4Z+q q+VLKvwASGlGq0WDWyeCkZAYLmboFa0bAP1QKTiquKHxwneQmZKSkpwOL1MU1fGi ciXjp58IigEa5L0+9LCMalNp/UNHgGqcFENkcKPazKdUredYYPr1WJnatJHbDJ5/ NkEHEA0JK5y1/1wIJpfC4eWTrA5pMzUTS9+YlXNuInEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=i5wyLB B/PHo4c0g1LWZIHns30Rwqp/2GWplRDrXcOjU=; b=m48mtzfzPvb9xmWGPeZZmD sZ+Gu3X0zwKfLdqyQ35cXQyCASlWME8z7y9tL5GkRrxZnmZaU32srf4y4Yc5gNUR WqDrWm2IUJUUj4wsJ0MlMac+bKFx00QolrEF17hNks7qYLTdRhDJUdG+iLpgUGEw fqe2bEcgihGa/DxehSXbIQU5NbzxK9LwBMv8dNAPIYpGTbWJebr3bGJpSTLihH/A 3vQQIl7L0s+t1zWKyM57kPval4b9voaP6Z0F+TQICyOnxM85XoJuB+3GpKDdT5lL n+TYjwxCgbK8L5+9333AwG0hV/oeqRZtfMADd9kYPDJeGow0nFdcpfYgeEkdLiMQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrleejgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre dtredtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpe hmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 5738D80064; Thu, 1 Aug 2019 10:14:57 -0400 (EDT) From: Marius Bakke To: Leo Famulari , 36882@debbugs.gnu.org Subject: Re: bug#36882: QEMU 4 fails to build for x86_64-linux In-Reply-To: <20190731200334.GA29724@jasmine.lan> References: <20190731200334.GA29724@jasmine.lan> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Thu, 01 Aug 2019 16:14:55 +0200 Message-ID: <87h8712crk.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Leo Famulari writes: > While testing the upgrade of our QEMU package to 4.0.0 or 4.1.0-rc3 on > x86_64-linux, the build fails when the header 'gnu/stubs-32.h' can't be > found: > > ------ > In file included from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/features.h:452:0, > from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/bits/libc-header-start.h:33, > from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/stdint.h:26, > from linuxboot_dma.c:65: > /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory > compilation terminated. > make[1]: *** [/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/rules.mak:69: linuxboot_dma.o] Error 1 > make[1]: Leaving directory '/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/pc-bios/optionrom' > make: *** [Makefile:519: pc-bios/optionrom/all] Error 2 > ------ > > And of course, this header is not installed by glibc when it is built > for 64-bit systems. > > The header in question, 'stubs.h', looks like this: > > ------ > #if !defined __x86_64__ > # include > #endif > #if defined __x86_64__ && defined __LP64__ > # include > #endif > #if defined __x86_64__ && defined __ILP32__ > # include > #endif > ------ > > When I build for i686-linux, it works as expected. > > Any advice? I'm not really sure what's going on here. I don't know why it fails, but it works if you give it a newer GCC such as the one on 'core-updates'. I tried it with 4.0.0, but got stuck on two test failures. Hopefully 4.1.0 is easier to debug... :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl1C8+AACgkQoqBt8qM6 VPpHIQgAszLRJb5HgNC1JYPLUFqlBD13MNWD43IlTBuRC/cGwvO6EIJcFr/VJRDq I2n/+n+FQ/baejWJzCrEzFlwxksvA4p8awmKQAPND9c2mPYDp8zfZXushXlhSGYl zLcoU7yKJ//YmOa+WksNFj/MTAbWFF2QrLQYaZcCe6FyJSq52CJr5DMJdEGNIfcN InfMemQif2TXR3l/CeLmani61e9Q1wzrUMt+YgfzzPcD0xd6vsqxSFvPlmWaFXAY YHhs9U3SlCRESDMaDHQo+fz6VuHGyZhwtitAH5hI99RxDdecEq5kDVoDfJMMnSy2 GuZBczFbJaNH7eHirc6XgGO35VV89A== =17Hx -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 08:58:32 2019 Received: (at 36882) by debbugs.gnu.org; 23 Aug 2019 12:58:32 +0000 Received: from localhost ([127.0.0.1]:39303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i199E-0004L5-C5 for submit@debbugs.gnu.org; Fri, 23 Aug 2019 08:58:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i199C-0004Kt-J6 for 36882@debbugs.gnu.org; Fri, 23 Aug 2019 08:58:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1997-0006nW-CZ; Fri, 23 Aug 2019 08:58:25 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48646 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1996-0007Fy-2X; Fri, 23 Aug 2019 08:58:24 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Leo Famulari Subject: Re: bug#36882: QEMU 4 fails to build for x86_64-linux References: <20190731200334.GA29724@jasmine.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Fructidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 23 Aug 2019 14:58:22 +0200 In-Reply-To: <20190731200334.GA29724@jasmine.lan> (Leo Famulari's message of "Wed, 31 Jul 2019 16:03:34 -0400") Message-ID: <8736hs6ntd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Leo Famulari skribis: > While testing the upgrade of our QEMU package to 4.0.0 or 4.1.0-rc3 on > x86_64-linux, the build fails when the header 'gnu/stubs-32.h' can't be > found: > > ------ > In file included from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2= .28/include/features.h:452:0, > from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2= .28/include/bits/libc-header-start.h:33, > from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2= .28/include/stdint.h:26, > from linuxboot_dma.c:65: > /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/gnu/stubs.= h:7:27: fatal error: gnu/stubs-32.h: No such file or directory > compilation terminated. > make[1]: *** [/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/rules.m= ak:69: linuxboot_dma.o] Error 1 > make[1]: Leaving directory '/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1= .0-rc3/pc-bios/optionrom' > make: *** [Makefile:519: pc-bios/optionrom/all] Error 2 > ------ > > And of course, this header is not installed by glibc when it is built > for 64-bit systems. That=E2=80=99s a =E2=80=9Cmultilib header=E2=80=9D, which our =E2=80=98glib= c=E2=80=99 package doesn=E2=80=99t provide. Normally it=E2=80=99s only needed when doing =E2=80=9Cgcc -m32=E2=80=9D on = x86_64 or similar. Can you show the GCC command that leads to this error? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 06:09:17 2020 Received: (at 36882) by debbugs.gnu.org; 21 Feb 2020 11:09:17 +0000 Received: from localhost ([127.0.0.1]:46442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j56BI-0000x2-Uo for submit@debbugs.gnu.org; Fri, 21 Feb 2020 06:09:17 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j56BH-0000wo-Q0 for 36882@debbugs.gnu.org; Fri, 21 Feb 2020 06:09:16 -0500 Received: by mail-wr1-f50.google.com with SMTP id k11so1547661wrd.9 for <36882@debbugs.gnu.org>; Fri, 21 Feb 2020 03:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BkQIuxoXPrfXAqD+xn6qqqBOdQdjYGqRZnWrk57JcIo=; b=kI40tKtp5QiGIVSMSkqLANZrDGFhoN46cG9GvlMtgXqqiSXKdpMV/8OC+px7a+ixn5 KLm1BQTjXpYlL0TfYTuVtZg61DKk1T7r//ELyYKL0DCnBRPEFfEWLN7WLjV9g+HNfyKN +tLPPCGFxRrE+aiKv4f3HI2zcPBHbSdiWPzR86uVX6/xqIH8Vu0ERpdYtd5bgnq0HEE/ 8IxH3PiRyJQIr6DXq5Ak/3cedmTMmPsAIQsLVLNjhK64Tz+fm2zYWliH5LAxlM4VKNV2 fvFg21S/LhOQTxNQcHPjDRlDElb/sAKePUVKZ6suQV/+7AzYMySoT0XRkL7rMbuI1qcw +QOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=BkQIuxoXPrfXAqD+xn6qqqBOdQdjYGqRZnWrk57JcIo=; b=HrtEsz9yKZGh5snXgVvFoXlZcEo0jz4MErsLGQowVq/fkQe3BUskU3uv86T1u2adId 9jy2arJ4eACZZjCTG8o5VhnsY5d2VEbySMQql3vlPuVwxjdFZvaAFyH5+BxO0OKpyiL1 ezTm1+cSd8X1BDJzwSKnDFKxibqvaI8mgaeFjYsIkOtQaKPCay2/RiHdat8fl0mTnYEh tYEWOyltgj9ZPBTXAY08vw+h8GUbgoKRc6Tj1BoNFRduKaXOk+TuFoGSGtebcNjSFkHA zRbaoXYYyPbFh6Gs1ibEcqLDXKzb82T6rW1FaMgwDncG59Qj4mloPrNVog6uQvW4dNCT bVpg== X-Gm-Message-State: APjAAAVy370uTFpJgCHa8cDzN2gdl6tkb+buWsUachPfFxWidqJNipLK zjMQDK1KJ4KDBNIME8QjiUw= X-Google-Smtp-Source: APXvYqzV8lsbvhwhDrknAJSCGzPeKDAQDKzWH7O8yllmL1EEp38hRu2wXJXsY385mKBq1WvkBcJqaA== X-Received: by 2002:a5d:6a52:: with SMTP id t18mr46162249wrw.335.1582283349932; Fri, 21 Feb 2020 03:09:09 -0800 (PST) Received: from meru (lfbn-ann-1-292-23.w86-200.abo.wanadoo.fr. [86.200.245.23]) by smtp.gmail.com with ESMTPSA id h10sm3347159wml.18.2020.02.21.03.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 03:09:09 -0800 (PST) User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: 36882@debbugs.gnu.org Subject: Qemu 4.2.0 build for x86_64-linux fails Date: Fri, 21 Feb 2020 12:09:07 +0100 Message-ID: <87k14gnqng.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36882 Cc: Marius Bakke , Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, On core-updates, qemu-minimal (4.2.0), fails to build. This seems to be the same issue as this bug. The error is: --8<---------------cut here---------------start------------->8--- In file included from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.3= 1/include/features.h:489:0, from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.3= 1/include/bits/libc-header-start.h:33, from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.3= 1/include/stdint.h:26, from linuxboot_dma.c:65: /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.31/include/gnu/stubs.h:= 7:11: fatal error: gnu/stubs-32.h: No such file or directory # include ^~~~~~~~~~~~~~~~ Because of this gcc command: --8<---------------cut here---------------start------------->8--- /gnu/store/dcnp1h3q6qyipwkm0g7l7r1bkvlqvaqa-gcc-7.5.0/bin/gcc -iquote /tmp/= guix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0/. -iquote . -iquote /tmp/gui= x-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0/tcg -iquote /tmp/guix-build-qem= u-minimal-4.2.0.drv-0/qemu-4.2.0/tcg/i386 -I/tmp/guix-build-qemu-minimal-4.= 2.0.drv-0/qemu-4.2.0/linux-headers -I/tmp/guix-build-qemu-minimal-4.2.0.drv= -0/qemu-4.2.0/linux-headers -iquote . -iquote /tmp/guix-build-qemu-minimal-= 4.2.0.drv-0/qemu-4.2.0 -iquote /tmp/guix-build-qemu-minimal-4.2.0.drv-0/qem= u-4.2.0/accel/tcg -iquote /tmp/guix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2= .0/include -I/tmp/guix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0 -Wstrict-p= rototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototy= pes -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-mi= ssing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat= -y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-d= efinition -Wtype-limits -fno-pie -ffreestanding -fno-stack-protector -m= 16 -Wa,-32 -MMD -MP -MT linuxboot_dma.o -MF ./linuxboot_dma.d -O2 -march= =3Di486 -c -o linuxboot_dma.o linuxboot_dma.c --8<---------------cut here---------------end--------------->8--- Any idea? Do we still need to add "multilib header" support to our glibc build? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 15:29:36 2020 Received: (at 36882) by debbugs.gnu.org; 21 Feb 2020 20:29:37 +0000 Received: from localhost ([127.0.0.1]:48191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5EvY-0002Rf-J2 for submit@debbugs.gnu.org; Fri, 21 Feb 2020 15:29:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5EvW-0002RN-Se for 36882@debbugs.gnu.org; Fri, 21 Feb 2020 15:29:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5EvQ-0003RU-Kr; Fri, 21 Feb 2020 15:29:29 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40044 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j5EvQ-0007D2-1l; Fri, 21 Feb 2020 15:29:28 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 21 Feb 2020 21:29:26 +0100 In-Reply-To: <87k14gnqng.fsf@gmail.com> (Mathieu Othacehe's message of "Fri, 21 Feb 2020 12:09:07 +0100") Message-ID: <87mu9b3crd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Mathieu Othacehe skribis: > On core-updates, qemu-minimal (4.2.0), fails to build. This seems to be > the same issue as this bug. The error is: > > In file included from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2= .31/include/features.h:489:0, > from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2= .31/include/bits/libc-header-start.h:33, > from /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2= .31/include/stdint.h:26, > from linuxboot_dma.c:65: > /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.31/include/gnu/stubs.= h:7:11: fatal error: gnu/stubs-32.h: No such file or directory > # include > ^~~~~~~~~~~~~~~~ > > Because of this gcc command: > > /gnu/store/dcnp1h3q6qyipwkm0g7l7r1bkvlqvaqa-gcc-7.5.0/bin/gcc -iquote /tm= p/guix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0/. -iquote . -iquote /tmp/g= uix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0/tcg -iquote /tmp/guix-build-q= emu-minimal-4.2.0.drv-0/qemu-4.2.0/tcg/i386 -I/tmp/guix-build-qemu-minimal-= 4.2.0.drv-0/qemu-4.2.0/linux-headers -I/tmp/guix-build-qemu-minimal-4.2.0.d= rv-0/qemu-4.2.0/linux-headers -iquote . -iquote /tmp/guix-build-qemu-minima= l-4.2.0.drv-0/qemu-4.2.0 -iquote /tmp/guix-build-qemu-minimal-4.2.0.drv-0/q= emu-4.2.0/accel/tcg -iquote /tmp/guix-build-qemu-minimal-4.2.0.drv-0/qemu-4= .2.0/include -I/tmp/guix-build-qemu-minimal-4.2.0.drv-0/qemu-4.2.0 -Wstrict= -prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-proto= types -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-= missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wform= at-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style= -definition -Wtype-limits -fno-pie -ffreestanding -fno-stack-protector = -m16 -Wa,-32 -MMD -MP -MT linuxboot_dma.o -MF ./linuxboot_dma.d -O2 -marc= h=3Di486 -c -o linuxboot_dma.o linuxboot_dma.c How was this bug initially reported against QEMU 4.0.0 fixed? On master there=E2=80=99s pretty much the same command as above, with =E2= =80=98-m16=E2=80=99, and =E2=80=9Cyet it works=E2=80=9D. https://ci.guix.gnu.org/log/ymzp5yz2r3zfw4xczwwlykyjv2kqcqs0-qemu-4.2.0 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 14:13:54 2020 Received: (at 36882) by debbugs.gnu.org; 22 Feb 2020 19:13:55 +0000 Received: from localhost ([127.0.0.1]:49995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5aDq-0006Na-Iv for submit@debbugs.gnu.org; Sat, 22 Feb 2020 14:13:54 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:39027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5aDp-0006NL-Bk for 36882@debbugs.gnu.org; Sat, 22 Feb 2020 14:13:53 -0500 Received: by mail-wr1-f45.google.com with SMTP id y11so5736563wrt.6 for <36882@debbugs.gnu.org>; Sat, 22 Feb 2020 11:13:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=HLZftYS3VUA42vsxAbd5wE5WnDcStRrg/p/snKOtBG4=; b=e4wiJqeItmBoHqMbcPN07cnjREnvvRswJFOUjS1Yb/rLGRiR37bvjroZDLPbesqzC/ dLrYm8PCe9vUBvQvb7W+LW3Ax8W2NPeDkqc1YpiyDa4ZyEP2F2qywftiBSCIAkh4kjTS F4zSvoSg1bv7W7zXIkvW+uluf/4gWWu+ZIlonlVJJGB1ZMEqmqdmeAD1oGGa2zc6vNd5 OVFJ6ZYzW7OFCmK2nXsG098NeKuMR7yZmnTQrcd5jg1VsUMF2AnSOKuK8TNkqzOn409o P3C8Nau47I3yl1R3MeR8os2JBsXxJJabgbf9R+TZ9tEG99yrowjcC9laMrb4MF04nZhs SrUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=HLZftYS3VUA42vsxAbd5wE5WnDcStRrg/p/snKOtBG4=; b=mOFClnscM79G/EzuXzinqO2F8lh2PTH5O1IKeMv4pspgsT5dwR9lMU3feeNDAAa0Aj VqQM5RbdN5lJnlhnXSWMeGMXalsTnUzg8VMqcQzWD3WixR8H36RyBIOWHXj8G3wMe5dW YnBpVZXVNShuOknNsnCNL7nFQRUnKZT4P3jnLTDdJODJ3CrEuD0MSzJ9rjx33bja3IUg liW3rU+wfHrlsqYPXFaSwW7uOqbbQ/0/T5LZ96oKKBqsn4RlkoQTWMQsVFz5rxGlWtZE N2CPGPQepyvtTJqPgsxgxDEU3LkGS5bkDiY+nhPKh9pj7oDe2XlquNAwtFZ4J9iyc668 mOLg== X-Gm-Message-State: APjAAAW7I6m3Dx1uy5K6cu5bt/XRPO9pPwKmpwQfubcKSBldLQnyxR/p H0/Zd6UCBnkXxodtdpsqXrM= X-Google-Smtp-Source: APXvYqzGAmikdHE1BZk1Rg27CCniCLdbU3gF4utavY3qtD87vExOxVkk1ATPxpB8OuAxOuMLACyI4w== X-Received: by 2002:adf:e88f:: with SMTP id d15mr53478900wrm.186.1582398827505; Sat, 22 Feb 2020 11:13:47 -0800 (PST) Received: from cervin ([2a01:e0a:fa:a50:dcdb:3f0f:c4ff:a264]) by smtp.gmail.com with ESMTPSA id u14sm9882150wrm.51.2020.02.22.11.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2020 11:13:46 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <87mu9b3crd.fsf@gnu.org> Date: Sat, 22 Feb 2020 20:13:43 +0100 Message-ID: <87a75a5taw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, > On master there=E2=80=99s pretty much the same command as above, with =E2= =80=98-m16=E2=80=99, > and =E2=80=9Cyet it works=E2=80=9D. > > https://ci.guix.gnu.org/log/ymzp5yz2r3zfw4xczwwlykyjv2kqcqs0-qemu-4.2.0 On master, when building qemu, this is the gcc include path (obtained with "gcc -v -x c -E /dev/null"): --8<---------------cut here---------------start------------->8--- /gnu/store/adm2cx3ayabn1sp84nnjsk0672m800ip-flex-2.6.4/include /gnu/store/l86azr7r3p5631wj3kk329jl1y1mpjgy-bzip2-1.0.6/include ... /gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.4.0/include [1] /gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.4.0/include-fixed /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include [2] --8<---------------cut here---------------end--------------->8--- We see that glibc comes last. So when building a program with "gcc -ffreestanding -m16", the first header picked is the one from gcc (marked [1] above). This header contains: --8<---------------cut here---------------start------------->8--- #ifndef _GCC_WRAP_STDINT_H #if __STDC_HOSTED__ <-- Set to 0 because of -ffreestanding option. # if defined __cplusplus && __cplusplus >=3D 201103L # undef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS # undef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS # endif # include_next #else # include "stdint-gcc.h" <-- This one gets included. #endif #define _GCC_WRAP_STDINT_H #endif --8<---------------cut here---------------end--------------->8--- So the from glibc (marked [2] above) is neved included. And that's good because this header would try to include that our glibc does not provide. Now the question is, why glibc comes last, whereas it is a part of CPATH? The "gcc -v -x c -E /dev/null" command says: --8<---------------cut here---------------start------------->8--- ignoring duplicate directory "/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-g= libc-2.29/include" as it is a non-system directory that duplicates a system directory --8<---------------cut here---------------end--------------->8--- So the glibc from CPATH is ignored and the last glibc, hardcoded into gcc is kept. Now, what's happening on core-updates? Because of CPATH -> C_INCLUDE_PATH transition, we have a different behaviour. The same command as above states: --8<---------------cut here---------------start------------->8--- ignoring duplicate directory "/gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-g= libc-2.31/include" ... /gnu/store/kyypmcn2miyzllqqmcx28gvj89qnvhpi-flex-2.6.4/include ... /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.31/include [1] ... /gnu/store/wl7zanqf0s9bfppggmv8qxqan71fjfw8-gcc-7.5.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.5.0/include [2] /gnu/store/wl7zanqf0s9bfppggmv8qxqan71fjfw8-gcc-7.5.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.5.0/include-fixed --8<---------------cut here---------------end--------------->8--- The glibc ignored seems to be the hardcoded one. The one from the C_INCLUDE_PATH is kept. So the included is the one from glibc (marked [1] above), which triggers inclusion and makes build fail. So here's how it fails, but I'm not sure how to fix it. Removing glibc from C_INCLUDE_PATH, forces gcc to use the hardcoded one that comes last and fixes the build. However, there are maybe other implications? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 06:32:31 2020 Received: (at 36882) by debbugs.gnu.org; 23 Feb 2020 11:32:31 +0000 Received: from localhost ([127.0.0.1]:50443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5pUt-0002UY-Fw for submit@debbugs.gnu.org; Sun, 23 Feb 2020 06:32:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5pUr-0002UM-MZ for 36882@debbugs.gnu.org; Sun, 23 Feb 2020 06:32:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5pUm-00038K-IY; Sun, 23 Feb 2020 06:32:24 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=47608 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j5pUl-0005JW-Gw; Sun, 23 Feb 2020 06:32:24 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 23 Feb 2020 12:32:21 +0100 In-Reply-To: <87a75a5taw.fsf@gmail.com> (Mathieu Othacehe's message of "Sat, 22 Feb 2020 20:13:43 +0100") Message-ID: <87o8tptu7u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Mathieu, Mathieu Othacehe skribis: > On master, when building qemu, this is the gcc include path (obtained > with "gcc -v -x c -E /dev/null"): > > /gnu/store/adm2cx3ayabn1sp84nnjsk0672m800ip-flex-2.6.4/include > /gnu/store/l86azr7r3p5631wj3kk329jl1y1mpjgy-bzip2-1.0.6/include > ... > /gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/7.4.0/include [1] > /gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/7.4.0/include-fixed > /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include [2] > > > We see that glibc comes last. So when building a program with "gcc > -ffreestanding -m16", the first header picked is the one from > gcc (marked [1] above). This header contains: > > #ifndef _GCC_WRAP_STDINT_H > #if __STDC_HOSTED__ <-- Set to 0 because of -ffreestanding option. > # if defined __cplusplus && __cplusplus >=3D 201103L > # undef __STDC_LIMIT_MACROS > # define __STDC_LIMIT_MACROS > # undef __STDC_CONSTANT_MACROS > # define __STDC_CONSTANT_MACROS > # endif > # include_next > #else > # include "stdint-gcc.h" <-- This one gets included. > #endif > #define _GCC_WRAP_STDINT_H > #endif > > > So the from glibc (marked [2] above) is neved included. And > that's good because this header would try to include > that our glibc does not provide. [...] > Now, what's happening on core-updates? Because of CPATH -> > C_INCLUDE_PATH transition, we have a different behaviour. The same > command as above states: > > ignoring duplicate directory "/gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq= -glibc-2.31/include" > ... > /gnu/store/kyypmcn2miyzllqqmcx28gvj89qnvhpi-flex-2.6.4/include > ... > /gnu/store/jsjsczgr8xdnbdminl7lm2v56b7dq7lq-glibc-2.31/include [1] > ... > /gnu/store/wl7zanqf0s9bfppggmv8qxqan71fjfw8-gcc-7.5.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/7.5.0/include [2] > /gnu/store/wl7zanqf0s9bfppggmv8qxqan71fjfw8-gcc-7.5.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/7.5.0/include-fixed > > The glibc ignored seems to be the hardcoded one. The one from the > C_INCLUDE_PATH is kept. So the included is the one from glibc > (marked [1] above), which triggers inclusion and makes > build fail. Woow, thanks for the analysis. It=E2=80=99s a bug on =E2=80=98core-updates=E2=80=99 that GCC=E2=80=99s hea= ders come after libc=E2=80=99s. This is what should be fixed IMO. So is it expected that C_INCLUDE_PATH comes before the hard-coded GCC include directory? How can we work around that? Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 04:36:39 2020 Received: (at 36882) by debbugs.gnu.org; 24 Feb 2020 09:36:39 +0000 Received: from localhost ([127.0.0.1]:52885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6AAI-0004Bn-Re for submit@debbugs.gnu.org; Mon, 24 Feb 2020 04:36:39 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6AAG-0004BX-Qr for 36882@debbugs.gnu.org; Mon, 24 Feb 2020 04:36:37 -0500 Received: by mail-wr1-f67.google.com with SMTP id r11so9497565wrq.10 for <36882@debbugs.gnu.org>; Mon, 24 Feb 2020 01:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=nf7419skahfyXC99fA3SnQvKG85/xo+XLyitoOwz2rQ=; b=opzFz21qLl1WqOHrSVjGaAgmHqqNPzjy/CUW3ieSR3N92TYXbNri8MkS5YcND+4zMV caJmeI247MRYeOVKGjPJ4hdZ5nev8OT6+J6y3W0ZPU3vvnD9sR7nE5nAClcwbUc1+69V YpWjTbhvYdkUWvyyUBT+H2UdqR3yQJFomhwTwwgzyPtWnwPlZnRTUinVpWqQd0FRtCNt gCwQlX1oggHh0u1emUD9JcOoa/KrfxqCELGfVOOGp/bdmJwW33/BxUS0egdc9T7UZ1lk EUlpTUJjqBBf3oFhBanA/xEgMreaaMts3R/k3rGrq8HKVdh9vixlHRASvDSpt0I9lDga AAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=nf7419skahfyXC99fA3SnQvKG85/xo+XLyitoOwz2rQ=; b=jHjlPcCP3GJODRwXz0Njq3zJ5djIUpwirT33Xg4wVDeNckAAgOORLCOLfIe2w33zPk qKQExVR4OWx4HNlIWdNe43tYtinrVI1LOB4X8mO26XB4fTFF8ihBEOLLvasUGS9bE22j g+Pyc6wKCiIomc8Da1rb6ABXuXZINv85Y4j+QLtAUoTh7VmiJ1Ur1GcPLH+e3sM+66Ds 5FTTAt2iWNOH82MUay6SPepCL1aSHQzVPJu49a9WUCMSvnmm3txYhi8pjhn6GCswoErg lyBSnK/8z+k7hDiECUVvOl0fyq6rn38G/kuv5tijRp9uC/YmNAL06kMdp7UYn5FakRZK NUzw== X-Gm-Message-State: APjAAAUp5VqbLIfflpwUC8aUIKV/t6ZSL5TkPPLmaLGxq/NBBFA5pnRi Rv3cI+hWD/muSAEnDtQ8boE= X-Google-Smtp-Source: APXvYqx9nUbZURPxQcn4EgDa58qsKNs6E3N/CE3RR/xm+hXLuhMaXbAmSCNhpKfJxnHD5qAUgmRIkA== X-Received: by 2002:a5d:5647:: with SMTP id j7mr66006542wrw.265.1582536991008; Mon, 24 Feb 2020 01:36:31 -0800 (PST) Received: from meru (lfbn-ann-1-292-23.w86-200.abo.wanadoo.fr. [86.200.245.23]) by smtp.gmail.com with ESMTPSA id a26sm17306041wmm.18.2020.02.24.01.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 01:36:30 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <87o8tptu7u.fsf@gnu.org> Date: Mon, 24 Feb 2020 10:36:28 +0100 Message-ID: <87ftf0nx7n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hey, > So is it expected that C_INCLUDE_PATH comes before the hard-coded GCC > include directory? How can we work around that? Turns out, the best source of documentation here is gcc/incpath.c. Here's a summary of my understanding. Header search list: * QUOTE -> -iquote * BRACKET -> -I goes here -> CPATH goes here * SYSTEM -> -isystem goes here -> C_INCLUDE_PATH goes here -> Hardcoded includes (gcc + glibc) goes here * AFTER -> -idirafter goes here. Duplicates inside SYSTEM are deleted, the first occurence is kept. So as long as we have glibc in C_INCLUDE_PATH it will trigger deletion of glibc in hardcoded includes and AFTER section. So I can see only two solutions here. 1. Go back to using CPATH (sad!), because when there is duplication between BRACKET and SYSTEM, the include from SYSTEM is kept (why it works on master). 2. Find a way to remove glibc from C_INCLUDE_PATH, but I have no clue how to do this properly. Maybe using some kind of filter on search-path-specifications. WDYT? Mathieu From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 05:30:04 2020 Received: (at control) by debbugs.gnu.org; 24 Feb 2020 10:30:04 +0000 Received: from localhost ([127.0.0.1]:52934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6B00-0005gK-C9 for submit@debbugs.gnu.org; Mon, 24 Feb 2020 05:30:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6Azy-0005do-TL for control@debbugs.gnu.org; Mon, 24 Feb 2020 05:30:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j6Azt-00062g-QQ for control@debbugs.gnu.org; Mon, 24 Feb 2020 05:29:57 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48960 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j6Azs-0002Bt-MQ for control@debbugs.gnu.org; Mon, 24 Feb 2020 05:29:57 -0500 Date: Mon, 24 Feb 2020 11:29:55 +0100 Message-Id: <877e0cnuqk.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #36882 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 36882 important quit From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 09:25:43 2020 Received: (at 36882) by debbugs.gnu.org; 24 Feb 2020 14:25:44 +0000 Received: from localhost ([127.0.0.1]:53039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6Eg3-0003PX-B4 for submit@debbugs.gnu.org; Mon, 24 Feb 2020 09:25:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6Eg0-0003PL-Ui for 36882@debbugs.gnu.org; Mon, 24 Feb 2020 09:25:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j6Efv-0007g6-Ou; Mon, 24 Feb 2020 09:25:35 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58734 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j6Efi-0001LH-JK; Mon, 24 Feb 2020 09:25:25 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 24 Feb 2020 15:25:20 +0100 In-Reply-To: <87ftf0nx7n.fsf@gmail.com> (Mathieu Othacehe's message of "Mon, 24 Feb 2020 10:36:28 +0100") Message-ID: <87tv3gm59r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Mathieu Othacehe skribis: >> So is it expected that C_INCLUDE_PATH comes before the hard-coded GCC >> include directory? How can we work around that? > > Turns out, the best source of documentation here is > gcc/incpath.c. Here's a summary of my understanding. > > Header search list: > > * QUOTE > -> -iquote=20 > * BRACKET > -> -I goes here > -> CPATH goes here > * SYSTEM > -> -isystem goes here > -> C_INCLUDE_PATH goes here > -> Hardcoded includes (gcc + glibc) goes here > * AFTER > -> -idirafter goes here. > > Duplicates inside SYSTEM are deleted, the first occurence is kept. So as > long as we have glibc in C_INCLUDE_PATH it will trigger deletion of > glibc in hardcoded includes and AFTER section. > > So I can see only two solutions here. > > 1. Go back to using CPATH (sad!), because when there is duplication > between BRACKET and SYSTEM, the include from SYSTEM is kept (why it > works on master). > > 2. Find a way to remove glibc from C_INCLUDE_PATH, but I have no clue > how to do this properly. Maybe using some kind of filter on > search-path-specifications. I=E2=80=99d rather go for #2. To do that, we could modify the =E2=80=98set= -paths=E2=80=99 phase to manually remove glibc from C_INCLUDE_PATH (fragile), or we could modify GCC (perhaps removing the =E2=80=98remove_duplicates=E2=80=99 call f= or SYSTEM). Either way, this wouldn=E2=80=99t work well with =E2=80=98guix environment= =E2=80=99, where glibc ends up in /gnu/store/=E2=80=A6-profile, so it does not appear as duplicate= to GCC. On =E2=80=98core-updates=E2=80=99, I see: --8<---------------cut here---------------start------------->8--- $ git log | head -3 commit 5afcb5caa53615c0a432e0c1781155398d747218 Author: Ludovic Court=C3=A8s Date: Sat Feb 22 21:39:27 2020 +0100 $ ./pre-inst-env guix environment -C -e '(@@ (gnu packages commencement) co= reutils-final)' [env]$ gcc -v -x c -E /dev/null Using built-in specs. COLLECT_GCC=3Dgcc Target: x86_64-unknown-linux-gnu Configured with:=20 Thread model: posix gcc version 7.5.0 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-E' '-mtune=3Dgeneric' '-march=3Dx86-64' /gnu/store/0pjrnr8vhp94ykvarysd9wg7hcvfqkl5-gcc-7.5.0/libexec/gcc/x86_64-u= nknown-linux-gnu/7.5.0/cc1 -E -quiet -v /dev/null -mtune=3Dgeneric -march= =3Dx86-64 ignoring duplicate directory "/gnu/store/k9l4v4530p1a69j8qs0aijbmn8lwak20-p= rofile/include" ignoring nonexistent directory "/no-gcc-local-prefix/include" ignoring nonexistent directory "/gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn= -gcc-7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.5.0/../../../../../../../= x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /gnu/store/k9l4v4530p1a69j8qs0aijbmn8lwak20-profile/include /gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn-gcc-7.5.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.5.0/include /gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn-gcc-7.5.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.5.0/include-fixed /gnu/store/ccjj5wg0qkjs1zfjr98nhb8cpr434izw-glibc-2.31/include End of search list. # 1 "/dev/null" # 1 "" # 1 "" # 31 "" # 1 "/gnu/store/k9l4v4530p1a69j8qs0aijbmn8lwak20-profile/include/stdc-prede= f.h" 1 3 # 32 "" 2 # 1 "/dev/null" COMPILER_PATH=3D/gnu/store/0pjrnr8vhp94ykvarysd9wg7hcvfqkl5-gcc-7.5.0/libex= ec/gcc/x86_64-unknown-linux-gnu/7.5.0/:/gnu/store/0pjrnr8vhp94ykvarysd9wg7h= cvfqkl5-gcc-7.5.0/libexec/gcc/x86_64-unknown-linux-gnu/7.5.0/:/gnu/store/0p= jrnr8vhp94ykvarysd9wg7hcvfqkl5-gcc-7.5.0/libexec/gcc/x86_64-unknown-linux-g= nu/:/gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn-gcc-7.5.0-lib/lib/gcc/x86_6= 4-unknown-linux-gnu/7.5.0/:/gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn-gcc-= 7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=3D/gnu/store/k9l4v4530p1a69j8qs0aijbmn8lwak20-profile/lib/:/gn= u/store/k9l4v4530p1a69j8qs0aijbmn8lwak20-profile/lib/:/gnu/store/adrw71v03n= awqwyblxc0mdhcc41j5vnn-gcc-7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.5.0= /:/gnu/store/adrw71v03nawqwyblxc0mdhcc41j5vnn-gcc-7.5.0-lib/lib/gcc/x86_64-= unknown-linux-gnu/7.5.0/../../../:/gnu/store/ccjj5wg0qkjs1zfjr98nhb8cpr434i= zw-glibc-2.31/lib COLLECT_GCC_OPTIONS=3D'-v' '-E' '-mtune=3Dgeneric' '-march=3Dx86-64' --8<---------------cut here---------------end--------------->8--- Looking at =E2=80=98cppdefault.c=E2=80=99 in GCC, I don=E2=80=99t see where= glibc-2.31/include comes from; it seems that =E2=80=98INCLUDE_DEFAULTS=E2=80=99 is undefined o= n glibc systems. Thoughts? Incidentally, do we have problems building anything other than QEMU? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 09:34:58 2020 Received: (at 36882) by debbugs.gnu.org; 25 Feb 2020 14:34:58 +0000 Received: from localhost ([127.0.0.1]:54603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bIY-0002rU-4i for submit@debbugs.gnu.org; Tue, 25 Feb 2020 09:34:58 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:45165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bIW-0002rH-70 for 36882@debbugs.gnu.org; Tue, 25 Feb 2020 09:34:56 -0500 Received: by mail-wr1-f52.google.com with SMTP id g3so14951719wrs.12 for <36882@debbugs.gnu.org>; Tue, 25 Feb 2020 06:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=jUQzvZFneEv4zg2e/goXEOJF3aRoKQd1DkweRs+m61Y=; b=uX7/BeYDnvQmBnVV9bB3gZ17HVp6CsjCHrbGnseoSYX8mGcSNx+JeXlibUmrsAQwh/ 4pqCa9IGQgT7EOzz27wjA96mNWrgzOfFNh5G8lTUIGCFULToQfPYjFafUDe8aYQ661pn lUwUa64I3IVQrJOqc9bJJhyUIZjaJfdpGHZ9Jlhi4wSXN0x/vXI90wGAKIsQ4E537OJd 9bj0MRzA4URmYGAFcrn/z0zOTileyz4+4U4GusVbNBfRliKBs1rz9u7QrcCAjFVGAGJb OG432NDtrfnmEL+9EtzFA3gsQxD81KYLgJl4LfUgjl+6TyBS9uolcdUrV3rpjzOumsbT znFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=jUQzvZFneEv4zg2e/goXEOJF3aRoKQd1DkweRs+m61Y=; b=TSzYY1HgIbkIvfaGkHwixAdkMF+Hc/q+hRbqyywzuvNFMi0xHJfR8vHU5QHCNdoUdw XhJeAsoKUTW4zAYQGe+DujXR0ucI9Cs8mn0Xt2VaJevJGPkb2AWIg4gaYYCWVFJ8+fGS BR+rdNkBKdb56KIU5y/qXcDC86b9f4yo08F/39uVam24aazsI91guknlLHBMYB5gVI0m +CFcwSQbo8eUTDxi503MaLBF3D0tDZl+dnlv/lKxB2IQTn2wp8G6Vh0D4vvaDxtS2Y2z Ka0EklUxfO0jeG88hwWxAZ4p3d+F6etCGemA38TZN9FRQjDSioDVidyCChyYO5VO6FxW q6Ew== X-Gm-Message-State: APjAAAUDwG5iQxJnrGzHzNbfv4OVrZ1lsUm8ou18vGqExxcaSK29QLNq DNYyPcAuFL+pC0XzWGE2WY8= X-Google-Smtp-Source: APXvYqxkSnanUt/x7hTMg8JqG0KnKDwb3Xwx5edoO75Al3c8gIdADvV3BjgBjCpJaM/l6RDr33u5rA== X-Received: by 2002:adf:9c8c:: with SMTP id d12mr72164345wre.404.1582641290341; Tue, 25 Feb 2020 06:34:50 -0800 (PST) Received: from meru (lfbn-ann-1-292-23.w86-200.abo.wanadoo.fr. [86.200.245.23]) by smtp.gmail.com with ESMTPSA id z16sm6958953wrp.33.2020.02.25.06.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 06:34:49 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <87tv3gm59r.fsf@gnu.org> Date: Tue, 25 Feb 2020 15:34:48 +0100 Message-ID: <875zfuag6v.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hey! > I=E2=80=99d rather go for #2. To do that, we could modify the =E2=80=98s= et-paths=E2=80=99 phase > to manually remove glibc from C_INCLUDE_PATH (fragile), or we could > modify GCC (perhaps removing the =E2=80=98remove_duplicates=E2=80=99 call= for SYSTEM). > > Either way, this wouldn=E2=80=99t work well with =E2=80=98guix environmen= t=E2=80=99, where glibc > ends up in /gnu/store/=E2=80=A6-profile, so it does not appear as duplica= te to > GCC. [...] > Looking at =E2=80=98cppdefault.c=E2=80=99 in GCC, I don=E2=80=99t see whe= re glibc-2.31/include > comes from; it seems that =E2=80=98INCLUDE_DEFAULTS=E2=80=99 is undefined= on glibc > systems. It's indeed undefined and glibc comes from NATIVE_SYSTEM_HEADER_DIR at the end of the file you mentioned. It is a consequence of passing --with-native-system-header-dir=3Dglibc in (gnu packages gcc). About the environment issue, we have the same problem on master. You can run the following command: > > Thoughts? > > Incidentally, do we have problems building anything other than QEMU? > > Thanks, > Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 09:46:26 2020 Received: (at 36882) by debbugs.gnu.org; 25 Feb 2020 14:46:26 +0000 Received: from localhost ([127.0.0.1]:54608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bTe-00039D-6X for submit@debbugs.gnu.org; Tue, 25 Feb 2020 09:46:26 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:34488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bTc-00038y-Vy for 36882@debbugs.gnu.org; Tue, 25 Feb 2020 09:46:25 -0500 Received: by mail-wr1-f47.google.com with SMTP id z15so6713245wrl.1 for <36882@debbugs.gnu.org>; Tue, 25 Feb 2020 06:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=q7Hw+FDekfGJNYCkybSbp5Nhyyww6uYVQ8tdHs1egXY=; b=kfWVUmKRC+BOK8dWKegvwo1SiNGQnJQmjp7b4tNlf7xd30ec7Cch8ZMyDdPhjkStu0 MHnOMOXObHXIO3IZDqDR3l2aoLRupUbJeqMVJt0xGmDuRl5ZU+S/xsacQTL86E3J9qLU 0jOXB1hWHACYVbIx1xZkijV+M7NYHbcbGL8IR+MCNMxGMYJtLP2DqzbFVK36o0FmZzwk s7gRC6lerDyC8bx/+AhxnDsOG2+zsE00mEriTMZhM2IYZqDtUHkdpHhfW0a+v2e7RDHX wBs+KKfMP8S8p1jtTEy9Jw3Wh5+NFhcGFLczwTwV8kUbNn+8pmRW9dvg2RROmbh5F+kE SETQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=q7Hw+FDekfGJNYCkybSbp5Nhyyww6uYVQ8tdHs1egXY=; b=lqRK+aR08ASKMb3Y/4j46YMB+oWnm3p4guuexEO3FxL4xY3RK31pAZlr/9Q98pmIih HSk/LW8bYqw4GgiCGF6RrdiE00XIYXV0eYvihEl+4aR7i52Iqk3lK85jPBSYcENkQRYw VmeofZzGJKWViI8NoRiNDOcBNMJdNVrFnvv0+vq2slesHnJbRXzIvt1dTIzyehuAAFwx HEbPmM+pdLLf9GcBLVDvE35T4AkTm8itWME3yEJT9zSxlMFCO/huvqLHBdanQCA3iV/6 JBlCOtfPc2Btohe9QbsaL6Gu8CYVk9fdWadKbgsBqOyhR9MbtC6DX9Ibp8ns8WUNqDVI sdeg== X-Gm-Message-State: APjAAAWFj9KTLhQ0iQzsFKuyUWZIHWQm+sitS2ZXm4Wu/hHLWAtdyIfm vdexbPlEM0k9lQKCJnY0f5I= X-Google-Smtp-Source: APXvYqzurUoEsHJK6LANqaj1jyHhf1tMri7CIF8JNXTQUOMtBSEKsMlFptODQ+ApzRfM/XZN751zGQ== X-Received: by 2002:adf:df0f:: with SMTP id y15mr72181808wrl.26.1582641977861; Tue, 25 Feb 2020 06:46:17 -0800 (PST) Received: from meru (lfbn-ann-1-292-23.w86-200.abo.wanadoo.fr. [86.200.245.23]) by smtp.gmail.com with ESMTPSA id u185sm2628273wmg.6.2020.02.25.06.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 06:46:16 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <875zfuag6v.fsf@gmail.com> Date: Tue, 25 Feb 2020 15:46:15 +0100 Message-ID: <874kveafns.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Oops wrong shortcut, sorry! > I=E2=80=99d rather go for #2. To do that, we could modify the =E2=80=98s= et-paths=E2=80=99 phase > to manually remove glibc from C_INCLUDE_PATH (fragile), or we could > modify GCC (perhaps removing the =E2=80=98remove_duplicates=E2=80=99 call= for SYSTEM). > > Either way, this wouldn=E2=80=99t work well with =E2=80=98guix environmen= t=E2=80=99, where glibc > ends up in /gnu/store/=E2=80=A6-profile, so it does not appear as duplica= te to > GCC. [...] > Looking at =E2=80=98cppdefault.c=E2=80=99 in GCC, I don=E2=80=99t see whe= re glibc-2.31/include > comes from; it seems that =E2=80=98INCLUDE_DEFAULTS=E2=80=99 is undefined= on glibc > systems. It's indeed undefined and glibc comes from NATIVE_SYSTEM_HEADER_DIR at the end of the file you mentioned. It is a consequence of passing --with-native-system-header-dir=3Dglibc in (gnu packages gcc). About the environment issue, we have the same problem on master. You can run the following command: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix environment -C -e '(@@ (gnu packages commencement) coreutils-final)' -- echo -e '#include \n int main() {return 0;}' > test.c && gcc -m16 -ffreestanding test.c --8<---------------cut here---------------end--------------->8--- and see that in takes stdint.h from the profile glibc header: --8<---------------cut here---------------start------------->8--- In file included from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile/i= nclude/features.h:474:0, from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile/i= nclude/bits/libc-header-start.h:33, from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile/i= nclude/stdint.h:26, from test.c:1: /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile/include/gnu/stubs.h:7:1= 1: fatal error: gnu/stubs-32.h: No such file or directory # include ^~~~~~~~~~~~~~~~ --8<---------------cut here---------------end--------------->8--- So if it's ok for you, I'll try to implement a GCC hack so that we can keep using C_INCLUDE_PATH on core-updates and have QEMU building, as you proposed. About the environment use-case, it's getting really tricky, but as it is not a regression, we can maybe postpone the resolution. > Incidentally, do we have problems building anything other than QEMU? I don't know, but potentially any program building with -m and -ffreestanding fails on core-updates. Thanks for your help :), Mathieu From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 15:56:03 2020 Received: (at 36882) by debbugs.gnu.org; 26 Feb 2020 20:56:03 +0000 Received: from localhost ([127.0.0.1]:57810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73it-0006Yy-BS for submit@debbugs.gnu.org; Wed, 26 Feb 2020 15:56:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73ir-0006YI-L1 for 36882@debbugs.gnu.org; Wed, 26 Feb 2020 15:56:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j73im-00034H-Ey; Wed, 26 Feb 2020 15:55:56 -0500 Received: from 128.pool80-103-133.dynamic.orange.es ([80.103.133.128]:43054 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j73il-0003DC-7a; Wed, 26 Feb 2020 15:55:56 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 26 Feb 2020 21:55:50 +0100 In-Reply-To: <874kveafns.fsf@gmail.com> (Mathieu Othacehe's message of "Tue, 25 Feb 2020 15:46:15 +0100") Message-ID: <874kvdcbl5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Mathieu Othacehe skribis: > About the environment issue, we have the same problem on master. You can > run the following command: > > ./pre-inst-env guix environment -C -e '(@@ (gnu packages commencement) > coreutils-final)' -- echo -e '#include \n int main() {return > 0;}' > test.c && gcc -m16 -ffreestanding test.c > > > and see that in takes stdint.h from the profile glibc header: > > In file included from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile= /include/features.h:474:0, > from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile= /include/bits/libc-header-start.h:33, > from /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile= /include/stdint.h:26, > from test.c:1: > /gnu/store/nl6zndkx4115laq50qmqcvnzinfz5rk0-profile/include/gnu/stubs.h:7= :11: fatal error: gnu/stubs-32.h: No such file or directory > # include > ^~~~~~~~~~~~~~~~ Indeed. > So if it's ok for you, I'll try to implement a GCC hack so that we can > keep using C_INCLUDE_PATH on core-updates and have QEMU building, as you > proposed. > > About the environment use-case, it's getting really tricky, but as it is > not a regression, we can maybe postpone the resolution. Yes, both make sense to me. >> Incidentally, do we have problems building anything other than QEMU? > > I don't know, but potentially any program building with -m > and -ffreestanding fails on core-updates. The evil idea I was getting at was that, if that=E2=80=99s just a couple of packages, we can fix them locally. Evil plan in case the better hack turns out to be tricky. :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 16:12:48 2020 Received: (at 36882) by debbugs.gnu.org; 26 Feb 2020 21:12:49 +0000 Received: from localhost ([127.0.0.1]:57841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73z6-0000a4-Mx for submit@debbugs.gnu.org; Wed, 26 Feb 2020 16:12:48 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:42621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73z5-0000Zs-0T for 36882@debbugs.gnu.org; Wed, 26 Feb 2020 16:12:47 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E440321A7B; Wed, 26 Feb 2020 16:12:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 26 Feb 2020 16:12:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=o93qDoRnIkcb/g64QX4+0KT6ym Icu0CS9/WPD5JPWYc=; b=korhaH4UMNMwqyfsrrhGJX5VV+o3Kt0bR+Kg0FlDYB xCVV4TMzuwZzApNEN984XGlnUeb3ZRL+e5Q1ntProhVS60KJ1yE4+jFsMoYBdsWd TBGH1bHL0q10YNr00LkxHscZYJIWxphR3qxOuINWMy7LcoGS9MS/1udVcmWUUI70 cRrlumaofwvUl1f2bsEVjIuB09CiN1eyujJ0VmVwgDp4lLQgCKkgQUB3KC/4ju2N 2A6BmWQSLR/EKSIZ6Ui1VrqsLxPto53M+JSilzzg2/umLf1QRS2ga5R3IzrWwMUl itNfsQIM0YO5KzIXy1b9AX4zRQI714mZw4tAhKud/fWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=o93qDo RnIkcb/g64QX4+0KT6ymIcu0CS9/WPD5JPWYc=; b=M5TFIXsBQmWm66dmq8u3tm 3yzYFVjw7JEe5K5QhRpqR4xzxp4EbrK1DmpMOUc9cKDjkdcaDWnBJoy467XF5z9J x6TYnG0VAUY35DsTmnzYBfmaKTUHQQygth7taDbblF7fE2mh1pvfQyiB5ADr1gFJ mp8bhGb9GgFXLlE7+gpQCi5EC25XbxPdEzBjSAr/42iArr0VcyMZ/JmQu7Ilvvi/ sis6zIhBqTKHtYQD0In80HPsErAcULaEx70weYzXFMVbsLleSQeL+KLRDtPclW3v 9DL5QkQiomgq89ytEGqcy8cEaCLqLI5Ssd77JNpfzGDNck0IzXsjNEt5FDVp9ztw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleeggddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehgtderredtreejnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucfkphepke egrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 51349328005A; Wed, 26 Feb 2020 16:12:41 -0500 (EST) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-Reply-To: <87tv3gm59r.fsf@gnu.org> References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Wed, 26 Feb 2020 22:12:39 +0100 Message-ID: <87lfop2gu0.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Incidentally, do we have problems building anything other than QEMU? The only other regression I've noticed with the C_INCLUDE_PATH change is that GHC 8.4 fails to build -- previously we at least got to GHC 8.6. The error message does not make much sense to me (something about libffi.so not found), but it must be related to the C_INCLUDE_PATH change since it built before. So I think we can work around these problems for now and try to fix it properly in the next core-updates cycle (rumor has it that it includes a switch to GCC 9 as well). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5W30cACgkQoqBt8qM6 VPp3PQf/XOd8yaCvxWYdqhcNc6qT+OFrwfjFvny5ySuuQxnOgkhK2n9G0x2VdFdy ODng4eqrhig5hsAoUOxDhIWCSofLeyl2Up6X2C8Xd35R2x4PGlHo9cwstQ56fv/v iZdkVLaHq4FrpCavXsPZo+vmaDruXMNIiD3Qsz8/1kIZHcfvh9UQ5l0vsWMxl2tI gvKXvf2TL3XGVZfMGFLwmv94TShO9iyN6UyVTc+aNLf7fux1GCPz35wXIzSWc7Tf DJVAucjBKiuAjsxk6qOZiu65jHRBYK63qd19nA3GbCpJF9KltMOCMNOZ7QQZSnQJ CXC/ctgDAN86EP7G+b1xNZkuUbIXpQ== =12Bl -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 02 17:01:27 2020 Received: (at 36882) by debbugs.gnu.org; 2 Mar 2020 22:01:27 +0000 Received: from localhost ([127.0.0.1]:38437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8t7v-0003Bf-CU for submit@debbugs.gnu.org; Mon, 02 Mar 2020 17:01:27 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8t7u-0003BU-LV for 36882@debbugs.gnu.org; Mon, 02 Mar 2020 17:01:26 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 66B4020CF2; Mon, 2 Mar 2020 17:01:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 02 Mar 2020 17:01:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=vLakRp7b5DoG1VNP6SE+wWFCJD ZSrJoLNlyreninXxk=; b=suG+/5l2dKIeOLrKXOOVbrpQtNvMZNoFYBKnDCnvv5 fmmwmfODIs90FyjKsOmsrkWlMZSwBv+Zhnlv6mvcV1TfXamBl6yQCGi4TmC024g9 3fBs1tyxgbI1YA4t6EqJnogj99tUifdVssLFQQjaMQay4ELsiwcVuWFPGYjHY2H5 YpU8T9aTIO+4TTPYRKIyeVc/OoKeu44lcz59QDAkZTJXn8gJZj/80ufVjEsd5VzO 3Qt+/C1j2npWS1LjbNd2MChPEzIaEs9dZ63BjWpGNB1HHndZ3cs5LoNc/oPFsGSw zMeJtbgHMyLtxLErj1d1Z3Qd55x8T0P1CneIXdaWf2gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vLakRp 7b5DoG1VNP6SE+wWFCJDZSrJoLNlyreninXxk=; b=4Av/5Xr8TDZSCZtm7pf5lF P7cMkJWCwmpLB6Ww4g7gM/fIWlnUUau2E4wkl1Go45tsSDSbdOI7H7r9YEEhxQh1 4FfiBMoMKPd4HHqIUlx8E49ZMc4A/RiaqP+06hDi9Zu4xj3zk0892CNIsD+2rC9L z/MXF4L+gECdLnGsU97ZrzXDC06b7Zn40tZT8eYossWsA+2CtnfQlka3MP7FzUrn y5Y28f5KZVglmg59KzQiYH5kkJJwAMcEPCI0rvVto6/owM5tjE61B9UY8u7kwGac vG4wu54CgcZwhbNZ8BVIop6DAaKye47COg04BpGF55nG9Hmcq/pH8jHOwUVnS7WA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtgedgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhi uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppe ekgedrvddtvddrieekrdejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id DDBD63280063; Mon, 2 Mar 2020 17:01:20 -0500 (EST) From: Marius Bakke To: Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8?= =?utf-8?Q?s?= Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-Reply-To: <874kveafns.fsf@gmail.com> References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Mon, 02 Mar 2020 23:01:19 +0100 Message-ID: <874kv6ju1c.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hi Mathieu, Mathieu Othacehe writes: > So if it's ok for you, I'll try to implement a GCC hack so that we can > keep using C_INCLUDE_PATH on core-updates and have QEMU building, as you > proposed. Did you get anywhere with this? As Ludovic mentioned, it might make sense to work around it in gnu-build-system too if patching GCC turns out to be difficult. If we can't find a workaround in the coming weeks, perhaps we should postpone the issue and add package-specific workarounds in the mean time? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5dgi8ACgkQoqBt8qM6 VPr8gQf+I3yi9nGhTfj/vc0VIl0wxpb0ggKk5RJUiuAY7A0nfEF9JkIJkL1MFM0d rAPa1LToOsIXuYhDuEeOvxpASs2xb1wdrG1jbsSenO9eCz3FGbV6pEeKaapVuxj7 fJ7T1oX3CACsMSaxdPQfG5pYf3qCt28IAPxxQol60/4mY8rVMtMC83VSGED5AXR6 MDvtJ0EKiy8cMejpoRUx2L4CJ1PTZzlzGmXXa6zkk+PsuppVeFPmCNLJm9q+BK+p O6Ll24NzmZlb8zhIJu+ou576FJ9wKcMbHaG/smkLrpJ7oU7/8XJY/7ScT1yP7WEF 7HFCsvyOQdkMlEyOe0TAx83ykS+cSQ== =MY/y -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 02:39:45 2020 Received: (at 36882) by debbugs.gnu.org; 3 Mar 2020 07:39:45 +0000 Received: from localhost ([127.0.0.1]:38657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j929Z-0002iB-HT for submit@debbugs.gnu.org; Tue, 03 Mar 2020 02:39:45 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:39817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j929X-0002hz-W5 for 36882@debbugs.gnu.org; Tue, 03 Mar 2020 02:39:44 -0500 Received: by mail-wr1-f48.google.com with SMTP id y17so3013059wrn.6 for <36882@debbugs.gnu.org>; Mon, 02 Mar 2020 23:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=H6IDt3ZPlFuUu7iizJqum92aoMcsZzLePVEg3m0w7U8=; b=ZiPAsCLGkdOE1aLiT1zC4oylfFbDX5ESbaSGgOKaxh7O6a7N52UBdC+MyqhV0KrDpV fH2Isl3a2cu8n1729YxUuDzLFJ8f2bMHCL7Iubawf1WFQrfx+KC5MjKYIN0oZZ9lOHuD dBgNv8mFnoc4AUxN/xl5PFz/C6ZJB1HSOMBuy23geTrbSj18+iA0Jxm8xxTeC7/V11Wy bClVXj5BPEWB2landUHSXYPhTXbeXOjuVeZ74K3r9eScuOzAUmah2BCOm0DmNbddrBMk 0UhL7Xmlt4xPSfhvSnET1KHThfJ4pe5svZrIwefdOPyyIpMLWq2bb4Yu7WkVVnjcTkOU 7WnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=H6IDt3ZPlFuUu7iizJqum92aoMcsZzLePVEg3m0w7U8=; b=ErmdSJuO3RpFpUq3JIiQTMaXZpGrouHzMHNC0Bp+DPQMnA5PtMHdZvFqaYM3fMuNAx 8DmlLj2JFK0MEBUB0F4C0iI8+jLuLRhZHmXRr1z2SwDP4ycveZzhL7jwcrolUzfp96To YkE0TSCZbq5VoBQzQOlpAFXLoWhjT+PaqXsmfIHNh9AuOgdDBJgrciOkvekmYNAaPm5M 7H5340rVOak2R+n9qVmGE86mXcK4R4+FeDE2yqZfN1tArfrr8y4Q0lItgdagTIqDAQmE s2oX7DhNeI7YmIB1lSRmU22apwSslvxgB2/h0eSjBqADwToxjyJ2c++LiyoRe5OqKWjL keXw== X-Gm-Message-State: ANhLgQ2svu+BaD2c9XECPcatCi22rr3r/W/dBPma3ILiTE3rVm0vNQcn hAf1wXcgu3rY3nWTuauEfRqNzHWP X-Google-Smtp-Source: ADFU+vvFTyY3g17nsIjRGZSRg9oFbgmFwYbqTIoJjMZf8kWZkptwjmUPkvY+P+2jT4rIfLX9fzBL1w== X-Received: by 2002:adf:fd4c:: with SMTP id h12mr4130307wrs.101.1583221177838; Mon, 02 Mar 2020 23:39:37 -0800 (PST) Received: from meru (lfbn-ann-1-269-240.w86-200.abo.wanadoo.fr. [86.200.224.240]) by smtp.gmail.com with ESMTPSA id v7sm25355721wrm.49.2020.03.02.23.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 23:39:36 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Marius Bakke Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <874kv6ju1c.fsf@devup.no> Date: Tue, 03 Mar 2020 08:39:35 +0100 Message-ID: <878skh3n0o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) Hey Marius, > Did you get anywhere with this? As Ludovic mentioned, it might make > sense to work around it in gnu-build-system too if patching GCC turns > out to be difficult. Yup, turned out patching GCC was too difficult. I'm experimenting a filter over inputs passed to set-path-environment-variable in set-paths. I hope to send this hack to review later this week. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 06:55:55 2020 Received: (at 36882) by debbugs.gnu.org; 3 Mar 2020 11:55:55 +0000 Received: from localhost ([127.0.0.1]:38790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j969S-0000XQ-Q9 for submit@debbugs.gnu.org; Tue, 03 Mar 2020 06:55:55 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:46264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j969Q-0000XD-QW for 36882@debbugs.gnu.org; Tue, 03 Mar 2020 06:55:53 -0500 Received: by mail-wr1-f44.google.com with SMTP id j7so3892602wrp.13 for <36882@debbugs.gnu.org>; Tue, 03 Mar 2020 03:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=qN5iIC8kEQlZZKCzKs06uc0Ae+vuCw1WkkghQ6b2IKw=; b=K3/X37bqpWGM7O8y0guyiiObovgYnuLIZWvWFfypytmC6m110G6S2+BTpuyWzboRGb I0+jgB+QhCrcTNzUA2hZo20E4vPtKYOk18Rey4AYZe/1Ys0S0LbVnDeqsHT5SsUiVoED GNKIw1cu7xfmFWETz6+4rM3YSnO5cFnFM+hQtiT7YVVA2Ei9TkbBn/9DahtsOVm0sIMK RXOsZfQtYsS7JRtfM3oxzY305ZPN1TZtBWT3TRwu7TqTXp57P8MxMOh4Iq5ishsQWycw CkHmk8vqO0xkJr7scq/w2W4ZXFIHvlN4XIBQsbZ8ImLXJT///2Ztu2HyjGduAMZxv1KX uguQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=qN5iIC8kEQlZZKCzKs06uc0Ae+vuCw1WkkghQ6b2IKw=; b=lwgLr466pvRHEWgaIkdBhEFVBWrVo6mFDiDPs/2DhuHIJSkrGEaVN2W/R8T5pwr/qQ nNuYFb+0RH4ha224MHUlHczALlgpd2cLY3+FI24k3lsIhvzo/qgH2GS581N+GuFgeAvN P9MA/OrNSkLYnlVoehf8mjSAjcc8GS8c30UXdbb7kxJoKg8uDU/VE/8pRBd95cET0xco L+dYvJae4mKFHc8k+KUpgf8sKfw12Hk1rKJ990jB3wpxofnM3H32wghg38/VhmA7a+wB qNmvaghQAt/9FhByXyaeF8XFHfqmY6eaa2jWnq5Go/RjwAwUW/wbo4zUFEj906goQcgg tmRQ== X-Gm-Message-State: ANhLgQ2zrFbh4A1zrjh+KJba56qA7nRnoIoYfm1Cua/SDzrYK1/9ukrW 4etdsv3ipdrygcjihYTqfmN5KulZ X-Google-Smtp-Source: ADFU+vvcK1wnVxBU3uYexBtt0/jSAQb0mkogfMZIZHOZyLBFxyakqnYN8NnVyOBGYEFgLwoYmYl2qA== X-Received: by 2002:adf:fa43:: with SMTP id y3mr5079053wrr.404.1583236546728; Tue, 03 Mar 2020 03:55:46 -0800 (PST) Received: from meru (lfbn-ann-1-269-240.w86-200.abo.wanadoo.fr. [86.200.224.240]) by smtp.gmail.com with ESMTPSA id k2sm1982847wrn.57.2020.03.03.03.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 03:55:45 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Marius Bakke Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <878skh3n0o.fsf@gmail.com> Date: Tue, 03 Mar 2020 12:55:44 +0100 Message-ID: <871rq9ejpb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) --=-=-= Content-Type: text/plain > Yup, turned out patching GCC was too difficult. I'm experimenting a > filter over inputs passed to set-path-environment-variable in set-paths. This is also quite tricky, because the "libc" input passed to set-paths must not be removed from C_INCLUDE_PATH in (gnu packages commencement) for mes packages. So, maybe the best option is to patch QEMU directly, as proposed in the attached patch. WDYT? Thanks, Mathieu --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-qemu-minimal-Fix-build.patch Content-Transfer-Encoding: quoted-printable >From 6d5dea746ce7b501cdb5ba41c5eff0c9ea7eb0b0 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Tue, 3 Mar 2020 12:45:33 +0100 Subject: [PATCH] gnu: qemu-minimal: Fix build. This fixes . * gnu/packages/virtualization.scm (qemu-minimal)[arguments]: Add a remove-glibc phase to remove glibc from C_INCLUDE_PATH. --- gnu/packages/virtualization.scm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.= scm index e16405fc9c..6ab8c3802c 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2018 Sou Bunnbu ;;; Copyright =C2=A9 2018 Julien Lepiller ;;; Copyright =C2=A9 2019 Guy Fleury Iteriteka +;;; Copyright =C2=A9 2020 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; @@ -124,7 +125,7 @@ "1w38hzlw7xp05gcq1nhga7hxvndxy6dfcnzi7q2il8ff110isj6k")))) (build-system gnu-build-system) (arguments - '(;; Running tests in parallel can occasionally lead to failures, lik= e: + `(;; Running tests in parallel can occasionally lead to failures, lik= e: ;; boot_sector_test: assertion failed (signature =3D=3D SIGNATURE):= (0x00000000 =3D=3D 0x0000dead) #:parallel-tests? #f #:configure-flags (list "--enable-usb-redir" "--enable-opengl" @@ -135,8 +136,28 @@ "--audio-drv-list=3Dalsa,pa,sdl") ;; Make build and test output verbose to facilitate investigation u= pon failure. #:make-flags '("V=3D1") + #:modules ((srfi srfi-1) + (ice-9 match) + ,@%gnu-build-system-modules) #:phases (modify-phases %standard-phases + ;; Work around https://issues.guix.info/issue/36882. We need to + ;; remove glibc from C_INCLUDE_PATH so that the one hardcoded in = GCC, + ;; at the bottom of GCC include search-path is used. + (add-after 'set-paths 'remove-glibc + (lambda* (#:key inputs #:allow-other-keys) + (let* ((filters '("libc")) + (input-directories + (filter-map (lambda (input) + (match input + ((name . dir) + (and (not (member name filters)) + dir)))) + inputs))) + (set-path-environment-variable "C_INCLUDE_PATH" + '("include") + input-directories) + #t))) (replace 'configure (lambda* (#:key inputs outputs (configure-flags '()) #:allow-other-keys) --=20 2.25.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 15:26:34 2020 Received: (at 36882) by debbugs.gnu.org; 3 Mar 2020 20:26:34 +0000 Received: from localhost ([127.0.0.1]:40011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9E7e-0000Dc-E2 for submit@debbugs.gnu.org; Tue, 03 Mar 2020 15:26:34 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9E7d-0000DO-7p for 36882@debbugs.gnu.org; Tue, 03 Mar 2020 15:26:33 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2958C21F5A; Tue, 3 Mar 2020 15:26:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 03 Mar 2020 15:26:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=r7ic80aqXoRSMRAtawkK1JgIKk /ajb3SmO5d6hM9AKI=; b=JCBMDb5SICQbLnNkzdXktKWWDOr1AKWpYVGKMF9EMb 6a/rqey7yLPl1iHUFmx002kf974WQKRzmStHADadaz5wy62IkjRujBwfzwDr3prV iaoN/C5dFssqkCIolN5fZ8XLaY2Wep/uUhvF0dh/EANlMVT3lWX+iQ9FSU2zZCqL h1H2Zg3YmRZ1yy0O8aCGw+ePADdKJwBGuYpe6WgVAPH0+8UkJLy6Wnj0Gp7e5QVf qlFRAf8I/PmskY+NqisevquOllc1BQ23KjBODlep5fpWxzZ0ppQtIEA3eI69QYED dmWjzvfHjT0FNd5ScrB2JTDqMxjRWFyzQNXYnueFbiUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=r7ic80 aqXoRSMRAtawkK1JgIKk/ajb3SmO5d6hM9AKI=; b=T/+dYO72RtYxWYL4klahQR AHXt2sjvchHUTnB/4T1xIxgAU/CdCKmpThH3MPrR46WSfxwSsiHv06m/C9pfJKa1 dIl20lEE8ne8f4WhFGyEAXpsFwRUMznA7hWuYjuz7ZT9nW812WSrpBWWXXgvWwoy MJ0HSbEZW5QRbFqPpXWSW9mS9bGhW4yaFTIEd+8o1IZ91l6TWOd4rOzobi6knMWo HL4S91xO0sNKf/2x11xuoFkWCeoQey6uRlFEBHd10yTGuvqWIt5jS285t/kUVvro YXdgCoIR41Y0d1QtajyLluVGXb13q5tOX3DhloapCEcnpL6LmLJUq1aP83FuRfyw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtiedgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhi uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppe ekgedrvddtvddrieekrdejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id A2B8F30611FB; Tue, 3 Mar 2020 15:26:27 -0500 (EST) From: Marius Bakke To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-Reply-To: <871rq9ejpb.fsf@gmail.com> References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 03 Mar 2020 21:26:24 +0100 Message-ID: <87v9nli3rj.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hello Mathieu & Ludo, (+ janneke) Mathieu Othacehe writes: >> Yup, turned out patching GCC was too difficult. I'm experimenting a >> filter over inputs passed to set-path-environment-variable in set-paths. > > This is also quite tricky, because the "libc" input passed to set-paths > must not be removed from C_INCLUDE_PATH in (gnu packages commencement) > for mes packages. If that is the only issue preventing us from solving this problem for all build systems, I'd say let's fix that. We could rename it obviously, though there are a few places that expect the "libc" key so it may become unwieldly. Can we find another way to detect the Mes toolchain, perhaps directly in gnu-build-system where we apply this workaround? E.g. look for inputs where (string-contains (package-name input) "mesboot")? Suggestions? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5evXEACgkQoqBt8qM6 VPqS/gf8DTDN4gBernK/9GE0wTwo8eWR4/Y00zij+CkcArCMtElob5rsCw9L2gzo B1KrkAwc7RdVpX+Tf/vMLKEmeTsT6MODWk/ONWWViSRhSF4zYm4olYpMNwDBrRgt gY3hY2RdDJ8SD3vsyB4DDV+zhPs2s9Peghh/D3bcjoP1MYRtHyxKWN3tgDdc3yPr Re+Tszf1G4TfBK+6PHc2tMhIeR1Jbyfv9QAXpSjUOLSM+BUQWiSvorggFd8hFzFa Q/qClFvK+gW6iU/Ue37RW+GLWqD0v6Lp+lcT8HUsdastRw4YXNG/0kZEIUFD+yGg nInEAOrLdecXfP+Bu+YmIC7/7xuC5g== =7Ugt -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 15:37:19 2020 Received: (at 36882) by debbugs.gnu.org; 3 Mar 2020 20:37:20 +0000 Received: from localhost ([127.0.0.1]:40042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9EI3-0000WQ-Mp for submit@debbugs.gnu.org; Tue, 03 Mar 2020 15:37:19 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:48933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9EI2-0000WF-F3 for 36882@debbugs.gnu.org; Tue, 03 Mar 2020 15:37:18 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5A74F22024; Tue, 3 Mar 2020 15:37:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 03 Mar 2020 15:37:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=3Kve7ImxlpdzirgE4imnSdMAeG FtZkhUYDFAVn1bOBc=; b=jdYs1xBdh2luqE8+PQbS05eFYI2CHfwRfcrbOIFy3v 7GJnQeuM41N2tYCtISAolU1vAFp55nrphDoYM2enTtYhBSdSK6Iqd7bf3puXlJhy a/zw9lub6eYHDxIKtEYI8/z6zhcNHMLVXUMzwZJt1rdy28LbK5LD9mtJJX84cs6J r2gB12eaviucOk6jn1yn8EgIfQkFazLtw7tCyqxG/9K8Z28ub6GlPRq9CZaoQX9g oShJTcvLRc9iURXpZomQ7gs3JC1JWkDV9LiUt/C10nYi2DN4ixZtSUV5chXOdY8e 2hU0Hfx5Pwl/M6MHZVLiJW299YovLehWSvKfz94FRtWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3Kve7I mxlpdzirgE4imnSdMAeGFtZkhUYDFAVn1bOBc=; b=iiyI/QFoRCcGdddjl77Pzf tffVrnnbeCws87IJWH6Y/9cEGfciFv4SsHIp9646irdkmMkqzBZP3Cqd8ab3nYJ3 vaD9X4VnFxuKqG5y7v8UMSpFfUc1ClmtV44L50rFUmW8mu5VJvMRU68JbAyIyOuc YhGcEZlXlqJCyXBcXlH/SUmr4NxnpL4Zr3DJiwPvwaO031QlkrBgTNYBAARqcC7Y GoF2p9DQQQOejOEt2aM145+yi7fU0VQHbURlv8rQgDyTq26e7BSbUPUfUC8DNT60 +/3IOJhqSE+HlPOiSOFwSqr3N1HSBOyDDL+8VI9p7D80R8HhI6Q+bj4+zCHHAIIA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtiedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhi uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppe ekgedrvddtvddrieekrdejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id B52743060BD1; Tue, 3 Mar 2020 15:37:12 -0500 (EST) From: Marius Bakke To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-Reply-To: <87v9nli3rj.fsf@devup.no> References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> <87v9nli3rj.fsf@devup.no> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 03 Mar 2020 21:37:11 +0100 Message-ID: <87pndti39k.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Marius Bakke writes: > Hello Mathieu & Ludo, > > (+ janneke) > > Mathieu Othacehe writes: > >>> Yup, turned out patching GCC was too difficult. I'm experimenting a >>> filter over inputs passed to set-path-environment-variable in set-paths. >> >> This is also quite tricky, because the "libc" input passed to set-paths >> must not be removed from C_INCLUDE_PATH in (gnu packages commencement) >> for mes packages. > > If that is the only issue preventing us from solving this problem for > all build systems, I'd say let's fix that. We could rename it obviously, > though there are a few places that expect the "libc" key so it may become > unwieldly. > > Can we find another way to detect the Mes toolchain, perhaps directly in > gnu-build-system where we apply this workaround? E.g. look for inputs > where (string-contains (package-name input) "mesboot")? > > Suggestions? I realize we don't have access to PACKAGE-NAME in the builder, though we could check for the string in the store item names. 'mesboot' contains an 'e' and is thus guaranteed not to end up in the hash. Not a very elegant solution though, hoping for other suggestions. :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5ev/cACgkQoqBt8qM6 VPpaiQf/SYbkPLRk8eU/fCk5WgcMlF5WM1WgKi6xDIMJWeFoSRaETTSTKa55VlMf G/+jSQEUb5tOsTVrzLW0qTVXE22qL1Knf6I+ZLztpPBZcKACBp5yNoZ6Kr+KLTnK kQO1SdNwK9ts/oTH1ycnKSW7PZYn4/lP3umLO8KHG7L1MHF3MsrXq2cSIJRii4L2 +HuR+y4efhgQzQ/gqMfv+V1uA+Tg/OLGhIN2h/gs+UPlQG/oACZUXrMYjJ1MQwKV YDdfDOg1DTOe4x88F/PeV40JkC8hOEKeRRQIG8d/aKGgeRLSIrx01hnrQR4YMhb6 VXwsRhx8Qt7nulzpjbh0jJpzxCkhMg== =Lzk0 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 16:10:09 2020 Received: (at 36882) by debbugs.gnu.org; 3 Mar 2020 21:10:09 +0000 Received: from localhost ([127.0.0.1]:40071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9Enp-0001Kb-BL for submit@debbugs.gnu.org; Tue, 03 Mar 2020 16:10:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9Eno-0001KM-BS for 36882@debbugs.gnu.org; Tue, 03 Mar 2020 16:10:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9Eni-0005kT-Pq; Tue, 03 Mar 2020 16:10:02 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=41586 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9Eni-0002Q1-8g; Tue, 03 Mar 2020 16:10:02 -0500 From: janneke@gnu.org (Jan (janneke) Nieuwenhuizen) To: Mathieu Othacehe Subject: Re: bug#36882: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> Date: Tue, 03 Mar 2020 22:09:56 +0100 In-Reply-To: <871rq9ejpb.fsf@gmail.com> (Mathieu Othacehe's message of "Tue, 03 Mar 2020 12:55:44 +0100") Message-ID: <87k141rvq3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke , Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Mathieu Othacehe writes: Hello! >> Yup, turned out patching GCC was too difficult. I'm experimenting a >> filter over inputs passed to set-path-environment-variable in set-paths. > > This is also quite tricky, because the "libc" input passed to set-paths > must not be removed from C_INCLUDE_PATH in (gnu packages commencement) > for mes packages. Do you have a patch/branch where I can see this related error? If mes builds are an exception, it could be nice to solve it there? Or is this a Qemu thing and is Qemu the only package that suffers from this? Trying to help here, but I'm not sure if I understand what's going on... Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 04 03:16:43 2020 Received: (at 36882) by debbugs.gnu.org; 4 Mar 2020 08:16:43 +0000 Received: from localhost ([127.0.0.1]:40322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9PCs-0006MV-W2 for submit@debbugs.gnu.org; Wed, 04 Mar 2020 03:16:43 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:53180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9PCr-0006MI-Ef for 36882@debbugs.gnu.org; Wed, 04 Mar 2020 03:16:41 -0500 Received: by mail-wm1-f50.google.com with SMTP id p9so864192wmc.2 for <36882@debbugs.gnu.org>; Wed, 04 Mar 2020 00:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=Zzk37ssUhltjLrQIWSiqm3m97h42nJNJSA55rcNquSg=; b=fZ2RZxmyG8zXv7+w2IwE081wQTv57Rn+i4/fNTY8whZAFbkF5US0XgA5Zp0/I7KhiN 1EZ1mV96hnDTYzbmSA80vlE9pLtdsBWDFiRc26yYx3baLoaNUjpsDrKxaLgadutUl+7M lN3OEZ0fJX9ACHN6nHw1W4odypGsDgfCowZtMQ5a9CVYFA68PrVJ+9COR6CFsicNl2iG dMFD9Yxmrut+oHlHGqqmDEj7MsdZP7hRAzyQJVxTTsbJZtvRfEX36xXPUZG51XCiohSH kFEGSgjBAo0PjU5lWPwcRjkHweznuwa5fI74piwT6hlr2nNJyqKDPisgn4LA0hRZFhjG ySkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Zzk37ssUhltjLrQIWSiqm3m97h42nJNJSA55rcNquSg=; b=pmY7vg7/lOhtvoqJs1T1QAnBa2L9aaHGlvAvC1YAN2LwEyuPlId4mv0QMV7VnfdHN2 8E6qd3Obpo5ESf2jG1yy08HQYPT6/hwd5vRS5iwEosSgDSqCnqtRxbB7Jrra2VryCGL/ Gk3NvCkwQo1UwnUhxl7T+leE17Nsu92NsXMz07aFspRuqSzvdnhuj1Y76MMerWgRVJ5p MggshSbRaDbJE4mOQ/Oi1lES73+zZIyRxrB1/a9Ew8fZcWWNQHJHvFo7xn612IHT7zAT g9yCrogSIDawyNp0AH1ZXSw7S/wohJQpJxkCFTrAW4Z8oWwzy2l9ExyCJqcGBZFMJEmf 96yA== X-Gm-Message-State: ANhLgQ2HGv9WnCCUIRmd9P0CNhPCE/tTvC/lIrx+OUmFKghaRuqGQRGH UH3hz5HeYPKrgahGuUo8Sfk= X-Google-Smtp-Source: ADFU+vsxB87IhglkXEiFlBgNg+yxSlhNvaWwZ6jGLwhh/hHd6TMZ2FVw5MUJLZK2YlIEpC1VMCaKgw== X-Received: by 2002:a1c:7ec5:: with SMTP id z188mr2350223wmc.52.1583309795349; Wed, 04 Mar 2020 00:16:35 -0800 (PST) Received: from meru (lfbn-ann-1-269-240.w86-200.abo.wanadoo.fr. [86.200.224.240]) by smtp.gmail.com with ESMTPSA id b24sm2889748wmj.13.2020.03.04.00.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 00:16:34 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> <87k141rvq3.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: "Jan \(janneke\) Nieuwenhuizen" Subject: Re: bug#36882: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <87k141rvq3.fsf@gnu.org> Date: Wed, 04 Mar 2020 09:16:33 +0100 Message-ID: <87v9nkedr2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke , =?utf-8?Q?L?= =?utf-8?Q?udovic_Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) Hello Janneke, > Do you have a patch/branch where I can see this related error? If mes > builds are an exception, it could be nice to solve it there? Or is > this a Qemu thing and is Qemu the only package that suffers from this? > > Trying to help here, but I'm not sure if I understand what's going on... To summarize the situation, we are considering adding a dirty hack in gnu-build-system so that "libc" input is removed from C_INCLUDE_PATH. The reason is that GCC has already a libc hardcoded in its include search-path. Having both libc, causes build failures for QEMU on core-updates and possibly other programs playing around -m and -ffreestanding in GCC. Anyway, Mes does not break anything, it's just that removing "libc" input unconditionally in set-paths breaks Mes packages. That's why Marius was suggesting renaming "libc" to "mes-libc" or something, so that we can proceed. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 05 11:36:25 2020 Received: (at 36882) by debbugs.gnu.org; 5 Mar 2020 16:36:26 +0000 Received: from localhost ([127.0.0.1]:43630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tU1-0008Ih-Oo for submit@debbugs.gnu.org; Thu, 05 Mar 2020 11:36:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tU0-0008IV-2r for 36882@debbugs.gnu.org; Thu, 05 Mar 2020 11:36:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9tTu-0000sY-TP; Thu, 05 Mar 2020 11:36:18 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33930 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9tTt-00071O-S0; Thu, 05 Mar 2020 11:36:18 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 05 Mar 2020 17:36:12 +0100 In-Reply-To: <871rq9ejpb.fsf@gmail.com> (Mathieu Othacehe's message of "Tue, 03 Mar 2020 12:55:44 +0100") Message-ID: <87v9ni92tf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi! Mathieu Othacehe skribis: >> Yup, turned out patching GCC was too difficult. I'm experimenting a >> filter over inputs passed to set-path-environment-variable in set-paths. > > This is also quite tricky, because the "libc" input passed to set-paths > must not be removed from C_INCLUDE_PATH in (gnu packages commencement) > for mes packages. Yeah, fiddling with =E2=80=98set-paths=E2=80=99 sounds like opening a can o= f worms. > So, maybe the best option is to patch QEMU directly, as proposed in > the attached patch. WDYT? I=E2=80=99m all in favor of that for now. It=E2=80=99s likely that QEMU is= the only package having problems, as Marius noted (the GHC error sounds like it could be something different), so I=E2=80=99d say go for the package-specif= ic solution for now. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 05 11:42:16 2020 Received: (at 36882) by debbugs.gnu.org; 5 Mar 2020 16:42:16 +0000 Received: from localhost ([127.0.0.1]:43636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tZg-0008RT-Bn for submit@debbugs.gnu.org; Thu, 05 Mar 2020 11:42:16 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tZe-0008RE-4m for 36882@debbugs.gnu.org; Thu, 05 Mar 2020 11:42:14 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F278E2239D; Thu, 5 Mar 2020 11:42:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 05 Mar 2020 11:42:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=MPY+imcXyzII9pDOtEVnOOyaY3 UG+8rhtR4VGmowz/0=; b=gK1SEK0qEKlqQHnsNEGB0fJNnjqWGlgcJ3GLFXX8/1 13R3xTt3NLIDE4m/VpKbtb23DsBeaemgAOi88GNwFDvpVkEZ5wc1ydGbYDdPFgSy 7upbmO5rfCZd1zjqJPUbtPJOsAhvYLw+WIMYLLErQmR7bykRyjw8DN1l91VHCRgM 8hl6q68Rj4ai9Jr96UGhav747/1+jaNUPOnoH5IFAvSe1R0uaIsmuMhL8icd3aEr puILRCwvq3ONBZSBPeMzvoObBsf3rhuD4L1jqJRO+Jj4PKV1Y7g7crZ/j6vduINw QRiXJF7MyvJ9ZhJ6o6L6RK7kR0Iw0XILHaeLAGy6ukHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MPY+im cXyzII9pDOtEVnOOyaY3UG+8rhtR4VGmowz/0=; b=3c0m06uDONL9ABxAdNptMj nHXYvaoF/AGT3oKpjVfIkYFMqK9YTDYk04CXvkIb8+ls2f7btYb4ub3nnShwD8Yh dz91wyuHTOm1vGNl3hFz6WGT263S+eBgFTccb1is/oBiCBiwyQBLdmcEt3fcAcUD NjyxmAw66XRppyhe3vtDed/fIP7L0hNuLfZpmeVTXUEfgPYj2DsmiM8nSGX2vHGR kb9nqHyJASA5QY+wKkSmH4HsBzhjm0zBlYbCirIgCccoLIga6wxpsrmKp5mZW9x6 SPsWqH0LEhT4bBsy3oWSqTZGJRyu0AuSdH3xq1uKx72/jnh4WCuqg89gtsqWAOmQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddutddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehgtderredtreejnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucfkphepke egrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D5EA30614B1; Thu, 5 Mar 2020 11:42:08 -0500 (EST) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Mathieu Othacehe Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-Reply-To: <87v9ni92tf.fsf@gnu.org> References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> <87v9ni92tf.fsf@gnu.org> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Thu, 05 Mar 2020 17:42:06 +0100 Message-ID: <87a74ulpnl.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36882 Cc: 36882@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi! > > Mathieu Othacehe skribis: > >>> Yup, turned out patching GCC was too difficult. I'm experimenting a >>> filter over inputs passed to set-path-environment-variable in set-paths. >> >> This is also quite tricky, because the "libc" input passed to set-paths >> must not be removed from C_INCLUDE_PATH in (gnu packages commencement) >> for mes packages. > > Yeah, fiddling with =E2=80=98set-paths=E2=80=99 sounds like opening a can= of worms. > >> So, maybe the best option is to patch QEMU directly, as proposed in >> the attached patch. WDYT? > > I=E2=80=99m all in favor of that for now. It=E2=80=99s likely that QEMU = is the only > package having problems, as Marius noted (the GHC error sounds like it > could be something different), so I=E2=80=99d say go for the package-spec= ific > solution for now. Indeed, I will push Mathieus commit shortly. clang-runtime requires a similar fix for CPLUS_INCLUDE_PATH. No idea what's up with GHC@8.4 yet, but unsurprisingly removing libc from the include paths does not make a difference. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5hK94ACgkQoqBt8qM6 VPo5Ngf9HaMvlMVCEZrjWjszDD6IikU5UuEGu9MZWVD+qXBW4IVnj12vKbnadEwa Isb14pi5h58xGoEwow02lvES+sWV3ejguc8D+PsAHaPXGLA0fX5uWaARf+YuAoYt MJQeHAFZa8CvkBWykFphLVyeNUnYIGB9mPVum8JNjWOUTfbuXDHpzSHpfqdU6CDa M61XWQjD8/QEI0kAE7LPbLVxlwRIhlnEs43AQmcCvwCfIoB0fq0aitRLha5DUD3g WyTosvi1OE3ys1RUmz3ILq28MKe8PiIIvOgqaG2eAAzxVvccP+3fCfRha/e8fpM4 JH7vJrGVzTAGYyxL+JfYmtvX45FQeA== =wXXd -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 02:25:25 2020 Received: (at 36882-done) by debbugs.gnu.org; 6 Mar 2020 07:25:25 +0000 Received: from localhost ([127.0.0.1]:43974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jA7ML-0002ZY-3Q for submit@debbugs.gnu.org; Fri, 06 Mar 2020 02:25:25 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:39902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jA7MK-0002ZK-58 for 36882-done@debbugs.gnu.org; Fri, 06 Mar 2020 02:25:24 -0500 Received: by mail-wm1-f48.google.com with SMTP id j1so1188482wmi.4 for <36882-done@debbugs.gnu.org>; Thu, 05 Mar 2020 23:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=VnLGtCRBT/eo/dt9Le01C10P9YTOvDLZgBb6Ntqm4QQ=; b=LFQ7IApZNLd0GoX5sUVdz6o36vTCQeLj2QmUnTpr+rhYsvh9Bqxbewlz7m6oONq3aI KwI/zS0jZszG9MqY1m7trswXG/djB9FjVVNqCbR5fhr7J6DZttt+wSsSM+bFxBi/0UVh f2qq7RnvLjuGX7EFjwnlN3FCPJj4eQFYff+OYZldd1y+/qgPVvOBYEtYMgdt4V/CqSQj hLgQ2jDVcxMwjPv3oqa7o3mUk5A4JlrLFx5/BdE90zz9RDLOmPzlK3ZQyajxfhxSb+fV nkRrFNkhfC/ZnFEiEUD6E/lL+begJcL3sZOGzyoMQemzMm1XUSxr1YkQ3Wzh+cPgTgsi gxLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=VnLGtCRBT/eo/dt9Le01C10P9YTOvDLZgBb6Ntqm4QQ=; b=KmkWfHg2qj5MHXDNInPKWtT0tTR/OWqhGO2wBOuyFocCZsCbTSFP4y53f4vp2c/KzL 0KmX4FPJ6fz6wA9loY5M7KJprdsc5/Mov3XYLcgYEjAwEPAl4WNLnEa3lA6oK7IM1eeT V6FzQKAuOYBjmUML4/rS4RNMly2kNTKLt56oas8Ouw3/w0fmisNhuOiyXC0QfmS1sQWO GJb88lMy6h1UWm2KZS87LaxtVzU8ysaDkhpLNW4Or8GVXWAbM8xOB4D9kegorGRIaSdz Re41JfTYQ7RymYhvWpkiBzIvnFA7MLvyM6UxPIV0pO7v08bnc/WrenKjqRm+IfDxtiJX NhXw== X-Gm-Message-State: ANhLgQ00YjhgFmZYq2WlcVEqSQHYJTxZmkaLKOxJdPgqV3d4IVJcO446 b5aPRqgxMU10wKkEYDNAuqDUCEfd X-Google-Smtp-Source: ADFU+vsq4nyGCplOONtwzSvd5wdd2uMXVSFhxBG01iCiUZ4Rgp5OMbDJRQwXxqooXuqPLEmohXdiow== X-Received: by 2002:a1c:7919:: with SMTP id l25mr2327987wme.135.1583479518172; Thu, 05 Mar 2020 23:25:18 -0800 (PST) Received: from meru (lfbn-ann-1-269-240.w86-200.abo.wanadoo.fr. [86.200.224.240]) by smtp.gmail.com with ESMTPSA id n3sm13150517wmc.27.2020.03.05.23.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 23:25:17 -0800 (PST) References: <87k14gnqng.fsf@gmail.com> <87mu9b3crd.fsf@gnu.org> <87a75a5taw.fsf@gmail.com> <87o8tptu7u.fsf@gnu.org> <87ftf0nx7n.fsf@gmail.com> <87tv3gm59r.fsf@gnu.org> <875zfuag6v.fsf@gmail.com> <874kveafns.fsf@gmail.com> <874kv6ju1c.fsf@devup.no> <878skh3n0o.fsf@gmail.com> <871rq9ejpb.fsf@gmail.com> <87v9ni92tf.fsf@gnu.org> <87a74ulpnl.fsf@devup.no> User-agent: mu4e 1.2.0; emacs 26.3 From: Mathieu Othacehe To: Marius Bakke Subject: Re: Qemu 4.2.0 build for x86_64-linux fails In-reply-to: <87a74ulpnl.fsf@devup.no> Date: Fri, 06 Mar 2020 08:25:15 +0100 Message-ID: <87tv32djxg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 36882-done Cc: 36882-done@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) Hey, > clang-runtime requires a similar fix for CPLUS_INCLUDE_PATH. No idea > what's up with GHC@8.4 yet, but unsurprisingly removing libc from the > include paths does not make a difference. Closing this one, thanks for pushing! Mathieu From unknown Tue Jun 24 05:09:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Apr 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator