* gcc 4.0.1 Memory error during make on AIX 5.0.0.8 using gcc 3.3.3
@ 2005-08-08 0:18 ` AIX_DOS_OS2
2005-08-10 14:54 ` Problem compiling gcc 4.0.1 on AIX 5.0.0.8 David Edelsohn
0 siblings, 1 reply; 3+ messages in thread
From: AIX_DOS_OS2 @ 2005-08-08 0:18 UTC (permalink / raw)
To: gcc-help
Hi,
Any one have any idea why I am getting the following error exit?
/usr/local/bin/gcc -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE -o
build/genattrtab \
build/genattrtab.o build/genautomata.o \
build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o
build/insn-conditions.o build/print-rtl.o build/errors.o \
build/varray.o ../build-powerpc-ibm-aix5.1.0.0/libiberty/libiberty.a -lm
build/genattrtab /tmp/GCC/Source/gcc-4.0.1/gcc/config/rs6000/rs6000.md > tmp-attrtab.c
out of memory allocating 80016 bytes after a total of 4161652476 bytes
make[2]: *** [s-attrtab] Error 1
make[2]: Leaving directory `/tmp/GCC/Source/BuildDir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/tmp/GCC/Source/BuildDir/gcc'
make: *** [bootstrap] Error 2
I have tried running "make" over 6 times and keep getting this message.
I have no idea what is going on.
As far as I can tell I have unlimited stack space and such.
I am running this build as root. I am using the following "configure"
and "make" calls. I have altered the configure calling parameters with no
change in the end result. My last attempt was to add the line beginning
--with-cpu... in the configure and by removing -lean from the bootstrap
parameter in the make.
/tmp/GCC/Source/gcc-4.0.1/configure --disable-nls --with-libiconv-prefix=/usr \
--enable-language=c,c++,f95,objc --disable-shared --disable-multilib --enable-threads=aix \
--with-cpu=power4 --with-system-zlib
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean
Bye,
Dwight
^ permalink raw reply [flat|nested] 3+ messages in thread
* Problem compiling gcc 4.0.1 on AIX 5.0.0.8
@ 2005-08-09 2:54 AIX_DOS_OS2
2005-08-08 0:18 ` gcc 4.0.1 Memory error during make on AIX 5.0.0.8 using gcc 3.3.3 AIX_DOS_OS2
0 siblings, 1 reply; 3+ messages in thread
From: AIX_DOS_OS2 @ 2005-08-09 2:54 UTC (permalink / raw)
To: gcc-help
Help!
I am unable to compile gcc 4.0.1 on AIX 5.0.0.8 because:
"out of memory allocating 80016 bytes after a total of 4161652492 bytes"
This message appear while executing the following commands:
********************* configure ************************
/mkcd/GCC/Source/gcc-4.0.1/configure --disable-nls --with-libiconv-prefix=/usr
--enable-languages=c,c++,f95 --disable-shared --disable-multilib --enable-threads=aix
********************* make ************************
/usr/local/bin/make --debug='b,v,i' CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap-lean | tee /tmp/GCCmake
This is the last section section of output from make before it error exits:
Successfully remade target file `build/varray.o'.
Pruning file `../build-powerpc-ibm-aix5.1.0.0/libiberty/libiberty.a'.
Finished prerequisites of target file `build/genattrtab'.
Must remake target `build/genattrtab'.
/usr/local/bin/gcc -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE -o
build/genattrtab \
build/genattrtab.o build/genautomata.o \
build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o
build/insn-conditions.o build/print-rtl.o build/errors.o \
build/varray.o ../build-powerpc-ibm-aix5.1.0.0/libiberty/libiberty.a -lm
Successfully remade target file `build/genattrtab'.
Finished prerequisites of target file `s-attrtab'.
Must remake target `s-attrtab'.
build/genattrtab /mkcd/GCC/Source/gcc-4.0.1/gcc/config/rs6000/rs6000.md > tmp-attrtab.c
out of memory allocating 80016 bytes after a total of 4161652492 bytes
make[2]: *** [s-attrtab] Error 1
make[2]: Leaving directory `/mkcd/GCC/Source/BuildDir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mkcd/GCC/Source/BuildDir/gcc'
make: *** [bootstrap-lean] Error 2
I do not know what this output from make means:
build/genattrtab /mkcd/GCC/Source/gcc-4.0.1/gcc/config/rs6000/rs6000.md > tmp-attrtab.c
Can't imagine what it would be creating that is so large! :(
Any assistance would be GREATLY appreciated!
Bye,
Dwight
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem compiling gcc 4.0.1 on AIX 5.0.0.8
2005-08-08 0:18 ` gcc 4.0.1 Memory error during make on AIX 5.0.0.8 using gcc 3.3.3 AIX_DOS_OS2
@ 2005-08-10 14:54 ` David Edelsohn
0 siblings, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2005-08-10 14:54 UTC (permalink / raw)
To: AIX_DOS_OS2; +Cc: gcc-help
>>>>> Dwight writes:
> out of memory allocating 80016 bytes after a total of 4161652492 bytes
> As far as I can tell I have unlimited stack space and such. I am
> running this build as root.
This specific case is mentioned in the "Host/Target specific
installation notes for GCC" section on AIX:
out of memory bootstrap failures may indicate a problem with process
resource limits (ulimit). Hard limits are configured in the
/etc/security/limits system configuration file.
On AIX, root has resource limits like every other user. Make sure
that you are viewing the hard limits, not the soft limits. I suspect that
the hard limits are capped. Stack, data, and memory need to have large
limits to bootstrap GCC. Also, building as root probably is not a good
idea.
By the way, the 4161652492 does not represent the total amount of
memory currently allocated, some of the memory has been returned during
the process execution.
I also would recommend not changing the Make options.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-10 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 2:54 Problem compiling gcc 4.0.1 on AIX 5.0.0.8 AIX_DOS_OS2
2005-08-08 0:18 ` gcc 4.0.1 Memory error during make on AIX 5.0.0.8 using gcc 3.3.3 AIX_DOS_OS2
2005-08-10 14:54 ` Problem compiling gcc 4.0.1 on AIX 5.0.0.8 David Edelsohn
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).