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.
Created attachment 346718 [details, diff] Patch to the ebuild Well, *almost* the same fix as sun-jdk.
This still happens with oracle-jdk-bin-1.7.0.25. Any chance of applying this small patch?
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.