Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors when we run: make meshfem3D #756

Open
Ram1708 opened this issue Sep 8, 2021 · 7 comments
Open

errors when we run: make meshfem3D #756

Ram1708 opened this issue Sep 8, 2021 · 7 comments

Comments

@Ram1708
Copy link

Ram1708 commented Sep 8, 2021

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
Copy link
Contributor

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
Copy link
Author

Ram1708 commented Sep 8, 2021

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
Copy link
Author

Ram1708 commented Sep 8, 2021

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
Copy link
Contributor

danielpeter commented Sep 8, 2021

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
Copy link

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

@danielpeter
Copy link
Contributor

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

@Ram1708
Copy link
Author

Ram1708 commented Sep 15, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants