TRIQS / triqs_0.x

DEPRECATED -- This is the repository of the older versions of TRIQS
Other
11 stars 9 forks source link

Install issue with RHEL 6.3 #107

Closed keithosu closed 11 years ago

keithosu commented 11 years ago

I am having issues compiling on a RHEL 6.3 system. I'm using the git repo. I have attached link to gist.

Here is a list of known dependencies I'm using: yum list installed | grep "cmake|blas|atlas|gsl|c++|lapack|scipy|numpi|mpich|fortran|fftw|gmp|hdf atlas.x86_64 3.8.4-2.el6 @rhel-x86_64-server-6
atlas-devel.x86_64 3.8.4-2.el6 @rhel-x86_64-server-optional-6
atlas-sse3.x86_64 3.8.4-2.el6 @rhel-x86_64-server-6
atlas-sse3-devel.x86_64 3.8.4-2.el6 @rhel-x86_64-server-optional-6
blas.x86_64 3.2.1-4.el6 @rhel-x86_64-server-6
blas-devel.x86_64 3.2.1-4.el6 @rhel-x86_64-server-optional-6
cmake28.x86_64 2.8.8-4.el6 @epel
fftw.x86_64 3.2.1-3.1.el6 @rhel-x86_64-server-6
fftw-devel.x86_64 3.2.1-3.1.el6 @rhel-x86_64-server-6
gcc-c++.x86_64 4.4.6-4.el6 @rhel-x86_64-server-6
gcc-gfortran.x86_64 4.4.6-4.el6 @rhel-x86_64-server-6
gmp.x86_64 4.3.1-7.el6_2.2 @rhel-x86_64-server-6/$releasever gmp-devel.x86_64 4.3.1-7.el6_2.2 @rhel-x86_64-server-6
gsl.x86_64 1.13-1.el6 @rhel-x86_64-server-6
gsl-devel.x86_64 1.13-1.el6 @rhel-x86_64-server-6
h5py.x86_64 1.3.1-6.el6 @epel
hdf.x86_64 4.2.5-1.el6 @epel
hdf5.x86_64 1.8.5.patch1-7.el6 @epel
hdf5-devel.x86_64 1.8.5.patch1-7.el6 @epel
hdf5-openmpi.x86_64 1.8.5.patch1-7.el6 @epel
lapack.x86_64 3.2.1-4.el6 @rhel-x86_64-server-6
lapack-devel.x86_64 3.2.1-4.el6 @rhel-x86_64-server-optional-6
libgfortran.x86_64 4.4.6-4.el6 @rhel-x86_64-server-6
libstdc++.x86_64 4.4.6-4.el6 @rhel-x86_64-server-6/$releasever libstdc++-devel.x86_64 4.4.6-4.el6 @rhel-x86_64-server-6
mpich2.x86_64 1.2.1-2.3.el6 @rhel-x86_64-server-6
mpich2-devel.x86_64 1.2.1-2.3.el6 @rhel-x86_64-server-optional-6
scipy.x86_64 0.7.2-5.el6 @epel

Any help would be greatly appreciated. Thanks Keith

https://gist.github.com/keithosu/4757106

mferrero commented 11 years ago

Hi Keith! It looks like the version of g++ is too old. You have version 4.4.6 but you should have it >= 4.6.3. There is a list of dependencies here:

http://ipht.cea.fr/triqs/doc/user_manual/install/dependencies.html

keithosu commented 11 years ago

I've installed gcc 4.7.2 and I am still failing on algebra_fnt2.cpp. Looks

Linking CXX executable algebra_fnt2 CMakeFiles/algebra_fnt2.dir/algebra_fnt2.cpp.o: In function void boost::numeric::bindings::blas::gemm_impl<double>::invoke<triqs::arrays::matrix_view<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> >, triqs::arrays::matrix_view<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> >, triqs::arrays::matrix<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> > >(double, triqs::arrays::matrix_view<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> > const&, triqs::arrays::matrix_view<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> > const&, double, triqs::arrays::matrix<double, triqs::arrays::Option::options<triqs::arrays::Tag::C, void, void, void> >&)': algebra_fnt2.cpp:(.text._ZN5boost7numeric8bindings4blas9gemm_implIdE6invokeIN5triqs6arrays11matrix_viewIdNS7_6Option7optionsINS7_3Tag1CEvvvEEEESE_NS7_6matrixIdSD_EEEEvdRKT_RKT0_dRT1_[_ZN5boost7numeric8bindings4blas9gemm_implIdE6invokeIN5triqs6arrays11matrix_viewIdNS7_6Option7optionsINS7_3Tag1CEvvvEEEESE_NS7_6matrixIdSD_EEEEvdRKT_RKT0_dRT1_]+0x6a): undefined reference tocblas_dgemm' collect2: error: ld returned 1 exit status make[2]: * [triqs/utility/proto/test/algebra_fnt2] Error 1 make[1]: * [triqs/utility/proto/test/CMakeFiles/algebra_fnt2.dir/all] Error 2 make: *\ [all] Error 2

see all output at: https://gist.github.com/4950982

mferrero commented 11 years ago

OK, I see. The code cannot link against cblas. You should make sure you have both the cblas library and headers installed. If you still run into problems, attach your CMakeCache.txt file so that we can catch a look at what libraries have been found. Cheers!

parcollet commented 11 years ago

Seems resolved. Reopen for further discussions.