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

EML <elowe at elowe dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |elowe at elowe dot com

--- Comment #17 from EML <elowe at elowe dot com> ---
I have a working 4.9.3 from following directions in this bug and others - it
does appear to work and generates executables that execute correctly

So I thought I would attempt to use it to bootstrap GCC 8.3.0

I can compile the stage1 compiler xgcc - however, the stage1 compiler generates
executables the immediately crash. It will happily build libgcc, but cannot
generate correct executables and will not finish the "configure" step for
libstdc++ (which attempts to compile and run various conftest.c programs) -
these are pretty simple programs. I also tried to compile a simple "Hello
World" program, but it crashes immediately when run.

Note that in certain cases, the MPFR library won't build depending on the
CFLAGS used (in particular the default -g -O2), this is due to problems with
thread local storage. You can work around this by configuring MPFR with
--disable-thread-safe

I also tried configuring gcc with --disable-tls (there was no change in end
behaviour though

I have tried various options for building stage1 (STAGE1_CFLAGS,
STAGE1_CXXFLAGS)

default (just run make - this builds with -g -O2)
-g -O0
-g -O0 -D_XOPEN_SOURCE_EXTENSION

I also managed to build a 64bit version of the stage1 compiler. This also
cannot generate executable code

In short, gcc 8.3, whether 32 or 64, when bootstrapped with gcc 4.9.3 cannot
produce correct executables.

Reply via email to