Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-4881

need cmake on build machines

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: Initial Clearing
    • Component/s: None
    • Labels:
      None

      Description

      The cmake program needs to be installed on all Apache Jenkins and other build machines. This build dependency was introduced by HADOOP-8368.

      Otherwise, you get errors like this when trying to build the native components of Hadoop:

      {code}
      Caused by: <https://builds.apache.org/job/Hadoop-Common-trunk/ws/trunk/hadoop-common-project/hadoop-common/target/antrun/build-main.xml&gt;:4: Execute failed: java.io.IOException: Cannot run program "cmake" (in directory "<https://builds.apache.org/job/Hadoop-Common-trunk/ws/trunk/hadoop-common-project/hadoop-common/target/native")>: java.io.IOException: error=2, No such file or directory
             at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:679)
             at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
             at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
             at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
             at org.apache.tools.ant.Task.perform(Task.java:348)
             at org.apache.tools.ant.Target.execute(Target.java:390)
             at org.apache.tools.ant.Target.performTasks(Target.java:411)
             at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
             at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
             at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
             ... 21 more
      Caused by: java.io.IOException: Cannot run program "cmake" (in directory "<https://builds.apache.org/job/Hadoop-Common-trunk/ws/trunk/hadoop-common-project/hadoop-common/target/native")>: java.io.IOException: error=2, No such file or directory
             at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
             at java.lang.Runtime.exec(Runtime.java:593)
             at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
             at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
             at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
             at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635)
             at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:676)
             ... 33 more
      Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
             at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
             at java.lang.ProcessImpl.start(ProcessImpl.java:65)
             at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
             ... 39 more
      [ERROR]
      [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 <goals> -rf :hadoop-common
      {code}

      Any version of cmake higher than or equal to cmake 2.6 should suffice. (The exact version doesn't matter as long as it's at least 2.6.) A suitable version is probably only an "apt-get" or "yum install" away.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: