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 <==