public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug bootstrap/96612] New: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 @ 2020-08-14 7:33 burnus at gcc dot gnu.org 2020-08-14 7:50 ` [Bug bootstrap/96612] " burnus at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: burnus at gcc dot gnu.org @ 2020-08-14 7:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96612 Bug ID: 96612 Summary: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: build, patch Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551900.html The issue occurs when doing a cross build with --build= being a GCC 5.2 compiler --host= being a GCC 8.2 compiler While the latter supports C++11 out of the box, GCC 5 still needs --std=c++11 in order to compile C++11. The configure check only checks the ${host} compiler but not the ${build} / CXX_FOR_BUILD compiler – hence, no flag is added. I think the proper solution is to do the C++11 check also for the CXX_FOR_BUILD compiler, as done in the patch linked above, https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551900.html ... but technically it is a regression as reverting the following commits also fixes the build: commit https://gcc.gnu.org/g:d59a576b8b5e12c3a56f0262912090e2921f5daa Redefine NULL to nullptr 2020-06-30 plus the three patches commit https://gcc.gnu.org/g:20a2e6afa82c165bcd1a8749478e9402a25088a4 recog: Restore builds with Clang Workaround forhttps://bugs.llvm.org/show_bug.cgi?id=46377 2020-06-22 which was the follow up to commit https://gcc.gnu.org/g:4e49b994de060d4a6c9318d0ed52ef038153426e recog: Tweak insn_gen_fn::operator() definition 2020-06-17 which was the follow-up patch to commit https://gcc.gnu.org/g:3a179232a743b2b1987b21034cd5bb3bc660ee85 recog: Use parameter packs for operator() 2020-06-12 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/96612] [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 2020-08-14 7:33 [Bug bootstrap/96612] New: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 burnus at gcc dot gnu.org @ 2020-08-14 7:50 ` burnus at gcc dot gnu.org 2020-08-20 19:59 ` cvs-commit at gcc dot gnu.org 2020-08-20 20:18 ` burnus at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: burnus at gcc dot gnu.org @ 2020-08-14 7:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96612 Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.0 |11.0 Target Milestone|--- |11.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/96612] [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 2020-08-14 7:33 [Bug bootstrap/96612] New: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 burnus at gcc dot gnu.org 2020-08-14 7:50 ` [Bug bootstrap/96612] " burnus at gcc dot gnu.org @ 2020-08-20 19:59 ` cvs-commit at gcc dot gnu.org 2020-08-20 20:18 ` burnus at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2020-08-20 19:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96612 --- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>: https://gcc.gnu.org/g:7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc commit r11-2787-g7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc Author: Tobias Burnus <tobias@codesourcery.com> Date: Thu Aug 20 21:59:00 2020 +0200 configure: Also check C++11 (flags) for ${build} compiler not only for ${host} config/ChangeLog: PR bootstrap/96612 * ax_cxx_compile_stdcxx.m4: Add fourth argument to check also the CXX_FOR_BUILD compiler. ChangeLog: PR bootstrap/96612 * configure.ac: Run AX_CXX_COMPILE_STDCXX also for ${build} compiler, if not the same as ${host}. * configure: Regenerate. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/96612] [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 2020-08-14 7:33 [Bug bootstrap/96612] New: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 burnus at gcc dot gnu.org 2020-08-14 7:50 ` [Bug bootstrap/96612] " burnus at gcc dot gnu.org 2020-08-20 19:59 ` cvs-commit at gcc dot gnu.org @ 2020-08-20 20:18 ` burnus at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: burnus at gcc dot gnu.org @ 2020-08-20 20:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96612 Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- FIXED. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-20 20:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-08-14 7:33 [Bug bootstrap/96612] New: [11 Regression][submitted patch] Fails to bootstrap with older --build= than --host= compiler due to missing -std=c++11 burnus at gcc dot gnu.org 2020-08-14 7:50 ` [Bug bootstrap/96612] " burnus at gcc dot gnu.org 2020-08-20 19:59 ` cvs-commit at gcc dot gnu.org 2020-08-20 20:18 ` burnus at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).