Support and discussions for Molcas and OpenMolcas users and developers
You are not logged in.
Please note: The forum's URL has changed. The new URL is: https://molcasforum.univie.ac.at. Please update your bookmarks!
You can choose an avatar and change the default style by going to "Profile" → "Personality" or "Display".I have tried to compile openmolcas with NECI library.
As a result, I have this error:
ld: /home/tikim/lib/hdf5-1.8.20/build/lib/libhdf5_fortran.a(H5_ff.o): relocation R_X86_64_32 against `predefined_types_' can not be used when making a shared object; recompile with -fPIC
/home/tikim/lib/hdf5-1.8.20/build/lib/libhdf5_fortran.a: error adding symbols: Bad value
make[2]: *** [lib/libdneci.so] Error 1
make[1]: *** [External/NECI/src/CMakeFiles/libdneci.dir/all] Error 2
make: *** [all] Error 2
Now, I try to add flags '-fPIC' to CMAKE_Fortran_FLAGS but it does not fix this problem.
I don't know what I should do.
Offline
Maybe HDF5 should be compiled with -fPIC ?
Offline