From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FD263858039; Thu, 6 Jan 2022 22:41:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FD263858039 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails Date: Thu, 06 Jan 2022 22:41:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2022 22:41:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100017 --- Comment #73 from cqwrteur --- (In reply to Jakub Jelinek from comment #72) > Guess another option would be to do that > RAW_CXX_FLAGS_FOR_TARGET=3D"$RAW_CXX_FLAGS_FOR_TARGET -nostdinc++" > in the toplevel configure.ac after all the GCC_TARGET_TOOL lines. > While GCC_TARGET_TOOL does AC_SUBST on the second argument, so > AC_SUBST(RAW_CXX_FLAGS_FOR_TARGET), in autoconf AC_SUBST just remembers > that it should be substituted and does the substitutions late, so when the > var is changed in between it will propagate to the Makefiles etc. >=20 > --- configure.ac 2022-01-04 23:11:22.153595595 +0100 > +++ configure.ac 2022-01-06 21:59:49.274985505 +0100 > @@ -3669,6 +3669,8 @@ GCC_TARGET_TOOL(strip, STRIP_FOR_TARGET, > GCC_TARGET_TOOL(windres, WINDRES_FOR_TARGET, WINDRES, [binutils/windres]) > GCC_TARGET_TOOL(windmc, WINDMC_FOR_TARGET, WINDMC, [binutils/windmc]) >=20=20 > +RAW_CXX_FOR_TARGET=3D"$RAW_CXX_FOR_TARGET -nostdinc++" > + > AC_SUBST(FLAGS_FOR_TARGET) > AC_SUBST(RAW_CXX_FOR_TARGET) >=20=20 >=20 > completely untested... Also. Can I propose another patch that fixes multilib canadian builds for mingw-w64 and cygwin? i think I have a patch to fix that. The build sripts in GCC copy wrong DLLs when we build multilibs when we bui= ld Canadians. It is also a problem for native but native is usually buggy that cannot build multilibs.=