
Re: Error while compiling Wannier90
Hi Sam,
This procedure did not solve the problem, but I think I found a work around. I downloaded Wannier90 on its own and extracted the package inside qe-6.1, so now the directory wannier90-2.1.0 seems to have all the important files, including the Makefile and the src directory.
The compilation of wannier90 went through, but then I encountered a different problem. The compilation stopped with
Code:
mpif90 -g -pthread -o epw.x \
epw.o libepw.a ../../PHonon/PH/libph.a ../../LR_Modules/liblrmod.a ../../wannier90-2.1.0/libwannier.a ../../PW/src/libpw.a ../../Modules/libqemod.a ../../FFTXlib/libqefft.a ../../LAXlib/libqela.a ../../clib/clib.a ../../iotk/src/libiotk.a -llapack -lblas -L/usr/local/Cellar/fftw/3.3.6-pl2/lib -lfftw3 -lblas -L/usr/local/Cellar/hdf5/1.10.1/lib/ -lhdf5
duplicate symbol _main in:
epw.o
libepw.a(epw.o)
ld: 1 duplicate symbol for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [epw.x] Error 1
make[1]: *** [epw] Error 2
make: *** [epw] Error 1
I solved this problem by editing the file EPW/src/Makefile and removing epw.o from the list of EPWOBJS that are used to generate the library. Then the compilation succeded.
Thanks,
Gabriel