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

             Bug #: 50275
           Summary: [4.6 regression] libgcc build failure on LM32
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: phil...@philpem.me.uk


When building GCC 4.6.0 or 4.6.1 on x86_64 for lm32-elf, libgcc fails to build.

Last few lines of the build log:
checking whether we are using the GNU C compiler... yes
checking whether
/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/./gcc/xgcc
-B/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/./gcc/ -nostdinc
-B/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/lm32-elf/newlib/
-isystem
/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/lm32-elf/newlib/targ-include
-isystem /home/philpem/gcc/build-20110902-105609/gcc-4.6.0/newlib/libc/include
-B/opt/toolchains/lm32-elf/lm32-elf/bin/
-B/opt/toolchains/lm32-elf/lm32-elf/lib/ -isystem
/opt/toolchains/lm32-elf/lm32-elf/include -isystem
/opt/toolchains/lm32-elf/lm32-elf/sys-include    accepts -g... yes
checking for /home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/./gcc/xgcc
-B/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/./gcc/ -nostdinc
-B/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/lm32-elf/newlib/
-isystem
/home/philpem/gcc/build-20110902-105609/gcc-4.6.0/build/lm32-elf/newlib/targ-include
-isystem /home/philpem/gcc/build-20110902-105609/gcc-4.6.0/newlib/libc/include
-B/opt/toolchains/lm32-elf/lm32-elf/bin/
-B/opt/toolchains/lm32-elf/lm32-elf/lib/ -isystem
/opt/toolchains/lm32-elf/lm32-elf/include -isystem
/opt/toolchains/lm32-elf/lm32-elf/sys-include    option to accept ISO C89...

At this point, 'cc1' starts consuming massive amounts of RAM and seems to get
stuck in an infinite loop. The only way out is to force a SIGINT (ctrl-c) and
kill it off, kill -9, or reboot.

This appears to be similar to bug 46898 on 4.6.0.


Build commands used:

../configure --prefix=/opt/toolchains/lm32-elf --target=lm32-elf
--enable-languages=c,c++ --with-newlib --enable-sjlj-exceptions
make
make install


Test results:
  4.5.3 -- OK
  4.6.0 -- bug present
  4.6.1 -- bug present

Reply via email to