To use gfortran:

sh ../Src/obj_setup.sh

../Src/configure

sed 's/f95/gfortran/g' arch.make > 0; mv -f 0 arch.make

make
.....
m_ntm.o m_dipol.o  m_kinetic.o  m_rmaxh.o m_forces.o m_stress.o m_eo.o
m_spin.o m_gamma.o m_hsx.o m_fire.o setup_H0.o get_target_stress.o
fire_optim.o zm_fire_optim.o cell_fire_optim.o m_fire_para.o
m_fire_mixing.o write_raw_efs.o fsiesta_mpi.o final_H_f_stress.o debugmpi.o
qsort.o m_dscfcomm.o schecomm.o moremeshsubs.o domain_decom.o
printmatrix.o  mmio.o pspltm1.o lenstr.o setup_ordern_indexes.o m_iodm.o
m_sparse.o m_filter.o m_io.o m_recipes.o m_timer.o moreParallelSubs.o
read_xc_info.o siesta_master.o bsc_xcmod.o bsc_cellxc.o xc.o vacuum_level.o
write_orb_indx.o m_hs_matrix.o kpoint_convert.o m_glob_sparse.o die.o
m_dminim.o m_zminim.o m_svd.o compute_max_diff.o save_density_matrix.o
m_rhog.o rhofft.o m_diis.o compute_energies.o class_Vector.o
class_Pair_Vectors.o class_Fstack_Pair_Vectors.o nag.o pxf.o siesta.o
libfdf.a  libxmlparser.a \
               libSiestaXC.a  \
               dc_lapack.a  `FoX/FoX-config --libs --wcml`   -llapack -lblas
/usr/bin/ld: warning: libgfortran.so.1, needed by
/usr/lib/../lib64/liblapack.so, may conflict with libgfortran.so.3

On Fri, Jan 15, 2016 at 9:59 PM, ticu Cubot <[email protected]> wrote:

> Thanks a lot for your effort!
>
> On Fri, Jan 15, 2016 at 9:49 PM, Nick Papior <[email protected]> wrote:
>
>> I mean "gfortran" command... If that was confusing.
>>
>> 2016-01-15 21:48 GMT+01:00 Nick Papior <[email protected]>:
>>
>>> I guess this is due to the f95 standard, see e.g.
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33106
>>>
>>> I do not know if your f95 forces the f95 standard, have you tried with
>>> gfortran?
>>> Otherwise you may need to change the code manually. Or try another more
>>> up to date compiler.
>>>
>>>
>>> 2016-01-15 21:41 GMT+01:00 ticu Cubot <[email protected]>:
>>>
>>>> Another story:
>>>>
>>>> f95 --version
>>>>
>>>> GNU Fortran (GCC) 4.3.6
>>>> Copyright (C) 2008 Free Software Foundation, Inc.
>>>>
>>>> ...
>>>> make clean; make
>>>> ...
>>>> f95 -c -g -O2   `FoX/FoX-config --fcflags`  -DFC_HAVE_FLUSH
>>>> -DFC_HAVE_ABORT  /home/ticu/siesta-trunk-462/Src/class_Vector.F90
>>>> /home/ticu/siesta-trunk-462/Src/class_Vector.F90:20.13:
>>>>
>>>>   type Vector
>>>>              1
>>>> Error: The component 'data' is a PRIVATE type and cannot be a component
>>>> of 'vector', which is PUBLIC at (1)
>>>> make: *** [class_Vector.o] Error 1
>>>>
>>>> That is, as with the ancient 4.1.2.
>>>>
>>>> On Fri, Jan 15, 2016 at 9:29 PM, ticu Cubot <[email protected]>
>>>> wrote:
>>>>
>>>>> On a different machine:
>>>>>
>>>>> f95 --version
>>>>> GNU Fortran (GCC) 4.6.3
>>>>> Copyright (C) 2011 Free Software Foundation, Inc.
>>>>>
>>>>> make
>>>>> ...
>>>>> /usr/bin/ld: warning: libgfortran.so.1, needed by
>>>>> /usr/lib/../lib64/liblapack.so, may conflict with libgfortran.so.3
>>>>>
>>>>> The warning is not harmless...
>>>>>
>>>>> On Fri, Jan 15, 2016 at 8:50 PM, Nick Papior <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> That is one ancient compiler. I would advice you to update.
>>>>>>
>>>>>>
>>>>>> 2016-01-15 20:45 GMT+01:00 ticu Cubot <[email protected]>:
>>>>>>
>>>>>>> f95 --version
>>>>>>>
>>>>>>> GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)
>>>>>>> Copyright (C) 2007 Free Software Foundation, Inc.
>>>>>>>
>>>>>>> A fast workaround: edit the code. As the code seems to be compiled
>>>>>>> with all
>>>>>>> module components private by default one would have to modify only
>>>>>>> that one module.
>>>>>>>
>>>>>>> On Fri, Jan 15, 2016 at 3:52 PM, Nick Papior <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Try a different compiler.
>>>>>>>>
>>>>>>>> Which version of your compiler are you using?
>>>>>>>>
>>>>>>>> 2016-01-15 15:42 GMT+01:00 ticu Cubot <[email protected]>:
>>>>>>>>
>>>>>>>>> Dear Siesta users,
>>>>>>>>>
>>>>>>>>> I had the following problem by installation in the standard manner
>>>>>>>>> indicated in the manual:
>>>>>>>>>
>>>>>>>>> pwd
>>>>>>>>>
>>>>>>>>> /home/ticu/siesta-trunk-462/Obj
>>>>>>>>> ... was ok.
>>>>>>>>>
>>>>>>>>>  ../Src/configure
>>>>>>>>> ... was ok
>>>>>>>>>
>>>>>>>>> make
>>>>>>>>> ....
>>>>>>>>> f95 -c -g -O2   `FoX/FoX-config --fcflags`  -DFC_HAVE_FLUSH
>>>>>>>>> -DFC_HAVE_ABORT  /home/ticu/siesta-trunk-462/Src/class_Vector.F90
>>>>>>>>>
>>>>>>>>>  In file /home/ticu/siesta-trunk-462/Src/class_Vector.F90:20
>>>>>>>>>
>>>>>>>>>   type Vector
>>>>>>>>>             1
>>>>>>>>> Error: The component 'data' is a PRIVATE type and cannot be a
>>>>>>>>> component of 'vector', which is PUBLIC at (1)
>>>>>>>>> make: *** [class_Vector.o] Error 1
>>>>>>>>> ~
>>>>>>>>>
>>>>>>>>> Full details in the attachment.
>>>>>>>>>
>>>>>>>>> Any help most appreciated.
>>>>>>>>>
>>>>>>>>> ticu
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Kind regards Nick
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Kind regards Nick
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Kind regards Nick
>>>
>>
>>
>>
>> --
>> Kind regards Nick
>>
>
>

Responder a