Error compiling with PGI
Posted: Thu Jan 11, 2018 11:36 pm
I'm getting the following error when compiling with PGI compiler:
/usr/bin/ld: control/magma_f77.o: Relocations in generic ELF (EM: 21)
control/magma_f77.o: error adding symbols: File in wrong format
Makefile:605: recipe for target 'lib/libmagma.so' failed
make: *** [lib/libmagma.so] Error 2
My make.inc file looks like this:
CC = /opt/pgi/linux86-64/17.4/bin/pgcc
CXX = /opt/pgi/linux86-64/17.4/bin/pgc++
NVCC = /usr/local/cuda-9.0/bin/nvcc
FORT = /opt/pgi/linux86-64/2017/bin/pgfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
Do you have any ideas what the error might be?
/usr/bin/ld: control/magma_f77.o: Relocations in generic ELF (EM: 21)
control/magma_f77.o: error adding symbols: File in wrong format
Makefile:605: recipe for target 'lib/libmagma.so' failed
make: *** [lib/libmagma.so] Error 2
My make.inc file looks like this:
CC = /opt/pgi/linux86-64/17.4/bin/pgcc
CXX = /opt/pgi/linux86-64/17.4/bin/pgc++
NVCC = /usr/local/cuda-9.0/bin/nvcc
FORT = /opt/pgi/linux86-64/2017/bin/pgfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
Do you have any ideas what the error might be?