3 Replies Latest reply: Mar 3, 2009 10:24 PM by dougm_hyperic RSS

    sigar build failed


      Dear All,

      I tried to build sigar by using ant 1.6.5 . It was failed to build and display following error massage.

      /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:234: The following error occurred while executing this line:



      /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:280: gcc failed with return code 1

      Please any Body help me to solve this problem.



      Best Regards,
      H .Iroshan
      (UCSC)




        • 1. Re: sigar build failed
          dougm_hyperic Expert VMware Employees
          Hi,

          Was there any more detail on the error?  If not, run 'ant -verbose' and paste just the gcc error(s).
          Also let us know what os: uname -a
          • 2. Re: sigar build failed

            Dear All,

            This is the error prompt when i build with ant -verbose

            BUILD FAILED
            /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:234: The following error occurred while executing this line:

            /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:280: gcc failed with return code 1
                at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)

                at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
                at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

                at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)

                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:357)
                at org.apache.tools.ant.Target.performTasks(Target.java:385)

                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

                at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
                at org.apache.tools.ant.Main.runBuild(Main.java:758)
                at org.apache.tools.ant.Main.startAnt(Main.java:217)
                at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)

                at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
            Caused by: /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:280: gcc failed with return code 1
                at net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.compile(CommandLineCompiler.java:218)

                at net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration.compile(CommandLineCompilerConfiguration.java:133)
                at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:702)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

                at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)

                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:357)
                at org.apache.tools.ant.Target.performTasks(Target.java:385)

                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
                at org.apache.tools.ant.Project.executeTargets(Project.java:1189)

                at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
                ... 17 more
            --- Nested Exception ---
            /home/iroshan/Desktop/hyperic-sigar-1.6.0-src/bindings/java/hyperic_jni/jni-build.xml:280: gcc failed with return code 1

                at net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.compile(CommandLineCompiler.java:218)
                at net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration.compile(CommandLineCompilerConfiguration.java:133)

                at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:702)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
                at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:585)
                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:357)

                at org.apache.tools.ant.Target.performTasks(Target.java:385)
                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

                at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
                at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
                at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

                at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)

                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:357)
                at org.apache.tools.ant.Target.performTasks(Target.java:385)

                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

                at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
                at org.apache.tools.ant.Main.runBuild(Main.java:758)
                at org.apache.tools.ant.Main.startAnt(Main.java:217)
                at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)

                at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


            This is the Linux version when i used uname -a
            Linux iroshan-desktop 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux


            Thank you.

            Best Regards,
            H. Iroshan



            On Wed, Mar 4, 2009 at 8:16 AM, Doug MacEachern <dougm@hyperic.com> wrote:

            Hi,



            Was there any more detail on the error?  If not, run 'ant -verbose'and paste just the gcc error(s).

            Also let us know what os: uname -a




            • 3. Re: sigar build failed
              dougm_hyperic Expert VMware Employees
              Still missing the actually gcc error, can you try:
              ant -verbose 2>&1 | grep '\[cc\]'

              Guessing the problem might be:
              http://jira.hyperic.com/browse/SIGAR-122

              If that's the case, you can checkout the current sources w/ the fix:
              http://support.hyperic.com/display/SIGAR/Home#Home-download

              Also planning to upload 1.6.2 to sourceforge this week.

              Message was edited by: dougm