[DFTB-Plus-User] DFTB compiling error

Alessandro Landi alelandi1 at unisa.it
Thu Apr 5 17:47:02 CEST 2018


Dear all, 

I have recently downloaded the version 18.1 of DFTB+, in the path
/home/xelad/dftbplus-18.1 

However, when I try to compile (following the suggestions in INSTALL.rst
file), I get the following error after typing the command "make": 

mkdir -p /home/xelad/dftbplus-18.1/_build/external/fsockets
make -C /home/xelad/dftbplus-18.1/_build/external/fsockets \
          -f /home/xelad/dftbplus-18.1/external/fsockets/make.dpbuild \
          ROOT=/home/xelad/dftbplus-18.1
BUILDROOT=/home/xelad/dftbplus-18.1/_build
make[1]: Entering directory
`/home/xelad/dftbplus-18.1/_build/external/fsockets'
gcc    -c -o sockets.o
/home/xelad/dftbplus-18.1/external/fsockets/sockets.c
gfortran -O2 -funroll-all-loops -fopenmp -o fsockets.o -c
/home/xelad/dftbplus-18.1/external/fsockets/fsockets.f90
/home/xelad/dftbplus-18.1/external/fsockets/fsockets.f90:212.43: 
    call readbuffer_socket_c(sockfd, c_loc(fdata), 8_c_int * size(fdata,
kind=c
                                           1
Error: Assumed-shape array 'fdata' at (1) cannot be an argument to the
procedure 'c_loc' because it is not C interoperable
/home/xelad/dftbplus-18.1/external/fsockets/fsockets.f90:166.44: 
    call writebuffer_socket_c(sockfd, c_loc(fdata), 8_c_int *
size(fdata, kind=
                                            1
Error: Assumed-shape array 'fdata' at (1) cannot be an argument to the
procedure 'c_loc' because it is not C interoperable
make[1]: *** [fsockets.o] Error 1
make[1]: Leaving directory
`/home/xelad/dftbplus-18.1/_build/external/fsockets'
make: *** [external_fsockets] Error 2 

Could you please help me understanding what I am doing wrong? 

Best regards, 
Alessandro 

-- 

> Alessandro Landi, Ph.D. Student

> Università degli Studi di Salerno 
> Dipartimento di Chimica e Biologia "Adolfo Zambelli"
> Via Giovanni Paolo II, 132 - 84084 Fisciano (SA), Italy
> Phone number +39 089969390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.zfn.uni-bremen.de/pipermail/dftb-plus-user/attachments/20180405/f48f42e3/attachment.html>


More information about the DFTB-Plus-User mailing list