public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.2.2 fails to compile file on aix 5.2 with "cc1plus: out of  memory allocating", works without optimization
@ 2008-01-10  5:38 Thomas Mittelstaedt
  2008-01-15  9:24 ` [RESOLVED] " Thomas Mittelstaedt
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Mittelstaedt @ 2008-01-10  5:38 UTC (permalink / raw)
  To: gcc-bugs; +Cc: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

Hi,

I have trouble compiling a file with optimizations. Without -O2, it 
compiles. gcc 4.1 does compile it with -O2.
I have attached the preprocessed source.


cd /localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/Qt/src/script/
make -f Makefile_projects
    g++ -c -mpowerpc -fpermissive 
-I/localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/openssl/include 
-mminimal-toc -O2 -Wall -W -D_THREAD_SAFE -DQT_SHARED 
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_SCRIPT_LIB 
-DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII 
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT 
-DQ_SCRIPT_DIRECT_CODE -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE 
-D_LARGEFILE_SOURCE -I../../mkspecs/aix-g++ -I. -I../../include/QtCore 
-I../../include/QtCore -I../../include -I../../include/QtScript 
-I.moc/release-shared -I.uic/release-shared -o 
.obj/release-shared/qscriptcontext_p.o qscriptcontext_p.cpp

cc1plus: out of memory allocating 24969464 bytes after a total of 
247167968 bytes
make: 1254-004 The error code from the last command is 1.



[-- Attachment #2: qscriptcontext_p.pp.gz --]
[-- Type: application/x-gzip, Size: 221847 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RESOLVED] gcc 4.2.2 fails to compile file on aix 5.2 with "cc1plus:  out of  memory allocating", works without optimization
  2008-01-10  5:38 gcc 4.2.2 fails to compile file on aix 5.2 with "cc1plus: out of memory allocating", works without optimization Thomas Mittelstaedt
@ 2008-01-15  9:24 ` Thomas Mittelstaedt
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Mittelstaedt @ 2008-01-15  9:24 UTC (permalink / raw)
  To: gcc-help

Set environment variable LDR_CNTRL to something like
export LDR_CNTRL=MAXDATA=0x80000000
Then it did compile.
See also: http://www.ibm.com/developerworks/eserver/articles/aix4java1.html

Thomas Mittelstaedt schrieb:
> Hi,
>
> I have trouble compiling a file with optimizations. Without -O2, it 
> compiles. gcc 4.1 does compile it with -O2.
> I have attached the preprocessed source.
>
>
> cd /localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/Qt/src/script/
> make -f Makefile_projects
>     g++ -c -mpowerpc -fpermissive 
> -I/localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/openssl/include 
> -mminimal-toc -O2 -Wall -W -D_THREAD_SAFE -DQT_SHARED 
> -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_SCRIPT_LIB 
> -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII 
> -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT 
> -DQ_SCRIPT_DIRECT_CODE -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE 
> -D_LARGEFILE_SOURCE -I../../mkspecs/aix-g++ -I. -I../../include/QtCore 
> -I../../include/QtCore -I../../include -I../../include/QtScript 
> -I.moc/release-shared -I.uic/release-shared -o 
> .obj/release-shared/qscriptcontext_p.o qscriptcontext_p.cpp
>
> cc1plus: out of memory allocating 24969464 bytes after a total of 
> 247167968 bytes
> make: 1254-004 The error code from the last command is 1.
>
>
>   

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-14  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-10  5:38 gcc 4.2.2 fails to compile file on aix 5.2 with "cc1plus: out of memory allocating", works without optimization Thomas Mittelstaedt
2008-01-15  9:24 ` [RESOLVED] " Thomas Mittelstaedt

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).