error of compilation Util/TS/TBtrans

Asked by 翟明星

Dear all:

 I have compiled TranSIESTA-4.1-b4. when I running make in the folder Utils/TS/TBtrans returns me the following error:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incorporating information about present compilation (compiler and flags)
make[1]: Entering directory `/public1/home/sc50250/software/siesta-4.1-b4/Util/TS/TBtrans'
mpif90 -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include -DMPI -DFC_HAVE_ABORT -DCDF -DNCDF -DNCDF_4 -DTBTRANS compinfo.F90
make[1]: Leaving directory `/public1/home/sc50250/software/siesta-4.1-b4/Util/TS/TBtrans'

mpif90 -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include -DMPI -DFC_HAVE_ABORT -DCDF -DNCDF -DNCDF_4 -DTBTRANS tbt_init.F90
tbt_init.F90:46.6:

  use m_tbt_kpoint
      1
Fatal Error: Can't open module file 'm_tbt_kpoint.mod' for reading at (1): No such file or directory
make: *** [tbt_init.o] Error 1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

The arch.make is posted below:

.SUFFIXES:
.SUFFIXES: .f .F .o .c .a .f90 .F90

SIESTA_ARCH = unknown

CC = gcc
FPP = $(FC) -E -P -x c
FC = mpif90
FC_SERIAL = gfortran

FFLAGS += -O2 -fPIC -ftree-vectorize -march=native
FPPFLAGS += -DMPI
FFLAGS += -fopenmp

AR = ar
ARFLAGS_EXTRA =
RANLIB = ranlib

SYS = nag

SP_KIND = 4
DP_KIND = 8
KINDS = $(SP_KIND) $(DP_KIND)

DEFS_PREFIX =
LDFLAGS =

# source files.
FCFLAGS_fixed_f =
FCFLAGS_free_f90 =
FPPFLAGS_fixed_F =
FPPFLAGS_free_F90 =

#BLAS_LIBS = -lblas
#LAPACK_LIBS = -llapack
#COMP_LIBS =
LIBS += /public1/home/sc50250/software/lib/scalapcak/2.1.0_openblas0.3.10/libscalapack.a
LIBS += -L/public1/home/sc50250/software/lib/openblas/0.3.10_gcc4.8.5/lib -lopenblas
LIBS += -L/public1/home/sc50250/software/lib/openblas/0.3.10_gcc4.8.5/lib -lopenblas

# This (as well as the -DMPI definition) is essential for MPI support
MPI_INTERFACE = libmpi_f90.a
MPI_INCLUDE = .

FPPFLAGS += $(DEFS_PREFIX)-DFC_HAVE_ABORT

LIBS += $(NETCDF_LIBS) $(SCALAPACK_LIBS) $(LAPACK_LIBS) $(MPI_LIBS) $(COMP_LIBS)
LIBS += -fopenmp

FFLAGS_DEBUG = -g -O0 # your appropriate flags here...

atom.o: atom.F
        $(FC) -c $(FFLAGS_DEBUG) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F) $<

#
#---------------- Example of actual rules
.c.o:
        $(CC) -c $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) $<
.F.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F) $<
.F90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90) $<
.f.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f) $<
.f90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_free_f90) $<

Question information

Language:
English Edit question
Status:
Solved
For:
CentOS Edit question
Assignee:
No assignee Edit question
Solved by:
翟明星
Solved:
Last query:
Last reply:
Revision history for this message
Nick Papior (nickpapior) said :
#1

This is a buggy compiler which claims it has full OpenMP 4 support, but doesn't.

Please use a newer compiler (gcc 10 is out, that is 7 major releases after 4.8). :)

Revision history for this message
翟明星 (mxzhai) said :
#2

Ok,thanks!