Hi ,
I am facing some problem with C++ compiler ( version 5.0 ) on AIX machine ( 4.3 version).
When i run the following compile command,
cc -v -D< CONDITIONAL COMPILATION MACROS > -I< HEADER FILES SEARCH PATH >-qlanglvl=extended -g -qnoro -qnoroconst -c test_suman.cpp
For security reasons i didnot mention the MACRO's list and HEADER file path.
It gives me the following error:
Catastrophe in malloc: sbrk() error 1b
cc: 1501-224 fatal error in /usr/ibmcxx/exe/xlCentry: signal 6 received
After preprocessing the file i could see that there were 2,40,000 ( approx ) lines of code.
When i split this file into more than one file compilation went through.
Is there any limitation on the size of the file being compiled?
When i tried dbx on the compiler ( though the compiler is not built with "-g" option
) trace section shows
_exit() at 0xd017d980
exit(??) at 0xd01769a8
done(??) at 0x10007ae4
sys_exec(??, ??) at 0x10004fd4
invoke_cppcom(??) at 0x10006998
main(??, ??) at 0x10002b48
../../../../../../../src/bos/usr/ccs/lib/libcrypt/crypt.c"
When the same file is compiled with version 6 C++ compiler it works fine.
Could any one suggest me whats happening? and how do i overcome this problem?
Please let me know incase there are any compiler options i could include for the successful compilation.
Regards,
Suman