http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50103
Bug #: 50103 Summary: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault Classification: Unclassified Product: gcc Version: 4.4.6 Status: UNCONFIRMED Severity: major Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: murt...@us.ibm.com I am trying to compile GCC 4.4.6 using xlc 11.1.0.0 on AIX 6.1 TL-05 SP-2. _1_) I use a bash script to drive the build process and the name of the script is #!/usr/bin/bash ##@@ ##@@ build-gcc446.bash ##@@ export pct="%" export RUNTIME="$(date +${pct}Y${pct}m${pct}d-${pct}H${pct}M${pct}S)" export CONFIG_SHELL=/usr/bin/bash export TOPDIR=/work export SRCDIR=${TOPDIR}/gcc-4.4.6 export OBJSRC=${TOPDIR}/objsrc-gcc-4.4.6 export LOGFILE=${TOPDIR}/logs/`basename $0`${1}-log-${RUNTIME} export PREFIX=/usr/local/gcc-4.4.6 export CC="/usr/bin/cc" export M4="/opt/freeware/bin/m4" export PATH="$PATH:/usr/java5/bin:" { echo "START: `date`" echo "=========================================" echo "PATH: $PATH" echo "ENV:" env ulimit -a echo "=========================================" if [[ ${PWD} != "${OBJSRC}" ]]; then echo " ERROR !!! This script must be run from '${OBJSRC}' directory" exit 1 fi case $1 in -config) cmd="${SRCDIR}/configure --prefix=${PREFIX} --enable-threads=aix" cmd="$cmd --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld" cmd="$cmd --with-ar=/usr/ccs/bin/ar" echo "COMMAND: $cmd" ${SRCDIR}/configure --prefix=${PREFIX} --enable-threads=aix \ --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld \ --with-ar=/usr/ccs/bin/ar echo "RC($?)" echo "=======================================" ;; -make) echo "COMMAND: 'gmake bootstrap'\n\n" gmake bootstrap echo "RC($?)" echo "=======================================" ;; -install) echo "COMMAND: 'gmake install'\n\n" gmake install echo "RC($?)" echo "=========================================" ## echo "COMMAND: 'cp ${TOPDIR}/scripts/linklib-gcc334-bs_vac7000.ksh ${PREFIX}/lib/'" ## cp ${TOPDIR}/scripts/linklib-gcc334-bs_vac7000.ksh ${PREFIX}/lib/ ## echo "RC($?)" echo "=========================================" ;; esac echo "END: `date`" } 2>&1 | tee ${LOGFILE} _2_) I invoke build-gcc446.bash -config The script completes without any issues as follows: ========================================= COMMAND: /work/gcc-4.4.6/configure --prefix=/usr/local/gcc-4.4.6 --enable-threads=aix --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/us r/ccs/bin/ld --with-ar=/usr/ccs/bin/ar checking build system type... powerpc-ibm-aix6.1.0.0 checking host system type... powerpc-ibm-aix6.1.0.0 checking target system type... powerpc-ibm-aix6.1.0.0 checking for a BSD-compatible install... /work/gcc-4.4.6/install-sh -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... /usr/bin/cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether /usr/bin/cc accepts -g... yes checking for /usr/bin/cc option to accept ANSI C... none needed checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... xlC_r checking whether we are using the GNU C++ compiler... no checking whether xlC_r accepts -g... no checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2 checking for correct version of gmp.h... yes checking for correct version of mpfr.h... yes checking for version 0.10 of PPL... no checking for correct version of CLooG... no The following languages will be built: c,c++,fortran,java,objc *** This configuration is not supported in the following subdirectories: target-libmudflap target-libssp target-libffi target-zlib target-libjava target-libada gnattools target-boehm-gc (Any other directories should still work fine.) checking for bison... bison -y checking for bison... bison checking for gm4... /opt/freeware/bin/m4 checking for flex... no checking for lex... lex checking for flex... no checking for makeinfo... no checking for expect... expect checking for runtest... no checking for ar... ar checking for as... as checking for dlltool... no checking for ld... ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... no checking for objdump... no checking for cc... cc checking for c++... no checking for g++... no checking for cxx... no checking for gxx... no checking for gcc... no checking for gcj... no checking for gfortran... no checking for ar... no checking for ar... ar checking for as... no checking for as... as checking for dlltool... no checking for dlltool... no checking for ld... no checking for ld... ld checking for lipo... no checking for lipo... no checking for nm... no checking for nm... nm checking for objdump... no checking for objdump... no checking for ranlib... no checking for ranlib... ranlib checking for strip... no checking for strip... strip checking for windres... no checking for windres... no checking for windmc... no checking for windmc... no checking where to find the target ar... host tool checking where to find the target as... host tool checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... host tool checking where to find the target gcc... just compiled checking where to find the target gcj... just compiled checking where to find the target gfortran... just compiled checking where to find the target ld... host tool checking where to find the target lipo... host tool checking where to find the target nm... host tool checking where to find the target objdump... host tool checking where to find the target ranlib... host tool checking where to find the target strip... host tool checking where to find the target windres... host tool checking where to find the target windmc... host tool checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile RC(0) ======================================= END: Tue Aug 16 18:45:25 CDT 2011 _3_) I invoke I invoke build-gcc446.bash -make ========================================= COMMAND: 'gmake bootstrap'\n\n echo stage3 > stage_final gmake[1]: Entering directory `/work/objsrc-gcc-4.4.6' gmake[2]: Entering directory `/work/objsrc-gcc-4.4.6' gmake[2]: Leaving directory `/work/objsrc-gcc-4.4.6' gmake[2]: Entering directory `/work/objsrc-gcc-4.4.6' Configuring stage 1 in ./intl ............ ................ .................... (several thousands of log) ........................... /work/objsrc-gcc-4.4.6/./prev-gcc/xgcc -B/work/objsrc-gcc-4.4.6/./prev-gcc/ -B/usr/local/gcc-4.4.6/powerpc-ibm-aix6.1.0.0/bin/ -c -g -O2 -DI N_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-at tribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/work/gcc-4.4.6/gcc -I/work/gcc-4.4 .6/gcc/. -I/work/gcc-4.4.6/gcc/../include -I/work/gcc-4.4.6/gcc/../libcpp/include -I/work/gcc-4.4.6/gcc/../libdecnumber -I/work/gcc-4.4.6/gc c/../libdecnumber/dpd -I../libdecnumber /work/gcc-4.4.6/gcc/dummy-checksum.c -o dummy-checksum.o /work/objsrc-gcc-4.4.6/./prev-gcc/xgcc -B/work/objsrc-gcc-4.4.6/./prev-gcc/ -B/usr/local/gcc-4.4.6/powerpc-ibm-aix6.1.0.0/bin/ -c -g -O2 -DI N_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-at tribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/work/gcc-4.4.6/gcc -I/work/gcc-4.4 .6/gcc/. -I/work/gcc-4.4.6/gcc/../include -I/work/gcc-4.4.6/gcc/../libcpp/include -I/work/gcc-4.4.6/gcc/../libdecnumber -I/work/gcc-4.4.6/gc c/../libdecnumber/dpd -I../libdecnumber /work/gcc-4.4.6/gcc/main.c -o main.o /work/objsrc-gcc-4.4.6/./prev-gcc/xgcc -B/work/objsrc-gcc-4.4.6/./prev-gcc/ -B/usr/local/gcc-4.4.6/powerpc-ibm-aix6.1.0.0/bin/ -c -g -O2 -DI N_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-at tribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/work/gcc-4.4.6/gcc -I/work/gcc-4.4 .6/gcc/. -I/work/gcc-4.4.6/gcc/../include -I/work/gcc-4.4.6/gcc/../libcpp/include -I/work/gcc-4.4.6/gcc/../libdecnumber -I/work/gcc-4.4.6/gc c/../libdecnumber/dpd -I../libdecnumber insn-attrtab.c -o insn-attrtab.o /work/gcc-4.4.6/gcc/config/rs6000/rs6000.md: In function 'insn_default_latency': /work/gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: 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 `/work/objsrc-gcc-4.4.6/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/work/objsrc-gcc-4.4.6' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/work/objsrc-gcc-4.4.6' gmake: *** [bootstrap] Error 2 RC(2) ======================================= END: Tue Aug 16 19:41:01 CDT 2011 The bootstrap process has failed at the same place two times and is a reproducible. Is this a known issue and is there a fix available? Do you want me to submit full bug report ? Thank you for your help and support in this matter.