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.