[Bug target/54045] New: Building bash 4.2 fails with gcc version 4.7.1 and throughing an error message gcc:internal compiler error : Segmentation fault (program cc1).

gvyugandhar at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 20 10:19:00 GMT 2012


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

             Bug #: 54045
           Summary: Building bash 4.2 fails with gcc version 4.7.1 and
                    throughing an error message gcc:internal compiler
                    error : Segmentation fault (program cc1).
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gvyugandhar@gmail.com


I have build the root filesystem and kernel from yocto for beagle board. My
host machine is Ubuntu 12.04. My beagleboard booted up successfully using the
root filesystem and kernel. I tried to build bash-4.2 on the target
machine(beagleboard) i was get the following error message:

  ***********************************************************
          *                                                         *
          * GNU bash, version 4.2.10(1)-release (armv7l-unknown-linux-gnueabi)
          *                                                         *
          ***********************************************************

rm -f shell.o
gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"armv7l"'
-DCONF_OSTYPE='"linux-gnueabi"'
-DCONF_MACHTYPE='"armv7l-unknown-linux-gnueabi"' -DCONF_VENDOR='"unknown"'
-DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g  -c shell.c
rm -f eval.o
gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"armv7l"'
-DCONF_OSTYPE='"linux-gnueabi"'
-DCONF_MACHTYPE='"armv7l-unknown-linux-gnueabi"' -DCONF_VENDOR='"unknown"'
-DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g  -c eval.c
make[1]: Entering directory `/bash-4.2/builtins'
rm -f mkbuiltins.o
gcc -c  -DHAVE_CONFIG_H -DSHELL  -I. -I..  -I.. -I../include -I../lib -I.    -g
 mkbuiltins.c
gcc -rdynamic -g  -rdynamic -g  -o mkbuiltins mkbuiltins.o -ldl
./mkbuiltins -externfile builtext.h -structfile builtins.c \
    -noproduction -D .   ./alias.def ./bind.def ./break.def ./builtin.def
./caller.def ./cd.def ./colon.def ./command.def ./declare.def ./echo.def
./enable.def ./eval.def ./getopts.def ./exec.def ./exit.def ./fc.def
./fg_bg.def ./hash.def ./help.def ./history.def ./jobs.def ./kill.def ./let.def
./read.def ./return.def ./set.def ./setattr.def ./shift.def ./source.def
./suspend.def ./test.def ./times.def ./trap.def ./type.def ./ulimit.def
./umask.def ./wait.def ./reserved.def ./pushd.def ./shopt.def ./printf.def
./complete.def ./mapfile.def
make[1]: Leaving directory `/bash-4.2/builtins'
rm -f y.tab.o
gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"armv7l"'
-DCONF_OSTYPE='"linux-gnueabi"'
-DCONF_MACHTYPE='"armv7l-unknown-linux-gnueabi"' -DCONF_VENDOR='"unknown"'
-DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g  -c y.tab.c
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [y.tab.o] Error 4

The same kind of error i am getting when i tried to build grep,
libcurl,findutils. Can someone help me why am i getting internal compiler error
segmentation fault. I just wrote one sample hello world program and compiled on
the target it didn't through any such error and compiled successfully. I have
gone through some bugs which have the same error message and the solution is
running out of memory if that is the case tell me know how to check whether it
is running of memory and how to resolve it.



More information about the Gcc-bugs mailing list