Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261590 - app-pda/pilot-link fails on javac (Could not reserve enough space for object)
Summary: app-pda/pilot-link fails on javac (Could not reserve enough space for object)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 17:27 UTC by Trenton D. Adams
Modified: 2009-03-07 17:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trenton D. Adams 2009-03-07 17:27:32 UTC
The solution is to put a use flag for it of "-java".  But, this should be fixed.

Error occurred during initialization of VM                                                                                                 
Could not reserve enough space for object heap                                                                                             
Could not create the Java virtual machine.                                                                                                 
make[3]: *** [java_compile] Error 1                                                                                                        
make[3]: Leaving directory `/var/tmp/portage/app-pda/pilot-link-0.12.3/work/pilot-link-0.12.3/bindings/Java'                               
make[2]: *** [all-recursive] Error 1                                                                                                       
make[2]: Leaving directory `/var/tmp/portage/app-pda/pilot-link-0.12.3/work/pilot-link-0.12.3/bindings'                                    
make[1]: *** [all-recursive] Error 1                                                                                                       
make[1]: Leaving directory `/var/tmp/portage/app-pda/pilot-link-0.12.3/work/pilot-link-0.12.3'                                             
make: *** [all] Error 2                                                                                                                    
 *                                                                                                                                         
 * ERROR: app-pda/pilot-link-0.12.3 failed.                                                                                                
 * Call stack:                                                                                                                             
 *               ebuild.sh, line   49:  Called src_compile                                                                                 
 *             environment, line 4975:  Called die                                                                                         
 * The specific snippet of code:                                                                                                           
 *       emake || die "emake failed";                                                                                                      
 *  The die message:                                                                                                                       
 *   emake failed                                                                                                                          
 *                                                                                                                                         
 * If you need support, post the topmost build error, and the call stack if relevant.                                                      
 * A complete build log is located at '/var/tmp/portage/app-pda/pilot-link-0.12.3/temp/build.log'.                                         
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/pilot-link-0.12.3/temp/environment'.                                
 *                                                                                                                                         
!!! When you file a bug report, please include the following information:                                                                  
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.11"                                                                      
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""                                                                                           
and of course, the output of emerge --info                                                                                                 

>>> Failed to emerge app-pda/pilot-link-0.12.3, Log file:

>>>  '/var/tmp/portage/app-pda/pilot-link-0.12.3/temp/build.log'

 * Messages for package app-pda/pilot-link-0.12.3:

 * 
 * ERROR: app-pda/pilot-link-0.12.3 failed.
 * Call stack:                             
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4975:  Called die        
 * The specific snippet of code:                          
 *       emake || die "emake failed";                     
 *  The die message:                                      
 *   emake failed                                         
 *                                                        
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-pda/pilot-link-0.12.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/pilot-link-0.12.3/temp/environment'.
 *                        

Reproducible: Always

Steps to Reproduce:
1. compile app-pda/pilot-link with use flag java
2.
3.

Actual Results:  
fails to compile with "Could not reserve enough space for object"

Expected Results:  
It should compile

I have plenty of RAM free, or should I say "cache".  But, cache id discarded dynamically as ram is needed, so the ram should not be a problem.

tdamac ~ # vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 3  0  13620 120900  90132 936776    2    2   300   417  119  254 20  5 71  5
Comment 1 Trenton D. Adams 2009-03-07 17:39:49 UTC
Please hold, this may be a problem with my system overall.  I have tweaked runtime kernel settings.  I am reverting those tweaks and seeing if it will work now.  I think it may be a kernel bug for that "tweak" because it neither ran out of virtual memory, nor memory.


virtual memory exhausted: Cannot allocate memory                                                                                           
gmake: *** [cmPolicies.o] Error 1                                                                                                          
gmake: *** Waiting for unfinished jobs....                                                                                                 
---------------------------------------------                                                                                              
Error when bootstrapping CMake:                                                                                                            
Problem while running gmake                                                                                                                
---------------------------------------------                                                                                              
Log of errors: /var/tmp/portage/dev-util/cmake-2.6.3/work/cmake-2.6.3/Bootstrap.cmk/cmake_bootstrap.log          
Comment 2 Trenton D. Adams 2009-03-07 17:44:26 UTC
Confirmed, pilot-link merged with java use flag.  I had the following set...
echo 2 > /proc/sys/vm/overcommit_memory

And apparently the system did not like that, so it told those processes to quit.  I'm thinking they asked for a whole whack of "virtual" memory.  i.e. reserved but not necessarily used, and because of that option, it was denied.