Open rashmi-ibm opened 4 years ago
From which source code you are building ? Also, paste all commands executed to build.
On Wed, Nov 27, 2019, 10:21 rashmi-ibm notifications@github.com wrote:
Getting the below error when trying to use sigar jar on a ppc64le system during mvn build of the source project.
WARN 27-11 03:54:24,870 (SystemInfoFactory.java:initialize:311) -Native library not available on this platform: java.lang.reflect.InvocationTargetException:null -> org.hyperic.sigar.SigarException:/root/.m2/repository/org/hyperic/sigar/1.6.5.132-6/sigar-1.6.5.132-6.jar: /root/.m2/repository/org/hyperic/sigar/1.6.5.132-6/sigar-1.6.5.132-6.jar: invalid ELF header (Possible cause: endianness mismatch)
I was able to build sigar jar successfully on power. Need pointers on how this issue can be fixed.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hyperic/sigar/issues/133?email_source=notifications&email_token=AE2UTTV7J62B3UQCIL5FBKTQVY3ZFA5CNFSM4JSDZRWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4LG7EA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2UTTXBEE5GMWBHK7JRQGDQVY3ZFANCNFSM4JSDZRWA .
I am trying to build the Rhq repository which internally uses sigar.
Below are the commands used to build the repo.
git clone https://github.com/rhq-project/rhq.git cp rhq/etc/m2/settings.xml ~/.m2/ cd rhq mvn clean -Ddbsetup -Penterprise,dev install
Can you pls point me to the documentation as to how I can use the ppc64le specific generated sigar jar.
I build sigar.jar successfully. Where do I specify the .so file
ls -1 sigar-bin/lib history.xml libsigar-ppc64le-linux.so sigar.jar #
I suspect the error I am getting is due to a mismatch thats happening in the sigar-dist zip file.
https://repository.jboss.org/nexus/content/groups/public/org/hyperic/sigar-dist/1.6.5.132-6/
The zip file contains platform specific so files and the power specific files are namely as shown below:: libsigar-ppc64-linux.so
on the current power machine when I run the build the so file that is generated is libsigar-ppc64le-linux.so
Any pointers how i can explicitly fix this out ???
I manually added the libsigar-ppc64le-linux.so in the sigar-dist/1.6.5.132-6/sigar-dist-1.6.5.132-6.zip file and tried to build the RHQ project. The above sigar error went off with the above temporary fix.
Can you please help to add the libsigar-ppc64le-linux.so in the maven published version of sigar-dist.
It looks like sigar required for RHQ is from private redhat repository.
Also, this project is quite inactive these days.
I would suggest to contact admins on RedHat side ( https://github.com/rhq-project/rhq) and ask them if it is possible.
For now, if you can fork the project, you can add additional step in ma
On Fri, Nov 29, 2019, 12:34 rashmi-ibm notifications@github.com wrote:
I manually added the libsigar-ppc64le-linux.so in the sigar-dist/1.6.5.132-6/sigar-dist-1.6.5.132-6.zip file and tried to build the RHQ project. The above sigar error went off with the above temporary fix.
Can you please help to add the libsigar-ppc64le-linux.so in the maven published version of sigar-dist.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hyperic/sigar/issues/133?email_source=notifications&email_token=AE2UTTQX4I3RYIEJ6AEJERTQWD43TA5CNFSM4JSDZRWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFOURLA#issuecomment-559761580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2UTTSLEBJFQSAXRVHPNLTQWD43TANCNFSM4JSDZRWA .
You can always try binaries from sourceforge: https://sourceforge.net/projects/sigar/files/sigar/1.6/hyperic-sigar-1.6.4.zip/download
Getting the below error when trying to use sigar jar on a ppc64le system during mvn build of the source project.
WARN 27-11 03:54:24,870 (SystemInfoFactory.java:initialize:311) -Native library not available on this platform: java.lang.reflect.InvocationTargetException:null -> org.hyperic.sigar.SigarException:/root/.m2/repository/org/hyperic/sigar/1.6.5.132-6/sigar-1.6.5.132-6.jar: /root/.m2/repository/org/hyperic/sigar/1.6.5.132-6/sigar-1.6.5.132-6.jar: invalid ELF header (Possible cause: endianness mismatch)
I was able to build sigar jar successfully on power. Need pointers on how this issue can be fixed.