This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cc1: out of memory
- From: Amine Chelghaf <amine_chelghaf at yahoo dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 21 Jan 2007 21:42:18 +0100 (CET)
- Subject: cc1: out of memory
Hi,
I have Ubuntu linux and I am trying to install Linux
from scratch (LFS).
I have a pc with intel 686 cpu.
I follow instructions from page :
http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html
So I downloaded the latest gcc from gnu.org
directory. It is version 4.4.1.
Then I created gcc-build directory.
Then I run :
../gcc-4.1.1/configure --prefix=/tools \
--libexecdir=/tools/lib --with-local-prefix=/tools
\
--disable-nls --enable-shared --enable-languages=c
this runs ok.
I run :
make bootstrap
then I got this error after some time :
make[1]: Entering directory
`/mnt/lfs/sources/gcc-build/gcc'
make CC=" stage1/xgcc -Bstage1/
-B/tools/i686-pc-linux-gnu/bin/" CC_FOR_BUILD="
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/"
\
STAGE_PREFIX=stage1/ \
ADAFLAGS="" CFLAGS="-O2 -g
-fomit-frame-pointer" LDFLAGS=""
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
STRICT_WARN="-pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute " libdir=/tools/lib
LANGUAGES="c gcov gcov-dump "
MAKEINFO="/mnt/lfs/sources/gcc-4.1.1/missing makeinfo
--split-size=5000000" MAKEINFOFLAGS="--no-split"
MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
CFLAGS="-O2 -g -fomit-frame-pointer"
WERROR=""
make[2]: Entering directory
`/mnt/lfs/sources/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/
-O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I.
-I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include -c
insn-attrtab.c \
-o insn-attrtab.o
cc1: out of memory allocating 13495072 bytes after a
total of 30965760 bytes
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory
`/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory
`/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
I guess this a bug, so should I use oldest version of
gcc ?
And should I report this bug ?
( I am new to this, sorry).
Thanks in advance
BR, Amine
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com