CentOS 8.4 aarch64下编译ovirt-engine报错-内存不足
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.rescue(ControlFlowAnalyzer.java:627)
[INFO] at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:373)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)
[INFO] [ERROR] Unrecoverable exception, shutting down
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO] at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:56)
[INFO] at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
[INFO] at java.base/java.lang.Thread.run(Thread.java:829)
[INFO] [ERROR] Not all permutation were compiled , completed (0/30)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] oVirt Findbugs Filters ............................. SUCCESS [ 3.915 s]
[INFO] ovirt-root 4.4.10.6 ................................ SUCCESS [ 1.943 s]
[INFO] oVirt Build Tools root ............................. SUCCESS [ 0.044 s]
[INFO] oVirt checkstyle ................................... SUCCESS [ 4.846 s]
[INFO] oVirt Checkstyle Checks ............................ SUCCESS [ 2.661 s]
[INFO] oVirt Modules - backend ............................ SUCCESS [ 0.409 s]
[INFO] oVirt Manager ...................................... SUCCESS [ 0.070 s]
[INFO] oVirt Engine dependencies .......................... SUCCESS [ 0.063 s]
[INFO] oVirt Engine common dependencies ................... SUCCESS [ 6.137 s]
[INFO] oVirt Engine tools dependencies .................... SUCCESS [ 0.280 s]
[INFO] Utilities to extend java.logging framework ......... SUCCESS [ 0.305 s]
[INFO] oVirt Modules - manager ............................ SUCCESS [ 4.285 s]
[INFO] Universal utilities ................................ SUCCESS [ 20.894 s]
[INFO] Extensions manager ................................. SUCCESS [ 6.491 s]
[INFO] GWT UI Compatibility ............................... SUCCESS [ 7.770 s]
[INFO] Common Code ........................................ SUCCESS [ 40.314 s]
[INFO] Common utilities ................................... SUCCESS [ 33.081 s]
[INFO] Branding package ................................... SUCCESS [ 7.869 s]
[INFO] oVirt Engine SSO ................................... SUCCESS [ 11.660 s]
[INFO] Data Access Layer .................................. SUCCESS [ 22.240 s]
[INFO] engine scheduler bean .............................. SUCCESS [ 0.091 s]
[INFO] Vds broker ......................................... SUCCESS [ 27.343 s]
[INFO] builtin-extensions ................................. SUCCESS [ 0.576 s]
[INFO] Search Backend ..................................... SUCCESS [ 8.910 s]
[INFO] Backend Authentication, Authorization and Accounting SUCCESS [ 5.610 s]
[INFO] Custom Application Server Authentication Plugin .... SUCCESS [ 2.010 s]
[INFO] Backend Logic @Service bean ........................ SUCCESS [03:01 min]
[INFO] oVirt RESTful API Backend Integration .............. SUCCESS [ 0.133 s]
[INFO] oVirt RESTful API interface ........................ SUCCESS [ 0.298 s]
[INFO] oVirt Engine API Definition ........................ SUCCESS [ 58.153 s]
[INFO] oVirt Engine API Commom Parent POM ................. SUCCESS [ 0.075 s]
[INFO] oVirt Engine API Common JAX-RS ..................... SUCCESS [ 2.397 s]
[INFO] oVirt RESTful API Backend Integration Type Mappers . SUCCESS [ 7.676 s]
[INFO] oVirt RESTful API Backend Integration JAX-RS Resources SUCCESS [ 51.935 s]
[INFO] oVirt RESTful API Backend Integration Webapp ....... SUCCESS [ 0.088 s]
[INFO] oVirt RESTful API Documentation .................... SUCCESS [ 0.523 s]
[INFO] Custom Logger Using Extensions ..................... SUCCESS [ 0.201 s]
[INFO] oVirt Engine Web Root .............................. SUCCESS [ 0.101 s]
[INFO] ovirt-engine services .............................. SUCCESS [ 0.486 s]
[INFO] ovirt-engine docs .................................. SUCCESS [ 0.239 s]
[INFO] ovirt-engine welcome ............................... SUCCESS [ 2.394 s]
[INFO] oVirt Engine Microbenchmarks ....................... SUCCESS [ 4.429 s]
[INFO] oVirt Engine Tools ................................. SUCCESS [ 3.632 s]
[INFO] oVirt Engine extensions tool ....................... SUCCESS [ 0.394 s]
[INFO] oVirt Engine sso client registration tool .......... SUCCESS [ 0.231 s]
[INFO] oVirt Modules :: Frontend .......................... SUCCESS [ 0.082 s]
[INFO] oVirt Modules :: Brands ............................ SUCCESS [ 0.054 s]
[INFO] oVirt Engine brand ................................. SUCCESS [ 2.982 s]
[INFO] oVirt Modules :: Webadmin .......................... SUCCESS [ 0.059 s]
[INFO] oVirt UI Modules ................................... SUCCESS [ 0.061 s]
[INFO] AOP tweaks for GWT compiler ........................ SUCCESS [ 0.914 s]
[INFO] Extensions for GWT ................................. SUCCESS [ 0.653 s]
[INFO] UI Utils Compatibility (for UICommon) .............. SUCCESS [ 3.473 s]
[INFO] Frontend for GWT UI Projects ....................... SUCCESS [ 10.744 s]
[INFO] UICommonWeb ........................................ SUCCESS [ 23.716 s]
[INFO] oVirt GWT UI common infrastructure ................. SUCCESS [ 16.359 s]
[INFO] Frontend Assembly Descriptors ...................... SUCCESS [ 0.131 s]
[INFO] WebAdmin ........................................... FAILURE [10:46 min]
[INFO] oVirt Server EAR ................................... SKIPPED
[INFO] ovirt-engine maven make 4.4.10.6 ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20:41 min
[INFO] Finished at: 2021-12-20T05:09:24+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.9.0:compile (gwtcompile) on project webadmin: Command failed with status 1:
[ERROR] /bin/sh -c '/usr/lib/jvm/java-11-openjdk-11.0.14.0.9-2.el8_5.aarch64/bin/java' '-javaagent:/root/.m2/repository/org/aspectj/aspectjweaver/1.9.3.RC1/aspectjweaver-1.9.3.RC1.jar' '-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory' '-Dgwt.jjs.maxThreads=4' '-Djava.io.tmpdir=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.prefs.systemRoot=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.prefs.userRoot=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.logging.config.class=org.ovirt.engine.ui.gwtaop.JavaLoggingConfig' '-Xms1024M' '-Xmx8192M' '-Dgwt.dontPrune=org\.ovirt\.engine\.core\.(common|compat)\..*' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war' '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/generated-gwt' '-localWorkers' '8' '-failOnError' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-gen' '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/gen' 'org.ovirt.engine.ui.webadmin.WebAdmin'
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :webadmin
make[1]: *** [Makefile:292: maven] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6'
make: *** [Makefile:299: tmp.built] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Os2mAL (%build)[INFO] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.rescue(ControlFlowAnalyzer.java:627)
[INFO] at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:373)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)
[INFO] [ERROR] Unrecoverable exception, shutting down
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO] at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:56)
[INFO] at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
[INFO] at java.base/java.lang.Thread.run(Thread.java:829)
[INFO] [ERROR] Not all permutation were compiled , completed (0/30)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] oVirt Findbugs Filters ............................. SUCCESS [ 3.915 s]
[INFO] ovirt-root 4.4.10.6 ................................ SUCCESS [ 1.943 s]
[INFO] oVirt Build Tools root ............................. SUCCESS [ 0.044 s]
[INFO] oVirt checkstyle ................................... SUCCESS [ 4.846 s]
[INFO] oVirt Checkstyle Checks ............................ SUCCESS [ 2.661 s]
[INFO] oVirt Modules - backend ............................ SUCCESS [ 0.409 s]
[INFO] oVirt Manager ...................................... SUCCESS [ 0.070 s]
[INFO] oVirt Engine dependencies .......................... SUCCESS [ 0.063 s]
[INFO] oVirt Engine common dependencies ................... SUCCESS [ 6.137 s]
[INFO] oVirt Engine tools dependencies .................... SUCCESS [ 0.280 s]
[INFO] Utilities to extend java.logging framework ......... SUCCESS [ 0.305 s]
[INFO] oVirt Modules - manager ............................ SUCCESS [ 4.285 s]
[INFO] Universal utilities ................................ SUCCESS [ 20.894 s]
[INFO] Extensions manager ................................. SUCCESS [ 6.491 s]
[INFO] GWT UI Compatibility ............................... SUCCESS [ 7.770 s]
[INFO] Common Code ........................................ SUCCESS [ 40.314 s]
[INFO] Common utilities ................................... SUCCESS [ 33.081 s]
[INFO] Branding package ................................... SUCCESS [ 7.869 s]
[INFO] oVirt Engine SSO ................................... SUCCESS [ 11.660 s]
[INFO] Data Access Layer .................................. SUCCESS [ 22.240 s]
[INFO] engine scheduler bean .............................. SUCCESS [ 0.091 s]
[INFO] Vds broker ......................................... SUCCESS [ 27.343 s]
[INFO] builtin-extensions ................................. SUCCESS [ 0.576 s]
[INFO] Search Backend ..................................... SUCCESS [ 8.910 s]
[INFO] Backend Authentication, Authorization and Accounting SUCCESS [ 5.610 s]
[INFO] Custom Application Server Authentication Plugin .... SUCCESS [ 2.010 s]
[INFO] Backend Logic @Service bean ........................ SUCCESS [03:01 min]
[INFO] oVirt RESTful API Backend Integration .............. SUCCESS [ 0.133 s]
[INFO] oVirt RESTful API interface ........................ SUCCESS [ 0.298 s]
[INFO] oVirt Engine API Definition ........................ SUCCESS [ 58.153 s]
[INFO] oVirt Engine API Commom Parent POM ................. SUCCESS [ 0.075 s]
[INFO] oVirt Engine API Common JAX-RS ..................... SUCCESS [ 2.397 s]
[INFO] oVirt RESTful API Backend Integration Type Mappers . SUCCESS [ 7.676 s]
[INFO] oVirt RESTful API Backend Integration JAX-RS Resources SUCCESS [ 51.935 s]
[INFO] oVirt RESTful API Backend Integration Webapp ....... SUCCESS [ 0.088 s]
[INFO] oVirt RESTful API Documentation .................... SUCCESS [ 0.523 s]
[INFO] Custom Logger Using Extensions ..................... SUCCESS [ 0.201 s]
[INFO] oVirt Engine Web Root .............................. SUCCESS [ 0.101 s]
[INFO] ovirt-engine services .............................. SUCCESS [ 0.486 s]
[INFO] ovirt-engine docs .................................. SUCCESS [ 0.239 s]
[INFO] ovirt-engine welcome ............................... SUCCESS [ 2.394 s]
[INFO] oVirt Engine Microbenchmarks ....................... SUCCESS [ 4.429 s]
[INFO] oVirt Engine Tools ................................. SUCCESS [ 3.632 s]
[INFO] oVirt Engine extensions tool ....................... SUCCESS [ 0.394 s]
[INFO] oVirt Engine sso client registration tool .......... SUCCESS [ 0.231 s]
[INFO] oVirt Modules :: Frontend .......................... SUCCESS [ 0.082 s]
[INFO] oVirt Modules :: Brands ............................ SUCCESS [ 0.054 s]
[INFO] oVirt Engine brand ................................. SUCCESS [ 2.982 s]
[INFO] oVirt Modules :: Webadmin .......................... SUCCESS [ 0.059 s]
[INFO] oVirt UI Modules ................................... SUCCESS [ 0.061 s]
[INFO] AOP tweaks for GWT compiler ........................ SUCCESS [ 0.914 s]
[INFO] Extensions for GWT ................................. SUCCESS [ 0.653 s]
[INFO] UI Utils Compatibility (for UICommon) .............. SUCCESS [ 3.473 s]
[INFO] Frontend for GWT UI Projects ....................... SUCCESS [ 10.744 s]
[INFO] UICommonWeb ........................................ SUCCESS [ 23.716 s]
[INFO] oVirt GWT UI common infrastructure ................. SUCCESS [ 16.359 s]
[INFO] Frontend Assembly Descriptors ...................... SUCCESS [ 0.131 s]
[INFO] WebAdmin ........................................... FAILURE [10:46 min]
[INFO] oVirt Server EAR ................................... SKIPPED
[INFO] ovirt-engine maven make 4.4.10.6 ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20:41 min
[INFO] Finished at: 2021-12-20T05:09:24+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.9.0:compile (gwtcompile) on project webadmin: Command failed with status 1:
[ERROR] /bin/sh -c '/usr/lib/jvm/java-11-openjdk-11.0.14.0.9-2.el8_5.aarch64/bin/java' '-javaagent:/root/.m2/repository/org/aspectj/aspectjweaver/1.9.3.RC1/aspectjweaver-1.9.3.RC1.jar' '-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory' '-Dgwt.jjs.maxThreads=4' '-Djava.io.tmpdir=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.prefs.systemRoot=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.prefs.userRoot=/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/tmp' '-Djava.util.logging.config.class=org.ovirt.engine.ui.gwtaop.JavaLoggingConfig' '-Xms1024M' '-Xmx8192M' '-Dgwt.dontPrune=org\.ovirt\.engine\.core\.(common|compat)\..*' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war' '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/target/generated-gwt' '-localWorkers' '8' '-failOnError' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-gen' '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6/frontend/webadmin/modules/webadmin/gen' 'org.ovirt.engine.ui.webadmin.WebAdmin'
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :webadmin
make[1]: *** [Makefile:292: maven] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/ovirt-engine-4.4.10.6'
make: *** [Makefile:299: tmp.built] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Os2mAL (%build)
虚拟机配置了16G内存,编译ovirt-engine时包内存不足,扩容至32G后重新编译还是报错。
上网查询后,需要增大JVM的的内存配置
1、解压源码包
2、找到frontend/webadmin/modules/pom.xml配置温家安
3、修改gwt.jvmArgs配置默认是-Xms1024M -Xmx8192M,改成-Xms2048M -Xmx16384M
4、重新打成压缩包
5、重新执行编译 rpmbuild -bb ovirt-engine.spec