SPECFEM / specfem3d_globe

SPECFEM3D_GLOBE simulates global and regional (continental-scale) seismic wave propagation.
GNU General Public License v3.0
90 stars 96 forks source link

errors when we run: make meshfem3D #756

Open Ram1708 opened 3 years ago

Ram1708 commented 3 years ago

Specfem3d is configure propoerly, but when we run "$ make meshfem3D" at command prompt it partially run with some errors as shown below: gfortran -g -O2 -std=gnu -fimplicit-none -frange-check -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow -Wunused -Werror -O3 -finline-functions -J./obj -I./obj -I. -I. -I./setup -c -o obj/model_s40rts.check.o src/meshfem3D/model_s40rts.f90 gfortran -g -O2 -std=gnu -fimplicit-none -frange-check -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow -Wunused -Werror -O3 -finline-functions -J./obj -I./obj -I. -I. -I./setup -c -o obj/model_s362ani.check.o src/meshfem3D/model_s362ani.f90 src/meshfem3D/model_s362ani.f90:995:0:

995 substr=string(17:lstr)

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 112 [-Werror=stringop-overflow=] src/meshfem3D/model_s362ani.f90:1007:0:

1007 substr=string(12:len_trim(string))

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 117 [-Werror=stringop-overflow=] src/meshfem3D/model_s362ani.f90:1019:0:

1019 substr=string(26:len_trim(string))

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 103 [-Werror=stringop-overflow=] src/meshfem3D/model_s362ani.f90:1026:0:

1026 substr=string(10:len_trim(string))

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 119 [-Werror=stringop-overflow=] src/meshfem3D/model_s362ani.f90:1038:0:

1038 substr=string(30:len_trim(string))

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 99 [-Werror=stringop-overflow=] src/meshfem3D/model_s362ani.f90:1080:0:

1080 substr=string(10:len_trim(string))

Error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 119 [-Werror=stringop-overflow=] f951: all warnings being treated as errors make: *** [src/meshfem3D/rules.mk:293: obj/model_s362ani.check.o] Error 1

danielpeter commented 3 years ago

could you try out the most recent devel branch version?

from the wiki:

 git clone --recursive --branch devel https://github.com/geodynamics/specfem3d_globe.git

this might have been fixed there - and if not, could you specify which gfortran compiler version you used?

Ram1708 commented 3 years ago

could you try out the most recent devel branch version?

from the wiki:

 git clone --recursive --branch devel https://github.com/geodynamics/specfem3d_globe.git

this might have been fixed there - and if not, could you specify which gfortran compiler version you used?

Ram1708 commented 3 years ago

Dear Dr. Peter, Thank you very much for your prompt reply. Yesterday, I have downloaded using following command: git clone --recursive https://github.com/geodynamics/specfem3d_globe.git

gfortan version is 9.3.0 is used

ram@ram:~$ gfortran --version GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

Regards Dr. B Sairam

danielpeter commented 3 years ago

you're still on the master branch then. when cloning, you need to have the flag --branch devel added to be in the devel branch.

with your current repo, you still need to checkout the devel branch version explicitely:

git checkout devel

to see on which branch you are:

git branch -a

the devel branch version will become the master soon...

markwiederspahn commented 3 years ago

I had the same issue under Ubuntu-2004LTS. Using the 8.0 devel branch worked fine.

danielpeter commented 3 years ago

thanks for your feedback! time to update that master branch then...

Ram1708 commented 3 years ago

could you try out the most recent devel branch version?

from the wiki:

 git clone --recursive --branch devel https://github.com/geodynamics/specfem3d_globe.git

could you try out the most recent devel branch version?

from the wiki:

git clone --recursive --branch devel https://github.com/geodynamics/specfem3d_globe.git

this might have been fixed there - and if not, could you specify which gfortran compiler version you used?

this might have been fixed there - and if not, could you specify which gfortran compiler version you used?