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

--- Comment #80 from EML <elowe at elowe dot com> ---
Starting from the top:

I have applied my patch in comment 63
I have applied dave's patch in comment 72
I have applied #undef MAKE_DECL_ONE_ONLY patch

My configure line is:
../gcc-8.3.0/configure --prefix=/usr/local/gcc8.3 --with-as=/usr/local/bin/as
--without-gnu-ld --disable-nls --disable-libgomp --disable-libgcj
--enable-shared --enable-threads=posix --with-gnu-as --with-ld=/usr/ccs/bin/ld
--enable-languages=c,c++


My Make line is:
make  STAGE1_CFLAGS="-O0 -g -D_XOPEN_SOURCE_EXTENDED" STAGE1_CXXFLAGS="-O0 -g
-D_XOPEN_SOURCE_EXTENDED" CFLAGS_FOR_TARGET="-O0 -g -D_XOPEN_SOURCE_EXTENDED"
STAGE1_TFLAGS="-O0 -g -D_XOPEN_SOURCE_EXTENDED"
BOOT_CFLAGS="-D_XOPEN_SOURCE_EXTENDED"


My "system" compiler is GCC 4.9.3:
Target: ia64-hp-hpux11.31
Configured with: ../gcc-4.9.3/configure --without-gnu-ld
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-shared
--enable-threads=posix --disable-libgomp --enable-languages=c,c++
SED=/usr/local/bin/sed AWK=/usr/local/bin/gawk LDFLAGS=-lunwind
AS=/usr/local/bin/as
Thread model: posix
gcc version 4.9.3 (GCC) 



During stage0 - MPFR will ICE in GCC4.9.3 due to TLS. You need to go into the
MPFR directory and re-run the same configure line from config.log, but add
--disable-thread-safe.

The stage1 compiler will now build. Woot managed to build some version of gcc
8.3

During stage1 - MPFR will ICE in the stage1 xgcc also due to TLS. Again you
need to --disable-thread-safe for MPFR (making sure to set CC correctly)

The stage2 compiler will now build - hey it managed to build itself.

The stage2 compiler will ICE while building
../../../../gcc-8.3.0/libstdc++-v3/libsupc++/array_type_info.cc 

well that was unexpected, since it did build itself once, but it failed
apparently while building stage3.

Reply via email to