When bootstrapping for a new system based off of HLFS using:

Binutils 2.18
Glibc 2.7
Gcc 4.3.0-20080228 (checked out from gcc-4_3-branch)

The host os system for build is:

Binutils 2.17
Glibc 2.5
Gcc 4.1.2

Build order was:

pass 1 4.3.0 bootstrap toolchain with configure of:
  --prefix=/tools \
  --with-local-prefix=/tools --with-pic --disable-nls \
  --disable-libmudflap --disable-libssp \
  --enable-languages=c --enable-checking \
  --enable-werror --enable-bootstrap

glibc 2.7 with a configure of:
  --prefix=/tools \
  --with-binutils=/tools/bin --with-headers=/tools/include \
  --enable-kernel=2.6.0 --enable-bind-now --enable-add-ons \
  --without-gd --with-selinux --with-tls --disable-profile

pass 2 4.3.0 bootstrap toolchain with configure of:
   --prefix=/tools \
   --with-local-prefix=/tools --enable-shared \
   --enable-clocale=gnu --enable-threads=posix \
   --enable-__cxa_atexit --enable-languages=c,c++ \
   --with-lib-path=/tools/lib --disable-libstdcxx-pch \
   --enable-checking --disable-werror

When bootstrapping pass 2 the xgcc for stage1 will go into an infinite loop and
starts to eat all available memory when trying to compile this simple program:

int main(void)
{
  ;
  return 0;
}

running the stage1 xgcc under gdb shows it getting stuck in __kernel_vsyscall.

I can pull the 4.3.0 snapshot out of my build system and replace it with 4.2.3
and it builds with no problems.

I've tried to use binutils-2.18.50.0.4 and glibc-2.7.90 with Fedora patches as
well with no luck (4.3.0 still has the same infinite loop).

I'm thinking from my results that the problem is some where with 4.3.0 being
used to compile 4.3.0, since the initial pass 1 compiler bootstraps ok and is
being built with 4.1.2, and also the 4.2.3 compiles just fine with the
glibc-2.7 and binutils-2.18?

I had to move on so I went forward with 4.2.3 and continued with the build, so
when I get a chance I'll rerun the build with 4.3.0 and pull the build logs and
gdb output.


-- 
           Summary: stage2 bootstrap xgcc infinite loop
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oblivian at users dot sourceforge dot net
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35451

Reply via email to