Segmentation fault while compiling GCC
Ian Lance Taylor
iant@google.com
Mon Dec 29 22:57:00 GMT 2008
sankar78 <gowrisankar.jayaraman@db.com> writes:
> I'm getting the below error while compiling gcc 3.4.6 . I keep getting this
> segmentation fault on different lines of /bin/sh every time i try doing a
> make bootstrap.
If you get different errors every time, then the mostly likely cause
is some sort of hardware problem, such as bad RAM.
> make[2]: Entering directory `/apps/gooseflow/gcc-3.4.6/gccobjdir/gcc'
> ./genmodes -h > tmp-modes.h
> /bin/sh: line 1: 4412 Segmentation fault ./genmodes -h >tmp-modes.h
If the error consistently happens when running "./genmodes" (you can
ignore the "4412") then there is a bug in gcc or there is a bug in the
compiler that you used to build the stage1 compiler. Or, since this
is x86_64, perhaps there is some problem with running a 64-bit
program, or with the assembler you are using, or with the library you
are using. In particular, do you have a 64-bit libc installed?
Ian
More information about the Gcc-help
mailing list