linking problem yambo4.4.0
Posted: Thu Sep 19, 2019 1:16 pm
Hallo,
I'm compiling the last release of Yambo on Intel(R) Xeon(R) CPU E5-2670 (CentOS 6.9) in parallel (Openmpi version 1.8.) with a rather old fortran compiler gfortran gcc 4.4.7 but with the c-interoperability and fortran 2003 support and hdf5 support.
This is my configure
./configure FC=gfortran MPIFC=mpif90 --enable-3d-fft --enable-dp --enable-mpi --enable-internal-fftsg --enable-par-linalg --enable-int-linalg --enable-iotk --enable-netcdf --enable-etsf-io --enable-netcdf-hdf5
I get the following error
>>>[Linking p2y]<<<
make[2]: Entering directory `/home/pino/yambo-4.4.0/interfaces/p2y'
qeh5_module.f90:693.15:
buf = c_loc(text)
1
Error: CHARACTER argument 'text' to 'c_loc' at (1) must have a length of 1
qeh5_module.f90:484.16:
ptr = C_LOC(integer_data)
1
Error: Assumed-shape array 'integer_data' at (1) cannot be an argument to the procedure 'c_loc' because it is not C interoperable
make[2]: *** [qeh5_module.o] Error 1
make[2]: Leaving directory `/home/pino/yambo-4.4.0/interfaces/p2y'
make[1]: *** [p2y] Error 2
make[1]: Leaving directory `/home/pino/yambo-4.4.0'
p2y build failed
I've taken a look into the code and it seems to me that the routines where the error generates are not called anywhere (I'm not sure).
Do you have suggestions?
Thank you very much
Giuseppe
I'm compiling the last release of Yambo on Intel(R) Xeon(R) CPU E5-2670 (CentOS 6.9) in parallel (Openmpi version 1.8.) with a rather old fortran compiler gfortran gcc 4.4.7 but with the c-interoperability and fortran 2003 support and hdf5 support.
This is my configure
./configure FC=gfortran MPIFC=mpif90 --enable-3d-fft --enable-dp --enable-mpi --enable-internal-fftsg --enable-par-linalg --enable-int-linalg --enable-iotk --enable-netcdf --enable-etsf-io --enable-netcdf-hdf5
I get the following error
>>>[Linking p2y]<<<
make[2]: Entering directory `/home/pino/yambo-4.4.0/interfaces/p2y'
qeh5_module.f90:693.15:
buf = c_loc(text)
1
Error: CHARACTER argument 'text' to 'c_loc' at (1) must have a length of 1
qeh5_module.f90:484.16:
ptr = C_LOC(integer_data)
1
Error: Assumed-shape array 'integer_data' at (1) cannot be an argument to the procedure 'c_loc' because it is not C interoperable
make[2]: *** [qeh5_module.o] Error 1
make[2]: Leaving directory `/home/pino/yambo-4.4.0/interfaces/p2y'
make[1]: *** [p2y] Error 2
make[1]: Leaving directory `/home/pino/yambo-4.4.0'
p2y build failed
I've taken a look into the code and it seems to me that the routines where the error generates are not called anywhere (I'm not sure).
Do you have suggestions?
Thank you very much
Giuseppe