public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
@ 2011-08-17  5:05 murthys at us dot ibm.com
  2011-08-17  8:21 ` [Bug bootstrap/50103] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: murthys at us dot ibm.com @ 2011-08-17  5:05 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: murthys@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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
@ 2011-08-17  8:21 ` rguenth at gcc dot gnu.org
  2011-08-17 17:17 ` murthys at us dot ibm.com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-17  8:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-08-17
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-17 08:15:49 UTC ---
As you are experiencing this when building stage2 it might be that xlc 11.1.0.0
miscompiles the stage1 compiler.  Please try setting STAGE1_CFLAGS to some
option that disables any optimization for xlc.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
  2011-08-17  8:21 ` [Bug bootstrap/50103] " rguenth at gcc dot gnu.org
@ 2011-08-17 17:17 ` murthys at us dot ibm.com
  2011-08-24 15:07 ` murthys at us dot ibm.com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: murthys at us dot ibm.com @ 2011-08-17 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Sri <murthys at us dot ibm.com> 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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
  2011-08-17  8:21 ` [Bug bootstrap/50103] " rguenth at gcc dot gnu.org
  2011-08-17 17:17 ` murthys at us dot ibm.com
@ 2011-08-24 15:07 ` murthys at us dot ibm.com
  2011-08-26 14:38 ` murthys at us dot ibm.com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: murthys at us dot ibm.com @ 2011-08-24 15:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Sri <murthys at us dot ibm.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
                   ` (2 preceding siblings ...)
  2011-08-24 15:07 ` murthys at us dot ibm.com
@ 2011-08-26 14:38 ` murthys at us dot ibm.com
  2011-08-27 13:38 ` murthys at us dot ibm.com
  2012-01-10 15:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: murthys at us dot ibm.com @ 2011-08-26 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Sri <murthys at us dot ibm.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
                   ` (3 preceding siblings ...)
  2011-08-26 14:38 ` murthys at us dot ibm.com
@ 2011-08-27 13:38 ` murthys at us dot ibm.com
  2012-01-10 15:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: murthys at us dot ibm.com @ 2011-08-27 13:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Sri <murthys at us dot ibm.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/50103] gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault
  2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
                   ` (4 preceding siblings ...)
  2011-08-27 13:38 ` murthys at us dot ibm.com
@ 2012-01-10 15:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 15:13 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 15:12:56 UTC ---
Thus, not a GCC bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-10 15:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-17  5:05 [Bug bootstrap/50103] New: gcc-4.4.6/gcc/config/rs6000/rs6000.md:153: internal compiler error: Segmentation fault murthys at us dot ibm.com
2011-08-17  8:21 ` [Bug bootstrap/50103] " rguenth at gcc dot gnu.org
2011-08-17 17:17 ` murthys at us dot ibm.com
2011-08-24 15:07 ` murthys at us dot ibm.com
2011-08-26 14:38 ` murthys at us dot ibm.com
2011-08-27 13:38 ` murthys at us dot ibm.com
2012-01-10 15:13 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).