Bug 1115920

Summary: FTBFS on AArch64: java.lang.OutOfMemoryError: Java heap space
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: vtkAssignee: Axel Thimm <axel.thimm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: axel.thimm, fdc, jonathan.underwood, mrceresa, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vtk-6.1.0-15.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-04 19:18:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcin Juszkiewicz 2014-07-03 10:43:40 UTC
Description of problem:

Building of vtk on AArch64 fails with:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
	at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:526)
	at com.sun.tools.javac.code.Scope.enter(Scope.java:220)
	at com.sun.tools.javac.code.Scope.enter(Scope.java:202)
	at com.sun.tools.javac.code.Scope$StarImportScope.importAll(Scope.java:549)
	at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:163)
	at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:549)
	at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:571)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:435)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:447)
	at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:526)
	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:435)
	at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1038)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:560)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1024)
	at com.sun.tools.javac.comp.Enter.complete(Enter.java:497)
	at com.sun.tools.javac.comp.Enter.main(Enter.java:475)
	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:985)
	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
	at com.sun.tools.javac.main.Main.compile(Main.java:523)
	at com.sun.tools.javac.main.Main.compile(Main.java:381)
	at com.sun.tools.javac.main.Main.compile(Main.java:370)
	at com.sun.tools.javac.main.Main.compile(Main.java:361)
	at com.sun.tools.javac.Main.compile(Main.java:56)
	at com.sun.tools.javac.Main.main(Main.java:42)
Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/build.make:1952: recipe for target 'java/javac_stamp.txt' failed
make[2]: Leaving directory '/builddir/build/BUILD/VTK-6.1.0/build'
CMakeFiles/Makefile2:22685: recipe for target 'Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all' failed
make[2]: *** [java/javac_stamp.txt] Error 3
make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all] Error 2
make: *** [all] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/VTK-6.1.0/build'
Makefile:120: recipe for target 'all' failed
Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:
1. build package on aarch64 (use "arm-koji build rawhide")
2. watch it fail
3.

Actual results:

package fails to build

Expected results:

package builds

Additional info:

Increasing Java heap size with "JAVA_TOOL_OPTIONS=-Xmx2048m make %{?_smp_mflags}" helps. 2048m size was randomly selected.