[ovirt-users] rhevm engine Compilation failure

QuantumCloud aiminick at vip.qq.com
Thu Dec 18 14:24:09 UTC 2014


Hi guys:
    I tested to complile rhevm engine from source pkg, but get some error.
   I have tested with same way in ovirt 3.4.4 and rhevm 3.4.3, there was no error, but just in rhevm 3.4.4 with some errors:
  
 [INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Common utilities 3.4.4
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ utils ---
[INFO] Deleting /root/rpmbuild/SOURCES/ovirt-engine/backend/manager/modules/utils/target
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ utils ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ utils ---
[INFO] Compiling 163 source files to /root/rpmbuild/SOURCES/ovirt-engine/backend/manager/modules/utils/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /root/rpmbuild/SOURCES/ovirt-engine/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/pm/VdsFenceOptions.java:[329,44] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ovirt-root ......................................... SUCCESS [  0.311 s]
[INFO] oVirt Build Tools root ............................. SUCCESS [  0.016 s]
[INFO] oVirt checkstyle ................................... SUCCESS [  1.176 s]
[INFO] oVirt JBoss Modules Maven Plugin ................... SUCCESS [  3.148 s]
[INFO] oVirt Checkstyle Checks ............................ SUCCESS [  0.849 s]
[INFO] oVirt Modules - backend ............................ SUCCESS [  0.010 s]
[INFO] oVirt Manager ...................................... SUCCESS [  0.009 s]
[INFO] oVirt Engine dependencies .......................... SUCCESS [  1.113 s]
[INFO] oVirt Modules - manager ............................ SUCCESS [  0.741 s]
[INFO] CSharp Compatibility ............................... SUCCESS [  2.789 s]
[INFO] Common utilities ................................... FAILURE [  2.956 s]
[INFO] Common Code ........................................ SKIPPED
[INFO] Data Access Layer .................................. SKIPPED
[INFO] Vds broker ......................................... SKIPPED
[INFO] engine scheduler bean .............................. SKIPPED
[INFO] Search Backend ..................................... SKIPPED
[INFO] Backend Logic @Service bean ........................ SKIPPED
[INFO] oVirt RESTful API Backend Integration .............. SKIPPED
[INFO] oVirt RESTful API Backend Integration Type Mappers . SKIPPED
[INFO] oVirt RESTful API Backend Integration JAX-RS Resources SKIPPED
[INFO] oVirt RESTful API Backend Integration Webapp ....... SKIPPED
[INFO] oVirt RESTful API interface ........................ SKIPPED
[INFO] oVirt Engine API Definition ........................ SKIPPED
[INFO] oVirt Engine API Commom Parent POM ................. SKIPPED
[INFO] oVirt Engine API Common JAX-RS ..................... SKIPPED
[INFO] oVirt Engine Web Root .............................. SKIPPED
[INFO] Branding package ................................... SKIPPED
[INFO] ovirt-engine services .............................. SKIPPED
[INFO] oVirt Engine Web Docs .............................. SKIPPED
[INFO] ovirt-engine welcome ............................... SKIPPED
[INFO] Backend Authentication ............................. SKIPPED
[INFO] oVirt Engine Tools ................................. SKIPPED
[INFO] oVirt Modules :: Frontend .......................... SKIPPED
[INFO] oVirt Modules :: Webadmin .......................... SKIPPED
[INFO] oVirt Modules - ui ................................. SKIPPED
[INFO] Extensions for GWT ................................. SKIPPED
[INFO] UI Utils Compatibility (for UICommon) .............. SKIPPED
[INFO] Frontend for GWT UI Projects ....................... SKIPPED
[INFO] UICommonWeb ........................................ SKIPPED
[INFO] oVirt GWT UI common infrastructure ................. SKIPPED
[INFO] WebAdmin ........................................... SKIPPED
[INFO] UserPortal ......................................... SKIPPED
[INFO] oVirt Server EAR ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.340 s
[INFO] Finished at: 2014-12-17T23:11:35+08:00
[INFO] Final Memory: 51M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project utils: Compilation failure
[ERROR] /root/rpmbuild/SOURCES/ovirt-engine/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/pm/VdsFenceOptions.java:[329,44] error: cannot find symbol
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :utils
  
 some code of error file VdsFenceOptions.java: (I have not changed any codes)
 ...
 319     /**
320      * handles agent default options
321      *
322      * @param agent
323      * @param fenceOptions
324      * @return String the options after adding default agent parameters
325      */
326     public static String getDefaultAgentOptions(String agent, String fenceOptions,  ArchitectureType architectureType) {
327         String agentDefaultParams =  (architectureType != null && architectureType == ArchitectureType.ppc64)
328                 ?
329                 Config.getValue(ConfigValues.FenceAgentDefaultParamsForPPC, ConfigCommon.defaultConfigurationVersion).toString()
330                 :
331                 Config.getValue(ConfigValues.FenceAgentDefaultParams, ConfigCommon.defaultConfigurationVersion).toString();
332 ...
  
 My compilation tools env:
 [root at localhost ~]# mvn -v
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04:58:10+08:00)
Maven home: /apache-maven
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-504.1.3.el6.x86_64", arch: "amd64", family: "unix"
  
 also I have test different tools:
 maven 3.0.5 + java 1.7.0.45
  maven 3.0.5 + java 1.7.0.71 
  maven 3.1.1 + java 1.7.0.45 
  maven 3.1.1 + java 1.7.0.71 
  maven 3.2.3 + java 1.7.0.45
  maven 3.2.3 + java 1.7.0.71
  
 all above had the same error.
  
 Who can give some idea to fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141218/80644a0d/attachment-0001.html>


More information about the Users mailing list