Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Out of memory error when compiling perl MQSeries module on PA RISC

Iain Soedring
Occasional Advisor

Out of memory error when compiling perl MQSeries module on PA RISC

This is on 11.23, when running 'install MQSeries' from CPAN, it seems to hang on this:

cc -c -I"/opt/mqm/inc" -I../include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"1.32\" -DXS_VERSION=\"1.32\" +Z "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" -DMQ_CMVC_LVALUE=\"p600-210-100825\" constants.c
cc: warning 487: Possibly incorrect message catalog.

After half an hour or so it stops with an out-of-memory error:

cc: procedure constant_numeric(): error 6350: Out of memory. Check kernel maxdsiz parameter and swap space configured. (6350)
cc: procedure constant_numeric(): error 6350: Not enough space [errno=12]
Out of memory while reading in symbol table of /opt/ansic/lbin/ccom

I have already increased the swap space but to no avail, and I doubt this is the problem.
4 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: Out of memory error when compiling perl MQSeries module on PA RISC

Hi:

> I have already increased the swap space but to no avail, and I doubt this is the problem.

And have you assessed your 'maxdsiz' setting as the error suggests? What does 'swapinfo -tam' show just before the out-of-memory error?

Regards!

...JRF...
Iain Soedring
Occasional Advisor

Re: Out of memory error when compiling perl MQSeries module on PA RISC

Thanks for the reply, and yes, I checked maxdsiz.

'swapinfo -tam' showed this BEFORE running the compile:

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 394 -394
memory 4094 1365 2729 33%
total 8190 1759 6431 21% - 0 -

And this near the end:

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 791 -791
memory 4094 1368 2726 33%
total 8190 2159 6031 26% - 0 -

Dennis Handly
Acclaimed Contributor

Re: Out of memory error when compiling perl MQSeries module on PA RISC

>After half an hour or so it stops with an out-of-memory error:

Have you watched the memory usage in top?

>I checked maxdsiz.

What is it?
If you have maxdsiz at 1 Gb and you have plenty of swap, your only choice is to stop optimizing, remove: -fast +Onolimit +Opromote_indirect_calls
Just use -O.

Or port to Integrity where the compiler is a 64 bit application.
Highlighted
Iain Soedring
Occasional Advisor

Re: Out of memory error when compiling perl MQSeries module on PA RISC

Removing the optimizations did the job, many thanks (although I needed to download the package and hack the Makefile manually, couldn't see how to do it through the automated CPAN process).