This thread is locked.Only browsing is available.
Top Page > Browsing
Issue Compiling OpenMX 3.9
Date: 2020/07/01 05:28
Name: David   <davgumo@me.com>

Hi,
I am trying to compile the code with openmpi and scalapack from netlib ( I do not have intel fortran or intel MKL), but I am getting the following error:

In file included from TRAN_DFT.c:25:
openmx_common.h:75: error: redefinition of typedef ‘Type_Orbs_Grid’
tran_prototypes.h:36: note: previous declaration of ‘Type_Orbs_Grid’ was here
make: *** [TRAN_DFT.o] Error 1

it seems like this has been mentioned before but I can't find a clear solution here in the forum. Can any body give me a hand?

This is my makefile:

CC = /home/davidguzman/Apps/openmpi_3.1.6_install/bin/mpicc -O3 -fopenmp -ffast-math -I/home/davidguzman/Apps/openmpi_3.1.6_install/include
FC = /home/davidguzman/Apps/openmpi_3.1.6_install/bin/mpif90 -O3 -fopenmp -ffast-math -I/home/davidguzman/Apps/openmpi_3.1.6_install/include
LIB = -L/home/davidguzman/Apps/openmpi_3.1.6_install/lib -lmpi -lmpi_mpifh -lgfortran -lpthread -liomp5 -L/usr/lib64 -llapack -lblas -L/home/davidguzman/Apps/scalapack -lscalapack -L/home/davidguzman/Apps/fftw-3.3.8_lib/lib -lfftw3

Thanks,
David
メンテ
Page: [1]

Re: Issue Compiling OpenMX 3.9 ( No.1 )
Date: 2020/07/01 12:58
Name: Naoya Yamaguchi

Hi,

Your error is similar to No. 1-9 in the following thread:
http://www.openmx-square.org/forum/patio.cgi?mode=view&no=2560&p=2

This issue may occur when compilation is done with an old version of compilers as reported in the above thread.
Please try to use a newer compiler if you use an old compiler such as gcc4.

Regards,
Naoya Yamaguchi
メンテ

Page: [1]