gpaw installation error with python3.8 and libxc.4.3.4
Hello, I've been trying to install gpaw under python3.8, libxc.4.3.4, and ubuntu 16.04. I get the following error, however I managed to install it under python2.7 and libxc.2.1.2. I appreciate if you could direct me to the right set of setting or configuration file.
error:
mpicc -pthread -shared build/temp.linux-x86_64-3.8/c/_gpaw.o build/temp.linux-x86_64-3.8/c/bc.o build/temp.linux-x86_64-3.8/c/blacs.o build/temp.linux-x86_64-3.8/c/blas.o build/temp.linux-x86_64-3.8/c/bmgs/bmgs.o build/temp.linux-x86_64-3.8/c/constraints.o build/temp.linux-x86_64-3.8/c/elpa.o build/temp.linux-x86_64-3.8/c/fd_preconditioner.o build/temp.linux-x86_64-3.8/c/fftw.o build/temp.linux-x86_64-3.8/c/lcao.o build/temp.linux-x86_64-3.8/c/lfc.o build/temp.linux-x86_64-3.8/c/lfc2.o build/temp.linux-x86_64-3.8/c/mpi.o build/temp.linux-x86_64-3.8/c/operators.o build/temp.linux-x86_64-3.8/c/plane_wave.o build/temp.linux-x86_64-3.8/c/plt.o build/temp.linux-x86_64-3.8/c/point_charges.o build/temp.linux-x86_64-3.8/c/spline.o build/temp.linux-x86_64-3.8/c/symmetry.o build/temp.linux-x86_64-3.8/c/tetra.o build/temp.linux-x86_64-3.8/c/transformers.o build/temp.linux-x86_64-3.8/c/utilities.o build/temp.linux-x86_64-3.8/c/wigner_seitz.o build/temp.linux-x86_64-3.8/c/woperators.o build/temp.linux-x86_64-3.8/c/xc/ensemble_gga.o build/temp.linux-x86_64-3.8/c/xc/libvdwxc.o build/temp.linux-x86_64-3.8/c/xc/libxc.o build/temp.linux-x86_64-3.8/c/xc/m06l.o build/temp.linux-x86_64-3.8/c/xc/pbe.o build/temp.linux-x86_64-3.8/c/xc/pw91.o build/temp.linux-x86_64-3.8/c/xc/revtpss.o build/temp.linux-x86_64-3.8/c/xc/revtpss_c_pbe.o build/temp.linux-x86_64-3.8/c/xc/rpbe.o build/temp.linux-x86_64-3.8/c/xc/tpss.o build/temp.linux-x86_64-3.8/c/xc/vdw.o build/temp.linux-x86_64-3.8/c/xc/xc.o build/temp.linux-x86_64-3.8/c/xc/xc_mgga.o -lxc -lblas -lfftw3 -lscalapack-openmpi -o build/lib.linux-x86_64-3.8/_gpaw.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libxc.a(functionals.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libxc.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'mpicc' failed with exit status 1
The siteconfig.py is:
fftw = True
scalapack = True
libraries = ['xc', 'blas', 'fftw3', 'scalapack-openmpi']
Edited by Jens Jørgen Mortensen