[Pw_forum] [qe-gpu]

nihalraz at iitk.ac.in nihalraz at iitk.ac.in
Mon May 25 13:31:33 CEST 2015

Dear users

I am getting the following error while compiling qe-gpu qe-gpu 14.10.0 with
espresso-5.1.2 on ubuntu 14.04.

/usr/bin/ld: /home/mool/espresso-GPU/GPU/..//BLAS/blas.a(sgemm.o): relocation
R_X86_64_32 against `.rodata' can not be used when making a shared object;
recompile with -fPIC
/home/mool/espresso-GPU/GPU/..//BLAS/blas.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [shared] Error 1
make[3]: Leaving directory `/home/mool/espresso-GPU/phiGEMM/src'
make[2]: *** [phigemm] Error 2
make[2]: Leaving directory `/home/mool/espresso-GPU/phiGEMM'
make[1]: *** [libphiGEMM] Error 2
make[1]: Leaving directory `/home/mool/espresso-GPU/GPU/install'
make: *** [libphiGEMM] Error 2

Can someone please explain how to compile BLAS with -fPIC and solve this
problem in detail as we are getting the same error again and again. Also
we modified  "make.inc" "OPTS = -shared -O2 -fPIC", but upon make -f
Makefile.gpu pw-gpu, it changes back to "OPTS = -O2".

Thanking You

Nihal Raj

More information about the users mailing list