Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467518 - dev-java/oracle-jdk-bin-1.7.0.21 fails to compile with 8GB RAM on 32-bit
Summary: dev-java/oracle-jdk-bin-1.7.0.21 fails to compile with 8GB RAM on 32-bit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-27 17:29 UTC by Remy Blank
Modified: 2014-07-20 21:34 UTC (History)
0 users

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


Attachments
Patch to the ebuild (oracle-jdk-bin-1.7.0.21.patch,481 bytes, patch)
2013-04-27 17:35 UTC, Remy Blank
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Blank 2013-04-27 17:29:50 UTC
oracle-jdk-bin fails to emerge on an 8GB machine running a 32-bit environment. This is the same issue as reported and fixed in #405239 for sun-jdk. The same workaround works for oracle-jdk-bin.

Reproducible: Always

Steps to Reproduce:
1. emerge oracle-jdk-bin

Actual Results:  
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 * ERROR: dev-java/oracle-jdk-bin-1.7.0.21 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2665:  Called die
 * The specific snippet of code:
 *               bin/java -server -Xshare:dump || die
 *
 * If you need support, post the output of `emerge --info '=dev-java/oracle-jdk-bin-1.7.0.21'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/oracle-jdk-bin-1.7.0.21'`.
 * The complete build log is located at '/var/log/portage/dev-java:oracle-jdk-bin-1.7.0.21:20130427-171419.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.21/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.21/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.21/work/jdk1.7.0_21'
 * S: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.21/work/jdk1.7.0_21'

Expected Results:  
Emerge succeeds.
Comment 1 Remy Blank 2013-04-27 17:35:32 UTC
Created attachment 346718 [details, diff]
Patch to the ebuild

Well, *almost* the same fix as sun-jdk.
Comment 2 Remy Blank 2013-06-27 06:12:57 UTC
This still happens with oracle-jdk-bin-1.7.0.25.

Any chance of applying this small patch?
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2014-07-20 21:34:35 UTC
This is now done in:
  oracle-{jdk,jre}-bin-1.7.0.65
  oracle-{jdk,jre}-bin-1.8.0.11

Thanks for the report.