[Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
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
[Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50103 --- Comment #2 from Sri 2011-08-17 17:00:34 UTC --- Hi Richard: Thank you for your response. I looked at the documentation for xlc and by default the optimizations are turned off http://publib.boulder.ibm.com/infocenter/comphelp/v111v131/index.jsp?topic=/com.ibm.xlc111.aix.doc/compiler_ref/opt_strict.html Defaults -qnooptimize or -O0 or -qoptimize=0 Please let me know if you have more suggestion to resolve this issue.
[Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50103 --- Comment #3 from Sri 2011-08-24 15:02:15 UTC --- I tried with -O0 and also tried with a different version of the compiler - I was using Vac 11.1.0.0 when I originally reported the problem. I changed to 9.0.0.16 and even with that compiler the bootstrap fails at the same place with the same message. Can you please suggest the next step in debugging this issue? Thank you. Sridhar
[Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50103 --- Comment #4 from Sri 2011-08-26 14:35:45 UTC --- Hi Richard: I came across this URL that seems to address the issue I am dealing with: http://code.redbrain.co.uk/cgit.cgi/gcc-dev/tree/gcc/ChangeLog?h=documentation&id=168023c94f697cb34b098b3715917dae53eb48f1 Have you seen this and if not I would request you to take a look at it and advise accordingly. Sri
[Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50103 --- Comment #5 from Sri 2011-08-27 13:13:05 UTC --- Hi Richard Here is the answer to the problem I reported: http://gcc.gnu.org/install/specific.html#x-ibm-aix I will need fixes for AIX 6.1 APAR IZ98732 since I am at TL05 I have a PMR open with Austin and working with them to get an I-FIX so that I could beta test the APAR. Will let you know how it goes. Sri
[Bug c/50042] New: bootstrap step fails while compiling GCC 4.0.2 on AIX 6.1 TL-05 SP-2 using XLC 11.1.0.0 Compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50042 Bug #: 50042 Summary: bootstrap step fails while compiling GCC 4.0.2 on AIX 6.1 TL-05 SP-2 using XLC 11.1.0.0 Compiler Classification: Unclassified Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: murt...@us.ibm.com I am trying to compile GCC 4.0.2 using xlc 11.1.0.0 on AIX 6.1 TL-05 SP-2. config.guess shipped with 4.0.2 was distribution was returning incorrect value $ ./config.guess rs6000-ibm-aix I replaced it with the version of config.guess shipped with automake-1.11 . the new script would return the correct value $ ./config.guess powerpc-ibm-aix6.1.0.0 I am invoking the following command: 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.0.2 export OBJSRC=${TOPDIR}/objsrc-gcc-4.0.2 export LOGFILE=${TOPDIR}/logs/`basename $0`${1}-log-${RUNTIME} export PREFIX=/opt/web/gcc-4.0.2-bs-vac-11.1.0.0 export COMP_DIR="/usr/vac" export CC="${COMP_DIR}/bin/cc" { echo "START: `date`" echo "=" if [[ ${PWD} != "${OBJSRC}" ]]; then echo " ERROR !!! This script must be run from '${OBJSRC}' directory" exit 1 fi 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 "===" echo "COMMAND: 'gmake bootstrap'\n\n" gmake bootstrap echo "RC($?)" exit 0 } _1_) The configure completes with ignorable errors: START: Wed Aug 10 21:49:56 CDT 2011 = COMMAND: /work/gcc-4.0.2/configure --prefix=/opt/web/gcc-4.0.2-bs-vac-11.1.0.0 --enable-threads=aix --disable-nls --with-as=/usr/c cs/bin/as --with-ld=/usr/ccs/bin/ld --with-ar=/usr/ccs/bin/ar loading cache ./config.cache checking host system type... powerpc-ibm-aix6.1.0.0 checking target system type... powerpc-ibm-aix6.1.0.0 checking build system type... powerpc-ibm-aix6.1.0.0 checking for a BSD compatible install... /work/gcc-4.0.2/install-sh -c checking whether ln works... (cached) yes checking whether ln -s works... (cached) yes checking for gcc... (cached) /usr/vac/bin/cc checking whether the C compiler (/usr/vac/bin/cc ) works... yes checking whether the C compiler (/usr/vac/bin/cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) no checking whether /usr/vac/bin/cc accepts -g... (cached) yes checking for gnatbind... no checking whether compiler driver understands Ada... (cached) no checking how to compare bootstrapped objects... (cached) tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2 checking for correct version of gmp.h... no The following languages will be built: c,c++,java,objc *** This configuration is not supported in the following subdirectories: target-libmudflap target-libffi target-boehm-gc target-zlib target-libjava target-libada target-libgfortran (Any other directories should still work fine.) checking for bison... no checking for bison... (cached) yacc checking for gm4... (cached) m4 checking for flex... no checking for flex... (cached) lex checking for makeinfo... no checking for powerpc-ibm-aix6.1.0.0-ar... no checking for ar... (cached) ar checking for powerpc-ibm-aix6.1.0.0-as... no checking for as... (cached) as checking for powerpc-ibm-aix6.1.0.0-dlltool... no checking for dlltool... (cached) dlltool checking for powerpc-ibm-aix6.1.0.0-ld... no checking for ld... (cached) ld checking for powerpc-ibm-aix6.1.0.0-nm... no checking for nm... (cached) nm checking for powerpc-ibm-aix6.1.0.0-ranlib... no checking for ranlib... (cached) ranlib checking for powerpc-ibm-aix6.1.0.0-windres... no checking for windres... (cached) windres checking for powerpc-ibm-aix6.1.0.0-objcopy... no checking for objcopy... (cached) objcopy checking for powerpc-ibm-aix6.1.0.0-objdump... no checking for objdump... (cached) objdump checking for powerpc-ibm-aix6.1.0.0-ar... no checking for ar... (cached) ar checking for powerpc-ibm-aix6.1.0.0-as... no checking for as... (cached) as checking for powerpc-ibm-aix6.1.0.0-dlltool... no checking for dlltool... (cached) dlltool checking for powerpc-ibm-aix6.1.0.0-ld... no checking for ld... (cached) ld checking for powerpc-ibm-aix6.1.0.0-nm... no checking for nm... (cached) nm checking for powerpc-ibm-aix6.1.0.0-ranlib... no checking for ranlib... (cached) ranlib checking for powerpc-ibm-aix6.1.0.0-windr
[Bug c/50042] bootstrap step fails while compiling GCC 4.0.2 on AIX 6.1 TL-05 SP-2 using XLC 11.1.0.0 Compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50042 --- Comment #1 from Sri 2011-08-11 05:39:51 UTC --- I came across the similar issue being reported: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1
[Bug c/50042] bootstrap step fails while compiling GCC 4.0.2 on AIX 6.1 TL-05 SP-2 using XLC 11.1.0.0 Compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50042 Sri changed: What|Removed |Added Severity|normal |major
[Bug bootstrap/50042] bootstrap step fails while compiling GCC 4.0.2 on AIX 6.1 TL-05 SP-2 using XLC 11.1.0.0 Compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50042 --- Comment #4 from Sri 2011-08-11 14:07:15 UTC --- Hi Andrew and Richard: Thank you for the response. I will trying building GCC 4.4.6 under the same environment and see if things go smooth.