From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: bug#36882: Qemu 4.2.0 build for x86_64-linux fails Date: Tue, 25 Feb 2020 15:34:48 +0100 Message-ID: <875zfuag6v.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49692) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6bIc-0007Jv-Qm for bug-guix@gnu.org; Tue, 25 Feb 2020 09:35:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6bIb-0001mk-TZ for bug-guix@gnu.org; Tue, 25 Feb 2020 09:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6bIb-0001mG-QK for bug-guix@gnu.org; Tue, 25 Feb 2020 09:35:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6bIb-0002rp-MZ for bug-guix@gnu.org; Tue, 25 Feb 2020 09:35:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87tv3gm59r.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36882@debbugs.gnu.org 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.