gfortran-openMP probelm durigng the compilation

David T amazing... at gmail.com
Sat Sep 29 16:52:24 UTC 2012


Dear all,
I am not really expert in compiling so I apologise in advanced if my 
problem is trivial (siily).
I am trying to compile a openMP version using gfortran. Unfortunately I 
have some issue that I can't fix by my own.
This is my arch file:

# tested with gcc 4.4.0
CC       = cc
CPP      =
FC       = mpif90 -openmp
LD       = mpif90 -openmp
AR       = ar -r
CPPFLAGS =
DFLAGS   =  -D__GFORTRAN -D__FFTSG -D__LIBINT -D__parallel -D__SCALAPACK 
-D__BLACS -D__FFTW3 
FCFLAGS  = -g -O2 -ffast-math -funroll-loops -ftree-vectorize -march=native 
-ffree-form $(DFLAGS)
LDFLAGS  = $(FCFLAGS)
LIBS     =  -llapack -lblas -lfftw3
OBJECTS_ARCHITECTURE = machine_gfortran.o


And this is the error I had during the compilation:

ar: creating 
/home/dt378/cp2k/trunk/cp2k/makefiles/../lib/Linux-x86-64-gfortran/psmp/libcp2k_fft_lib.a
ar: ctrig.o: No such file or directory
make[2]: *** 
[/home/dt378/cp2k/trunk/cp2k/makefiles/../lib/Linux-x86-64-gfortran/psmp/libcp2k_fft_lib.a] 
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/home/dt378/cp2k/trunk/cp2k/obj/Linux-x86-64-gfortran/psmp'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/dt378/cp2k/trunk/cp2k/makefiles'
make: *** [psmp] Error 2

I tried to figure out what is ctrig without succes and I am actually stuck.
Any help?

Thanks a lot
Davide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20120929/c37dead1/attachment.htm>


More information about the CP2K-user mailing list