This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Segmentation fault while compiling GCC
- From: Ian Lance Taylor <iant at google dot com>
- To: sankar78 <gowrisankar dot jayaraman at db dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 29 Dec 2008 13:34:29 -0800
- Subject: Re: Segmentation fault while compiling GCC
- References: <21202409.post@talk.nabble.com>
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