Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SunStudio 12: cg_memory_allocation.malloc: out of memory

851262Apr 13 2012 — edited Apr 15 2012
Hi All,
I have a C++ application which I could compile successfully using Sun Studio 11 in the optimization mode (-O2). But when I upgraded the compiler to Sun Studio 12, it fails with following error message:

cg_memory_allocation: allocated 2131329024 bytes memory
cg: cg_memory_allocation.malloc: out of memory
cg: 1 errors
gmake[2]: *** [application.o] Error 1
gmake[2]: *** Deleting file `application.o'

I use gmake tool to invoke the compilation.

NB: If I compile in debug mode (-g) without optimization ON, then the compilation goes fine. The failure is only happening when optimization mode is ON.

Can anybody help me what could be the problem here?

Any pointer would be helpful.

Thanks in advance.

Comments

Alex Keh-Oracle
Answer

You can sell and setup software with the NuGet managed ODP.NET (Oracle.ManagedDataAccess.dll) version if you want. You just have to license the software under a different legal agreement. You don't have to use the Oracle Client.

The OTN license has restrictions to resell. You can contact an Oracle reseller or sales person to acquire a license that will allow you to resell. With that license, you can use then redistribute your application with the managed ODP.NET software.

Marked as Answer by 854903 · Sep 27 2020
854903

Thank you Alex.

I was not conscious of making another contract.

Your answer was very helpful.

I will contact the reseller immediately.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 13 2012
Added on Apr 13 2012
5 comments
2,762 views