Dear All, I would like to as bout compiling alps again. This time I have problem with: [ 75%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
more preciselt the error is "module gnerated with wrong version of a compiler"
The command that fails is: ifort CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_DYN_LINK=1 -openmp -O3 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include -I/home/lacki/opt/libhdf5-1.8.10-intel/include -I/home/lacki/opt/python-2.7.3/lib/python2.7/site-packages/numpy/core/include -I/home/lacki/opt/python-2.7.3/include/python2.7 -I/home/lacki/alps/customs/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/boost -c /home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/applications/dmrg/tebd/core/Hdf5Interface.f90
In fact in both -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include there is Hdf5 module but in -I/usr/include another version is present. Somehow this version takes precedence. Is there way to overcome it? On a previous computer no version of Hdf5 was installed in -I/usr/include. The solution seemes to be just swapping -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include.
my INCLUDE is /opt/intel/Compiler/13.0/composer_xe_2013.1.117/mkl/include:/home/lacki/opt/libhdf5-1.8.10-intel/include
Kind Regards, Mateusz
Dear Mateusz,
the basic problem is that you have two Fortran compilers and hence two incompatible versions of the HDF5 Fortran module on your machine. The easiest would be to use the Fortran compiler that created the version installed in /usr.
You can slso try putting your include path before /usr/include by setting that include directory in the CMAKE_Fortran_FLAGS variable.
A third option would be to remove the offending module files from /usr/include
Matthias
On Mar 10, 2013, at 1:35 AM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All, I would like to as bout compiling alps again. This time I have problem with: [ 75%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
more preciselt the error is "module gnerated with wrong version of a compiler"
The command that fails is: ifort CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_DYN_LINK=1 -openmp -O3 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include -I/home/lacki/opt/libhdf5-1.8.10-intel/include -I/home/lacki/opt/python-2.7.3/lib/python2.7/site-packages/numpy/core/include -I/home/lacki/opt/python-2.7.3/include/python2.7 -I/home/lacki/alps/customs/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/boost -c /home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/applications/dmrg/tebd/core/Hdf5Interface.f90
In fact in both -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include there is Hdf5 module but in -I/usr/include another version is present. Somehow this version takes precedence. Is there way to overcome it? On a previous computer no version of Hdf5 was installed in -I/usr/include. The solution seemes to be just swapping -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include.
my INCLUDE is /opt/intel/Compiler/13.0/composer_xe_2013.1.117/mkl/include:/home/lacki/opt/libhdf5-1.8.10-intel/include
Kind Regards, Mateusz
Dear Matthias, Thank you for Your answer. I did the third option. I will try also CMAKE_Fortran_FLAGS as this does not require root access.
Regards, Mateusz Łącki
2013/3/10 Matthias Troyer troyer@phys.ethz.ch:
Dear Mateusz,
the basic problem is that you have two Fortran compilers and hence two incompatible versions of the HDF5 Fortran module on your machine. The easiest would be to use the Fortran compiler that created the version installed in /usr.
You can slso try putting your include path before /usr/include by setting that include directory in the CMAKE_Fortran_FLAGS variable.
A third option would be to remove the offending module files from /usr/include
Matthias
On Mar 10, 2013, at 1:35 AM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All, I would like to as bout compiling alps again. This time I have problem with: [ 75%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
more preciselt the error is "module gnerated with wrong version of a compiler"
The command that fails is: ifort CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_DYN_LINK=1 -openmp -O3 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include -I/home/lacki/opt/libhdf5-1.8.10-intel/include -I/home/lacki/opt/python-2.7.3/lib/python2.7/site-packages/numpy/core/include -I/home/lacki/opt/python-2.7.3/include/python2.7 -I/home/lacki/alps/customs/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/boost -c /home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/applications/dmrg/tebd/core/Hdf5Interface.f90
In fact in both -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include there is Hdf5 module but in -I/usr/include another version is present. Somehow this version takes precedence. Is there way to overcome it? On a previous computer no version of Hdf5 was installed in -I/usr/include. The solution seemes to be just swapping -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include.
my INCLUDE is /opt/intel/Compiler/13.0/composer_xe_2013.1.117/mkl/include:/home/lacki/opt/libhdf5-1.8.10-intel/include
Kind Regards, Mateusz
I confirm the "CMAKE_Fortran_FLAGS" method works. Thanks
Regards, Mateusz Łącki
Le Mar 10, 2013 à 9:37 AM, Matthias Troyer a écrit :
Dear Mateusz,
the basic problem is that you have two Fortran compilers and hence two incompatible versions of the HDF5 Fortran module on your machine. The easiest would be to use the Fortran compiler that created the version installed in /usr.
You can slso try putting your include path before /usr/include by setting that include directory in the CMAKE_Fortran_FLAGS variable.
A third option would be to remove the offending module files from /usr/include
Matthias
On Mar 10, 2013, at 1:35 AM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All, I would like to as bout compiling alps again. This time I have problem with: [ 75%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
more preciselt the error is "module gnerated with wrong version of a compiler"
The command that fails is: ifort CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_DYN_LINK=1 -openmp -O3 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include -I/home/lacki/opt/libhdf5-1.8.10-intel/include -I/home/lacki/opt/python-2.7.3/lib/python2.7/site-packages/numpy/core/include -I/home/lacki/opt/python-2.7.3/include/python2.7 -I/home/lacki/alps/customs/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/src -I/home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/boost -c /home/lacki/alps/customs/alps-2.1.1-r6176-src-with-boost/alps/applications/dmrg/tebd/core/Hdf5Interface.f90
In fact in both -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include there is Hdf5 module but in -I/usr/include another version is present. Somehow this version takes precedence. Is there way to overcome it? On a previous computer no version of Hdf5 was installed in -I/usr/include. The solution seemes to be just swapping -I/home/lacki/opt/libhdf5-1.8.10-intel/include and -I/usr/include.
my INCLUDE is /opt/intel/Compiler/13.0/composer_xe_2013.1.117/mkl/include:/home/lacki/opt/libhdf5-1.8.10-intel/include
Kind Regards, Mateusz
comp-phys-alps-users@lists.phys.ethz.ch