One of the shared object linked at run time is 2.7G in size and er_archive runs out of memory when archiving this shared object. There is plenty of memory available in the system. Using top, I observed that er_archive was at about 4G of memory usage when it stopped due to this error.
% file /SUNWspro-SS12U1/sunstudio12.1/prod/bin/er_archive
/SUNWspro-SS12U1/sunstudio12.1/prod/bin/er_archive: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
Is there a 64-bit version of er_archive available to overcome memory limitation?
The whole suite needs a 64 bit version. I stopped using -g and optimizations higher than -xO2, not just because they introduced extra bugs, but also because they caused the compiler to run out of memory. Good luck with your huge library.