public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3
@ 2023-07-18 13:03 anmin_deng at yahoo dot com.tw
  2023-07-18 13:07 ` [Bug bootstrap/110716] " xry111 at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: anmin_deng at yahoo dot com.tw @ 2023-07-18 13:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

            Bug ID: 110716
           Summary: failed to build cross gcc 10.5 with host gcc 4.6.3
           Product: gcc
           Version: 10.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anmin_deng at yahoo dot com.tw
  Target Milestone: ---

I tried to build a cross gcc-10.5 for ARM target on a linux host/build with
gcc-4.6.3.

Previously in May, I successfully built cross gcc-10.4 for ARM target on the
same linux host/build, but now in July the very same procedure and options
failed for building gcc-10.5.

(possibly gcc-10.5 source added with some C++ features not supported by
gcc-4.6.3?)

The building error messages==>
In file included from ../../gcc-10.5.0/gcc/opts-common.c:29:0:
../../gcc-10.5.0/gcc/opts-jobserver.h:33:22: error: ISO C++ forbids
initialization of member 'error_msg' [-fpermissive]
../../gcc-10.5.0/gcc/opts-jobserver.h:33:22: error: making 'error_msg' static
[-fpermissive]
../../gcc-10.5.0/gcc/opts-jobserver.h:33:22: error: invalid in-class
initialization of static data member of non-integral type 'std::string {aka
std::basic_string<char>}'
../../gcc-10.5.0/gcc/opts-jobserver.h:35:30: error: ISO C++ forbids
initialization of member 'skipped_makeflags' [-fpermissive]
../../gcc-10.5.0/gcc/opts-jobserver.h:35:30: error: making 'skipped_makeflags'
s
static [-fpermissive]
...
...
<==


My configure options are ==>
../gcc-10.4.0/configure LDFLAGS=--static --prefix=/home/tool_chain
--target=arm-none-eabi --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--with-sysroot=/home/tool_chain --with-gnu-as --with-gnu-ld --disable-threads
--with-stabs --disable-nls --disable-host-shared --disable-shared
--with-tls=gnu2 --with-newlib --without-headers --disable-biendian
--enable-version-specific-runtime-libs --enable-languages=c,c++
--disable-libssp --disable-libquadmath --disable-libgomp --disable-libvtv
--disable-lto --disable-add-ons --enable-target-optspace
--with-multilib-list=aprofile,rmprofile --disable-tm-clone-registry
--disable-newlib-iconv --disable-newlib-mb --disable-newlib-wide-orient
--enable-newlib-long-time_t --disable-profile --disable-nss-crypt --disable-nss
--with-host-libstdcxx=-Wl,-Bstatic,-lstdc++,-lm
--with-mpc=/home/tool_chain/prerequisites-20230504
--with-mpfr=/home/tool_chain/prerequisites-20230504
--with-gmp=/home/tool_chain/prerequisites-20230504
--with-isl=/home/tool_chain/prerequisites-20230504
<==

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/110716] failed to build cross gcc 10.5 with host gcc 4.6.3
  2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
@ 2023-07-18 13:07 ` xry111 at gcc dot gnu.org
  2023-07-18 13:09 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-07-18 13:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
GCC 10 branch has been closed so this is unlikely to be fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/110716] failed to build cross gcc 10.5 with host gcc 4.6.3
  2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
  2023-07-18 13:07 ` [Bug bootstrap/110716] " xry111 at gcc dot gnu.org
@ 2023-07-18 13:09 ` pinskia at gcc dot gnu.org
  2023-07-18 13:18 ` xry111 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-18 13:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Some c++11ism slipped into the last gcc 10 release it seems. Since gcc 10.5 is
the last release of the gcc 10 series, there is not much to be done there.

Now I can't remember if gcc 11 requires c++11 compiler or not.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/110716] failed to build cross gcc 10.5 with host gcc 4.6.3
  2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
  2023-07-18 13:07 ` [Bug bootstrap/110716] " xry111 at gcc dot gnu.org
  2023-07-18 13:09 ` pinskia at gcc dot gnu.org
@ 2023-07-18 13:18 ` xry111 at gcc dot gnu.org
  2023-07-18 13:25 ` pinskia at gcc dot gnu.org
  2023-07-18 14:17 ` xry111 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-07-18 13:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Some c++11ism slipped into the last gcc 10 release it seems. Since gcc 10.5
> is the last release of the gcc 10 series, there is not much to be done there.
> 
> Now I can't remember if gcc 11 requires c++11 compiler or not.

It does, since r11-462.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/110716] failed to build cross gcc 10.5 with host gcc 4.6.3
  2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
                   ` (2 preceding siblings ...)
  2023-07-18 13:18 ` xry111 at gcc dot gnu.org
@ 2023-07-18 13:25 ` pinskia at gcc dot gnu.org
  2023-07-18 14:17 ` xry111 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-18 13:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Won't fix.
Build gcc 10.4.0 and then build gcc 10.5.0 and then build the cross compiler.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/110716] failed to build cross gcc 10.5 with host gcc 4.6.3
  2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
                   ` (3 preceding siblings ...)
  2023-07-18 13:25 ` pinskia at gcc dot gnu.org
@ 2023-07-18 14:17 ` xry111 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-07-18 14:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716

--- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Should we change invoke.texi?

diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index e099cd0b568..dd4f74fbd78 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -231,7 +231,7 @@ Necessary to bootstrap GCC.  GCC 4.8.3 or newer has
sufficient
 support for used C++11 features, with earlier GCC versions you
 might run into implementation bugs.

-Versions of GCC prior to 11 also allow bootstrapping with an ISO C++98
+Versions of GCC prior to 10.5 also allow bootstrapping with an ISO C++98
 compiler, versions of GCC prior to 4.8 also allow bootstrapping with a
 ISO C89 compiler, and versions of GCC prior to 3.4 also allow
 bootstrapping with a traditional (K&R) C compiler.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-18 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-18 13:03 [Bug bootstrap/110716] New: failed to build cross gcc 10.5 with host gcc 4.6.3 anmin_deng at yahoo dot com.tw
2023-07-18 13:07 ` [Bug bootstrap/110716] " xry111 at gcc dot gnu.org
2023-07-18 13:09 ` pinskia at gcc dot gnu.org
2023-07-18 13:18 ` xry111 at gcc dot gnu.org
2023-07-18 13:25 ` pinskia at gcc dot gnu.org
2023-07-18 14:17 ` xry111 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).