build/genattr /mtg/arc/gcc-4.3.2/gcc/config/rs6000/rs6000.md \ insn-conditions.md > tmp-attr.h /mtg/TOOL/powerpc-AIX5.2/bin/bash /mtg/arc/gcc-4.3.2/gcc/../move-if-change tmp-attr.h insn-attr.h echo timestamp > s-attr /mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/xgcc -B/mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/ -B/mtg/TOOL/gcc-4.3.2/powerpc-AIX5.2/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/mtg/arc/gcc-4.3.2/gcc -I/mtg/arc/gcc-4.3.2/gcc/. -I/mtg/arc/gcc-4.3.2/gcc/../include -I./../intl -I/mtg/arc/gcc-4.3.2/gcc/../libcpp/include -I/mtg/TOOL/powerpc-AIX5.2/include -I/mtg/TOOL/include -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber insn-attrtab.c -o insn-attrtab.o /mtg/arc/gcc-4.3.2/gcc/config/rs6000/rs6000.md: In function 'internal_dfa_insn_code': /mtg/arc/gcc-4.3.2/gcc/config/rs6000/rs6000.md:148: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [insn-attrtab.o] Error 1 make[4]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2/gcc' make[3]: *** [all-stage2-gcc] Error 2 make[3]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' make[2]: *** [stage2-bubble] Error 2 make[2]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' cd gcc-4.3.2-powerpc-AIX5.2 /mtg/TOOL/powerpc-AIX5.2/bin/bash /mtg/arc/gcc-4.3.2/configure --prefix=/mtg/TOOL/gcc-4.3.2 --exec-prefix=/mtg/TOOL/gcc-4.3.2/powerpc-AIX5.2 --with-gmp=/mtg/TOOL/powerpc-AIX5.2 --with-mpfr=/mtg/TOOL After researching the problem on the internet I found some reports that indicated that this file was too large in some environments. -rw-rw-r-- 1 trudeajo fhaf 6278 2008-10-03 14:07 insn-attr.h -rw-rw-r-- 1 trudeajo fhaf 1393534 2008-10-03 14:07 insn-attrtab.c I attempted to reduce the size by removing some includes from rs6000.md: --- gcc/config/rs6000/rs6000.md.~1~ 2008-07-03 19:32:23.000000000 -0700 +++ gcc/config/rs6000/rs6000.md 2008-10-02 16:56:12.000000000 -0700 @@ -159,10 +159,6 @@ (include "rios2.md") (include "rs64.md") (include "mpc.md") -(include "40x.md") -(include "440.md") -(include "603.md") -(include "6xx.md") (include "7xx.md") (include "7450.md") (include "8540.md") This allowed insn-attrtab.c to compile, however the build failed on the very next compile: build/genattr /mtg/arc/gcc-4.3.2/gcc/config/rs6000/rs6000.md \ insn-conditions.md > tmp-attr.h /mtg/TOOL/powerpc-AIX5.2/bin/bash /mtg/arc/gcc-4.3.2/gcc/../move-if-change tmp-attr.h insn-attr.h echo timestamp > s-attr /mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/xgcc -B/mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/ -B/mtg/TOOL/gcc-4.3.2/powerpc-AIX5.2/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/mtg/arc/gcc-4.3.2/gcc -I/mtg/arc/gcc-4.3.2/gcc/. -I/mtg/arc/gcc-4.3.2/gcc/../include -I./../intl -I/mtg/arc/gcc-4.3.2/gcc/../libcpp/include -I/mtg/TOOL/powerpc-AIX5.2/include -I/mtg/TOOL/include -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber insn-attrtab.c -o insn-attrtab.o /mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/xgcc -B/mtg/arc/gcc-4.3.2-powerpc-AIX5.2/./prev-gcc/ -B/mtg/TOOL/gcc-4.3.2/powerpc-AIX5.2/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/mtg/arc/gcc-4.3.2/gcc -I/mtg/arc/gcc-4.3.2/gcc/build -I/mtg/arc/gcc-4.3.2/gcc/../include -I./../intl -I/mtg/arc/gcc-4.3.2/gcc/../libcpp/include -I/mtg/TOOL/powerpc-AIX5.2/include -I/mtg/TOOL/include -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber -I/mtg/arc/gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber -o build/genautomata.o /mtg/arc/gcc-4.3.2/gcc/genautomata.c /mtg/arc/gcc-4.3.2/gcc/genautomata.c: In function 'create_automata': /mtg/arc/gcc-4.3.2/gcc/genautomata.c:6534: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [build/genautomata.o] Error 1 make[4]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2/gcc' make[3]: *** [all-stage2-gcc] Error 2 make[3]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' make[2]: *** [stage2-bubble] Error 2 make[2]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/mtg/arc/gcc-4.3.2-powerpc-AIX5.2' I also tried the latest 4.3 snapshot with the same results. GCC 4.2.4 bootstrap is successful on this host.
What is your stack size limit set to?
Created attachment 16460 [details] Complete transcript of failed bootstrap
(In reply to comment #1) > What is your stack size limit set to? > /mtg/arc$ /usr/bin/ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 4194304 memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) 8192 /mtg/arc$
This probably is the data segment overflow that occurred on mainline with the additional dfa descriptions. For some reason AIX 5.2 is hitting it sooner and on GCC itself. You probably need to add -Wl,-bmaxdata:0x20000000 to LDFLAGS.
Is this issue a GCC bug? Or does comment #4 resolve the problem?
No response and there are reports of GCC bootstrap on AIX 5.2, so this is fixed.