siesta-4.1-b1 Compilation Error

Asked by Virendra Kumar on 2018-11-13

siesta-4.1-b1/Src/m_mixing.F90:2743:12:

     res1 => val(pD1)
            1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/virendra/SimulationSoftware/siesta-4.1.b1/siesta-4.1-b1/Src/m_mixing.F90:2746:12:

     res2 => val(pD1)
            1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/virendra/SimulationSoftware/siesta-4.1.b1/siesta-4.1-b1/Src/m_mixing.F90:2763:12:

     rres => val(dD1)
            1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/virendra/SimulationSoftware/siesta-4.1.b1/siesta-4.1-b1/Src/m_mixing.F90:2671:10:

     sF => val(dD1)
          1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/virendra/SimulationSoftware/siesta-4.1.b1/siesta-4.1-b1/Src/m_mixing.F90:2716:13:

        FF => val(dD1)
             1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/virendra/SimulationSoftware/siesta-4.1.b1/siesta-4.1-b1/Src/m_mixing.F90:2544:10:

     d1 => val(dD1)
          1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
make: *** [arch.make:60: m_mixing.o] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
Siesta Edit question
Assignee:
No assignee Edit question
Solved by:
Virendra Kumar
Solved:
2018-11-17
Last query:
2018-11-17
Last reply:
2018-11-17
Nick Papior (nickpapior) said : #1

Don't use 4.1-b1, please update to 4.1-b4.

Virendra Kumar (viru-kumar) said : #2

Dear Nick,

Thanks for your suggestion siesta 4.1-b4 compiled successfully . with the following flags

Siesta Version : v4.1-b4
Architecture : x86_64-unknown-linux-gnu--Gfortran
Compiler version: GNU Fortran (GCC) 8.2.1 20181105 (Red Hat 8.2.1-5)
Compiler flags : /usr/lib64/openmpi/bin/mpif90 -g -O2
PP flags : -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DCDF -DGRID_DP -DPHI_GRID_SP -DCDF -DN1 -DNCDF_4 -DSIESTA__FLOOK -DSIESTA__METIS -DSIESTA__ELPA
Libraries : libncdf.a libfdict.a libfdict.a -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz -lfloookall -ldl -L/usr/lib64 -lmetis -L/usr/lib64/openmpi/lib -lelpa libncdf.a libfdict.a libfdict.a -lpthread /usr/lib64/openmpi/lib/libscalapack.a /usr/lib64/liblapack.a /usr/lib64/libblas.a
PARALLEL version
NetCDF support
NetCDF-4 support
METIS ordering support

* Running on 4 nodes in parallel
>> Start of run: 17-NOV-2018 15:13:49

                           ***********************
                           * WELCOME TO SIESTA *
                           ***********************

reinit: Reading from standard input
reinit: Dumped input in INPUT_TMP.70118
************************** Dump of input data file ****************************

But while compilation its is giving some warnings: will it affect in computation result

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/xmlparser/m_reader.f90:168:0:

       fb%buffer = str(1:len)

Warning: ‘__builtin_memcpy’ reading 1024 bytes from a region of size 81 [-Wstringop-overflow=]
/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/xmlparser/m_reader.f90:176:0:

       fb%buffer = str(1:len) !! Avoid allocation of string

Warning: ‘__builtin_memcpy’ reading 1024 bytes from a region of size 81 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:226:0:

        str_tmp = trim(str_tmp)//'+rev-CM+priority' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067987 and 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:232:0:

        str_tmp = trim(str_tmp)//'+rev-CM' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067978 and 18446744073709551609 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:238:0:

        str_tmp = trim(str_tmp)//'+CM+priority' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067983 and 18446744073709551604 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:244:0:

        str_tmp = trim(str_tmp)//'+CM' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067974 and 18446744073709551613 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:294:0:

        str_tmp = trim(str_tmp)//'+rev-PCG+priority' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067988 and 18446744073709551599 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:300:0:

        str_tmp = trim(str_tmp)//'+rev-PCG' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067979 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:306:0:

        str_tmp = trim(str_tmp)//'+PCG+priority' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067984 and 18446744073709551603 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

/home/virendra/SimulationSoftware/siesta/siesta-4.1-b4-Test/Src/m_ts_pivot.F90:312:0:

        str_tmp = trim(str_tmp)//'+PCG' // trim(from_elec)

Warning: ‘__builtin_memset’ specified size between 18446744071562067975 and 18446744073709551612 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
223372036854775807 [-Wstringop-overflow=]

Nick Papior (nickpapior) said : #3

No. They don't.

Virendra Kumar (viru-kumar) said : #4

Thank you very much Nick for your wornderful support/help