This thread is locked.Only browsing is available.
Top Page > Browsing
Error with gcc v10 +
Date: 2021/07/29 22:49
Name: Samuel Dechamps   <samuel.dechamps@uclouvain.be>

Dear OpenMX developers,

there seem to be an error with OpenMX when it is installed with GCC/10 or higher.

I have the two following build :

MPI_RUN = /opt/sw/arch/easybuild/2019b/software/OpenMPI/3.1.4-GCC-8.3.0
SCALAPACK = /opt/sw/arch/easybuild/2019b/software/ScaLAPACK/2.0.2-gompi-2019b/
OPENBLAS = /opt/sw/arch/easybuild/2019b/software/OpenBLAS/0.3.7-GCC-8.3.0/
FFTW = /opt/sw/arch/easybuild/2019b/software/FFTW/3.3.8-gompi-2019b/

---

MPI_RUN = /opt/sw/arch/easybuild/2020b/software/OpenMPI/4.0.5-GCC-10.2.0/
SCALAPACK = /opt/sw/arch/easybuild/2020b/software/ScaLAPACK/2.1.0-gompi-2020b/
OPENBLAS = /opt/sw/arch/easybuild/2020b/software/OpenBLAS/0.3.12-GCC-10.2.0/
FFTW = /opt/sw/arch/easybuild/2020b/software/FFTW/3.3.8-gompi-2020b/

---

And only the second leads to an error when doing :

mpif90 -O3 -fopenmp -c elpa1.f90

Which was already raised here : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957639

I hope notifying this bug can help you.

Regards,
S. Dechamps
メンテ
Page: [1]

Re: Error with gcc v10 + ( No.1 )
Date: 2021/07/30 00:27
Name: Pavel Ondracka  <pavel.ondracka@email.cz>

I'm neither an OpenMX developer nor fortran expert (so I can't say if this should be fixed here or if gfortran is just too strict), however -fallow-argument-mismatch compiler option should make it work.
メンテ
Re: Error with gcc v10 + ( No.2 )
Date: 2021/07/30 12:44
Name: T. Ozaki

Hi,

gcc v10 reports an error if variables with the same name are allocated in different variable types
even in different subroutines. But this is not an error apparently.
So, please just add -fallow-argument-mismatch as FC option as suggested by Dr. Ondracka.

A similar report is also found at
http://www.openmx-square.org/forum/patio.cgi?mode=view&no=2704

Regards,

TO
メンテ

Page: [1]