From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id jMpXDNUVHV9IRQAA0tVLHw (envelope-from ) for ; Sun, 26 Jul 2020 05:34:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id bCWNB9UVHV9WZgAAbx9fmQ (envelope-from ) for ; Sun, 26 Jul 2020 05:34:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 98B309403AA for ; Sun, 26 Jul 2020 05:34:12 +0000 (UTC) Received: from localhost ([::1]:48324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzZIX-0000PV-MF for larch@yhetil.org; Sun, 26 Jul 2020 01:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzZIQ-0000PM-Mk for bug-guix@gnu.org; Sun, 26 Jul 2020 01:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzZIQ-0003Lw-DS for bug-guix@gnu.org; Sun, 26 Jul 2020 01:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzZIQ-0007UR-A9 for bug-guix@gnu.org; Sun, 26 Jul 2020 01:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std' Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jul 2020 05:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42392 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42392-submit@debbugs.gnu.org id=B42392.159574161328753 (code B ref 42392); Sun, 26 Jul 2020 05:34:02 +0000 Received: (at 42392) by debbugs.gnu.org; 26 Jul 2020 05:33:33 +0000 Received: from localhost ([127.0.0.1]:51622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzZHx-0007Th-2M for submit@debbugs.gnu.org; Sun, 26 Jul 2020 01:33:33 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:35339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzZHt-0007TT-DW for 42392@debbugs.gnu.org; Sun, 26 Jul 2020 01:33:31 -0400 Received: by mail-qt1-f177.google.com with SMTP id b25so9937697qto.2 for <42392@debbugs.gnu.org>; Sat, 25 Jul 2020 22:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=qN5RO6x5nswUFd5eDOqvS5Fs/Bnv2v79V3Xw9MoqGE4=; b=qvIvVxsRVyViekkF3l7IclQNi0Fm3I8jkNcueVqcD/R8Uxe6vIXT0ki/pQNwhkeoLO +sZEcIMqPYHCCbOuxIchyZCXQGj7HGtV03lNLghduVw6bnd/S9SmLXMo8N2azPcjmS56 /tRvOV3+LzqXG93qQDkdP0MrFq7rw90xKU+TvGxQ8mZwjRGsah9SPKNXNzU/cp9PckFt fuPfXjyiC21E0imU4EBBn9IfH6t5RDXU0hZJGV6ynp74Dln/TXnzUN9GXv/xJApSwS1Q vlujoo4lfkmVmlXRDyT6hPwQdKPBOX4wMuku1Odqn/iZKSTcNyB38HRRqqufPpACoMuH QBaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=qN5RO6x5nswUFd5eDOqvS5Fs/Bnv2v79V3Xw9MoqGE4=; b=IfGZi4Xq6v7qoe29JCwTgRxnTGlBl+YPL3Vt/2RPEv9ZW+xYEDpXarkOtukdbxfm/V /YbHmu2ph1KYbjxpFAI/tS8bi48OnV2Jk3oCXpRgB5Md1RqRYcPw/byPw3P4gz2LGVhg 4Vd/VmTH0H1H/CTNQ2H/CGHIj62gXmI3IYcP6HYtHFfh0JZ+npHHByzL6EpardGfrei3 ZPvrdmbFvpICMVGZsTh4bU5/4wMbSCzusQpqca12M/NsMqoo1UpE7bh1m1HGrPbYKqSv hS8vx77iF+PZA4r3ZseYEk6xJuX0cr7EW6Rc71CBt079mfMJg70UYT52GzWVf+lgfmOV vYQQ== X-Gm-Message-State: AOAM533O/aGR/w4JSEsS91x+YIrDWpWjW5es1mMhkcSZ7VlgvQVNEiUe VXLh+HkG+1m/JAhWIbbVQTbQ8grL X-Google-Smtp-Source: ABdhPJxo01YFpUOY3SV3vEhWmrS3e92uSqTebCULmYN+ZfToH9vl/jpsTiJDFwgKcjT6nX9ltBxOFA== X-Received: by 2002:ac8:318e:: with SMTP id h14mr8213042qte.245.1595741603486; Sat, 25 Jul 2020 22:33:23 -0700 (PDT) Received: from hurd ([207.35.95.164]) by smtp.gmail.com with ESMTPSA id m26sm8556205qtc.83.2020.07.25.22.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 22:33:22 -0700 (PDT) From: Maxim Cournoyer References: <87imenk1ps.fsf@hurd.i-did-not-set--mail-host-address--so-tickle-me> <87imegoplx.fsf@gnu.org> Date: Sun, 26 Jul 2020 01:33:20 -0400 In-Reply-To: <87imegoplx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 21 Jul 2020 17:27:22 +0200") Message-ID: <871rkyg7rz.fsf@gmail.com> 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42392@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=qvIvVxsR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: 8CFCW7Yr/ho5 Hello Ludovic! Thank you for the investigation, and sorry for not having been able to reply earlier! Ludovic Court=C3=A8s writes: [...] >> >> __cplusplus >=3D 201103L and _GLIBCXX_USE_C99_MATH_TR1 and not _GLIBCXX_= NO_C99_ROUNDING_FUNCS Thanks for pointing out this configuration time problem! [...] > Comparing =E2=80=98c++config.h=E2=80=99 from GCC=C2=A07 (which works) and= GCC=C2=A08 (the first > one that exhibits this problem), we see: > > diff -ubBr --show-c-function /gnu/store/93z2pmmpla1n47q3xivqyic4mwvy0r5q-= gcc-toolchain-8.4.0/include/c\+\+/x86_64-unknown-linux-gnu/bits/c\+\+config= .h /gnu/store/xa45bzcbib4zqa7gk70nb35dzzwyr376-gcc-toolchain-7.5.0/include/= c\+\+/x86_64-unknown-linux-gnu/bits/c\+\+config.h > --- /gnu/store/xa45bzcbib4zqa7gk70nb35dzzwyr376-gcc-toolchain-7.5.0/inclu= de/c++/x86_64-unknown-linux-gnu/bits/c++config.h 1970-01-01 01:00:01.000000= 000 +0100 > +++ /gnu/store/93z2pmmpla1n47q3xivqyic4mwvy0r5q-gcc-toolchain-8.4.0/inclu= de/c++/x86_64-unknown-linux-gnu/bits/c++config.h 1970-01-01 01:00:01.000000= 000 +0100 > [...] Interesting! > /tmp/guix-build-gcc-10.1.0.drv-0/build/prev-x86_64-unknown-linux-gnu/libs= tdc++-v3/config.log > reads this: > > configure:19924: checking for float trig functions Notes: This check is made by the GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1 m4 macro defined under in libstdc++-v3/linkage.m4. The macro definition hasn't changed since 2005, so it's not the cause of the problem. > configure:19948: /tmp/guix-build-gcc-10.1.0.drv-0/build/./gcc/xgcc -shar= ed-libgcc -B/tmp/guix-build-gcc-10.1.0.drv-0/build/./gcc -nostdinc++ -L/tmp= /guix-build-gcc-10.1.0.drv-0/build/x86_64-unknown-linux-gnu/libstdc++-v3/sr= c -L/tmp/guix-build-gcc-10.1.0.drv-0/build/x86_64-unknown-linux-gnu/libstdc= ++-v3/src/.libs -L/tmp/guix-build-gcc-10.1.0.drv-0/build/x86_64-unknown-lin= ux-gnu/libstdc++-v3/libsupc++/.libs -B/gnu/store/jrzxs91zhpf6yr5fxisn3jjj7x= ai8zlk-gcc-10.1.0/x86_64-unknown-linux-gnu/bin/ -B/gnu/store/jrzxs91zhpf6yr= 5fxisn3jjj7xai8zlk-gcc-10.1.0/x86_64-unknown-linux-gnu/lib/ -isystem /gnu/s= tore/jrzxs91zhpf6yr5fxisn3jjj7xai8zlk-gcc-10.1.0/x86_64-unknown-linux-gnu/i= nclude -isystem /gnu/store/jrzxs91zhpf6yr5fxisn3jjj7xai8zlk-gcc-10.1.0/x86_= 64-unknown-linux-gnu/sys-include -fno-checking -c -fno-builtin -D_GNU_SOU= RCE conftest.cpp >&5 > In file included from /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5= .0/include/c++/math.h:36, > from conftest.cpp:122: > /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include/c++/cmath:4= 1:10: fatal error: bits/c++config.h: No such file or directory > 41 | #include > | ^~~~~~~~~~~~~~~~~~ > compilation terminated. > configure:19948: $? =3D 1 > configure: failed program was: Eh! I fail to see what changed between 7.5 and 8.1, that would have caused such a change in behavior. [...] > At this point, we have: > > export CPLUS_INCLUDE_PATH=3D\ > "/gnu/store/61pv34q6kad3cii1pngyairvxbxgdm1n-isl-0.22.1/include\ > :/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/include\ > :/gnu/store/5jf395qa3v4amdi60850rz2a15zlsrza-mpfr-4.0.2/include\ > :/gnu/store/lgrnkwh7w5yawgqaglwj1pls5vwz1nz7-mpc-1.1.0/include\ > :/gnu/store/243algr6h60j46spn5dqhjc4mhkd0a0p-libelf-0.8.13/include\ > :/gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/include\ > :/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/include\ > :/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/include\ > :/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/include\ > :/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/include\ > :/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/include\ > :/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/include\ > :/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include/c++\ > :/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include\ > :/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include\ > :/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/i= nclude" > > > but is in a directory not listed here: > > $ find /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0 -name c++con= fig.h > /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include/c++/x86_64-= unknown-linux-gnu/bits/c++config.h > > > =E2=80=98gcc-final=E2=80=99 doesn=E2=80=99t have this problem because it = depends on =E2=80=98libstdc++=E2=80=99 > (separate package) where: > > $ find /gnu/store/v507xkc5flnzqa49yp41w5y611p4lqbg-libstdc++-7.5.0 -name = c++config.h > /gnu/store/v507xkc5flnzqa49yp41w5y611p4lqbg-libstdc++-7.5.0/include/bits/= c++config.h > > > So somehow the problems seems to be that =E2=80=98xgcc=E2=80=99 doesn=E2= =80=99t search > =E2=80=98gcc-7.5.0/include/c++/x86_64-unknown-linux-gnu=E2=80=99. We cou= ld add it to > CPLUS_INCLUDE_PATH manually, but it seems to me we=E2=80=99re missing som= ething. > > Thoughts? Great findings! But you got me curious as how the previous GCC version managed to eschew this problem :-). Sadly, a couple evening of eye-balling GCC logs and looking at include files haven't given me a clue. Oh well, thank you for fixing it! Maxim