Thanks for the response. I have tried making a fresh build using
cmake -DCMAKE_INSTALL_PREFIX=~/dealii.8.5/installed -DDEAL_II_WITH_MPI=ON -DLAPACK_DIR=~/Downloads/lapack-3.8.0 ../dealii-9.1.1
/usr/bin/ld.gold: error: /usr/local/src/.hashdist/bld/profile/jt2gqapqwvxz/lib/libscalapack.a(slamov.o): requires dynamic R_X86_64_PC32 reloc against 'slacpy_' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/local/src/.hashdist/bld/profile/jt2gqapqwvxz/lib/libscalapack.a(dlamov.o): requires dynamic R_X86_64_PC32 reloc against 'dlacpy_' which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libdeal_II.so.9.1.1] Error 1
make[1]: *** [source/CMakeFiles/deal_II.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld.gold: error: /usr/local/src/.hashdist/bld/profile/jt2gqapqwvxz/lib/libscalapack.a(slamov.o): requires dynamic R_X86_64_PC32 reloc against 'slacpy_' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/local/src/.hashdist/bld/profile/jt2gqapqwvxz/lib/libscalapack.a(dlamov.o): requires dynamic R_X86_64_PC32 reloc against 'dlacpy_' which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libdeal_II.g.so.9.1.1] Error 1
make[1]: *** [source/CMakeFiles/deal_II.g.dir/all] Error 2
make: *** [all] Error 2
I am also attaching the new log files and the make.inc file I used to compile lapack locally on my account on the server.
-Swami.