Hello, I tried to build 4.3.2 on AIX 5.3. The build failed in stage2: /opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/xgcc -B/opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/ -B/opt/freeware/powerpc-ibm-aix5.3.0.0/bin/ -c -O2 -I/opt/freeware/include -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../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/. -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/freeware/include insn-attrtab.c -o insn-attrtab.o ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md: In function 'internal_dfa_insn_code': ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md:148: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. gmake[3]: *** [insn-attrtab.o] Error 1 gmake[3]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build' gmake: *** [bootstrap-lean] Error 2 Bad exit status from /tmp/rpm-tmp.27170 (%build) I will upload the build log an the SPEC file. I have used IBM XLC/C++ V9 as a bootstrap for stage 1. Bye Rainer
Created attachment 16963 [details] spec file
Created attachment 16964 [details] script to start build
Created attachment 16965 [details] build log
Created attachment 16966 [details] last 250 lines build log
Hello, some additions: The same happens for genautomata.c. /opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/xgcc -B/opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/ -B/opt/freeware/powerpc-ibm-aix5.3.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../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/build -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/freeware/include -o build/genautomata.o ../../gcc-4.3.2/gcc/genautomata.c : In function 'create_automata': :6534: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. gmake[3]: *** [build/genautomata.o] Error 1 I have successfully tried to produce the preprocessed output with -E. This worked OK. After that I could compile the two preprocessed files with 4.2.4 gcc -c xxx.c ... With 4.3.2 gcc the same error happens: export PATH=/opt/freeware/src/packages/BUILD/gcc-build/prev-gcc:$PATH;xgcc -c insn-attrtab.prep.c ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md: In function 'internal_dfa_insn_code': ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md:148: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. I will upload the two files. Bye Rainer P.S.: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 32768 memory(kbytes) 32768 coredump(blocks) 2097151 nofiles(descriptors) 2000
Created attachment 16967 [details] genautomata.prep.c.gz
Created attachment 16968 [details] insn-attrtab.prep.c.gz
Can you try increasing the stack size limit when building? insn-attrtab.c compiled at -O0 is known to have a big stack size.
Hello, OK, I will rebuild with a doubled stack size. I will report back as soon as I have new results. Bye Rainer
Hello, same error: echo timestamp > s-attr /opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/xgcc -B/opt/freeware/src/packages/BUILD/gcc-build/./prev-gcc/ -B/opt/freeware/powerpc-ibm-aix5.3.0.0/bin/ -c -O2 -I/opt/freeware/include -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../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/. -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/freeware/include insn-attrtab.c -o insn-attrtab.o ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md: In function 'internal_dfa_insn_code': ../../gcc-4.3.2/gcc/config/rs6000/rs6000.md:148: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. gmake[3]: *** [insn-attrtab.o] Error 1 gmake[3]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build' gmake: *** [bootstrap-lean] Error 2 Bad exit status from /tmp/rpm-tmp.17996 (%build) root@build53 rc:130 # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 65536 <- double stack size memory(kbytes) 32768 coredump(blocks) 2097151 nofiles(descriptors) 2000 If I produce the preprocessed listing with -E the I can compile this with gcc 4.2.4. Bye Rainer
Hello, any news ? Bye Rainer
Maybe you are running out of native heap. Try with something like: export LDR_CNTRL=MAXDATA=0x40000000
Hello, OK, I will try with an extended heap. Bye Rainer
Hello, It works for me, to bootstrap GCC 4.3.3 on AIX 5.3 Regards, vladimir penev (In reply to comment #12) > Maybe you are running out of native heap. Try with something like: > > export LDR_CNTRL=MAXDATA=0x40000000 >
Hello, OK I will try gcc 4.3.3. Please could you be so kind and post your complete configure call + additional env settings (if set) ? Thanks in advance. Bye Rainer
Hello, I configured with: ../gcc-4.3.3/configure --prefix=/usr/local/4.3.3 --enable-shared --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc Additional env sets: CC=cc (I used the native compiler) LDR_CNTRL=MAXDATA=0x40000000 CONFIG_SHELL=.../bash Regards, vladimir penev (In reply to comment #15) > Hello, > OK I will try gcc 4.3.3. > > Please could you be so kind and post your complete configure call + additional > env settings (if set) ? > > Thanks in advance. > > Bye > Rainer >
Hello, gcc 4.3.4 solves this problem. Bye Rainer