Closed jschueller closed 9 years ago
This should not be needed since your libhmat-oss.so.1 on SL7 contains a NEEDED libsatlas.so.3
declaration. It would help to have verbose logs for hmat-oss and openturns.
where did you see that NEEDED stuff ?
here are hmat and openturns verbose log (centos): https://build.opensuse.org/build/science:openturns/CentOS_7/x86_64/hmat-oss/_log https://build.opensuse.org/build/science:openturns/CentOS_7/x86_64/openturns/_log
The problem is that your CBLASLIBRARIES does not list cblas, see hmat-oss/.log:
[ 136s] ++ find /usr/lib /usr/lib64 /usr/libexec -name libcblas.so -o -name libsatlas.so
[ 136s] + /usr/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCBLAS_LIBRARIES=/usr/lib64/atlas/libsatlas.so
Whether I provide cblas or libatlas, hmat detect a cblas lib, which is ok: https://build.opensuse.org/build/science:openturns/RHEL_6/i586/hmat-oss/_log I really think we need to pass CBLAS_LIBRARIES to openturns through HMAT_LIBRARIES.
No, openturns do not use cblas directly and thus do not have to know about it. Did you try to build openturns against this hmat-oss build? It should work.
yes: https://build.opensuse.org/package/live_build_log/science:openturns/openturns/RHEL_6/i586 I'm puzzled, really, it's shared libs, I think you have to pass them
Please display output of objdump -p /path/to/libhmat-oss.so | grep NEEDED
when building hmat-oss.
Hmmm in fact this is already visible in Requires: field, and libcblas.so.3 is listed there, so I am puzzled too.
here: [ 87s] + objdump -p /home/abuild/rpmbuild/BUILDROOT/hmat-oss-1.0.2-11.1.i386/usr/lib/libhmat-oss.so [ 87s] + grep NEEDED [ 87s] NEEDED libcblas.so.3 [ 87s] NEEDED libblas.so.3 [ 87s] NEEDED liblapack.so.3 [ 87s] NEEDED libstdc++.so.6 [ 87s] NEEDED librt.so.1 [ 87s] NEEDED libm.so.6 [ 87s] NEEDED libc.so.6 [ 87s] NEEDED libgomp.so.1 [ 87s] NEEDED libgcc_s.so.1 [ 87s] NEEDED libpthread.so.0 https://build.opensuse.org/build/science:openturns/CentOS_CentOS-6/i586/hmat-oss/_log
There may be some rpath issue. Compare ldd /path/to/libhmat-oss.so
at the end of hmat-oss build and at the beginning of openturns build (you can make it fail just after this command). BTW you could enable examples in hmat-oss, hopefully the same link error will be triggered.
yes, I think I remember rpath being removed by the rpm tools
it seems dependencies are needed to be listed as part of HMAT_LIBRARIES else we get undefined references, eg cblas: https://build.opensuse.org/package/live_build_log/science:openturns/openturns/ScientificLinux_7/x86_64 maybe it should be the same for other libraries
is this comment related ?