This thread is locked.Only browsing is available.
Top Page > Browsing
Compilation error version 3.8
Date: 2016/04/18 21:24
Name: Mauro Sgroi   <maurofrancesco.sgroi@gmail.com>

Dear developers,
I'm trying to install openmx but I get the following compilation error:

mpicc -O3 -mtune=native -fopenmp -I/usr/apl/openmpi/1.10.0/include -I/usr/apl/qespresso/prereq/fftw/3.3.4_ompi-1.10.0/include -I./liberi-091216/source -c openmx.c
In file included from openmx.c:71:
tran_prototypes.h:35: error: redefinition of typedef ‘Type_Orbs_Grid’
openmx_common.h:72: note: previous declaration of ‘Type_Orbs_Grid’ was here
make: *** [openmx.o] Error 1

my gcc version is 4.4.6.
Could you help me to understand the problem?

Thanks a lot and best regards,
Mauro Sgroi.
メンテ
Page: [1]

Re: Compilation error version 3.8 ( No.1 )
Date: 2016/04/19 16:48
Name: T. Ozaki

Hi,

Temporally, please replace the 35th line:

typedef float Type_Orbs_Grid; /* type of Orbs_Grid */

in tran_prototypes.h by

#ifndef ___Type_Orbs_Grid_definition___
typedef float Type_Orbs_Grid; /* type of Orbs_Grid */
#define ___Type_Orbs_Grid_definition___
#endif

After correcting a couple of reported problems, we will post a patch for those problems.

Regards,

TO
メンテ
Re: Compilation error version 3.8 ( No.2 )
Date: 2016/04/19 18:23
Name: Mauro Sgroi  <maurofrancesco.sgroi@gmail.com>

Dear Prof. Ozaki,
thanks a lot.
I had to do the same modification in openmx_common.h but now the code compiles.
Best regards,
Mauro Sgroi.
メンテ

Page: [1]