ERROR while compiling executable

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
Sobhan_yousefi1994
Posts: 4
Joined: Tue Jul 25, 2023 8:36 pm
Location: Imam Hussein University

ERROR while compiling executable

#1 Unread post by Sobhan_yousefi1994 »

Hello there...

I am new to ROMS and when I was compiling roms via code bellow:
$ ./build_roms.sh -j 2
after a while, Finally. I've received the error bellow:

Code: Select all

stats.f90:177:35:

  177 |       CALL get_hash (Cwrk, Npts, S.checksum)
      |                                   1
Error: Syntax error in argument list at (1)
cd /home/ubuntu/roms_project/sobhan/Build_romsG; /usr/bin/gfortran -c -frepack-arrays -fallow-argument-mismatch        -g -O0 -fbounds-check -fbacktrace -fcheck=all -finit-real=nan -ffpe-trap=invalid,zero,overflow frc_adjust.f90
stats.f90:377:35:

  377 |       CALL get_hash (Cwrk, Npts, S.checksum)
      |                                   1
Error: Syntax error in argument list at (1)
cd /home/ubuntu/roms_project/sobhan/Build_romsG; /usr/bin/gfortran -c -frepack-arrays -fallow-argument-mismatch        -g -O0 -fbounds-check -fbacktrace -fcheck=all -finit-real=nan -ffpe-trap=invalid,zero,overflow def_dim.f90
stats.f90:586:35:

  586 |       CALL get_hash (Cwrk, Npts, S.checksum)
      |                                   1
Error: Syntax error in argument list at (1)
make: *** [ROMS/Utility/Module.mk:14: /home/ubuntu/roms_project/sobhan/Build_romsG/stats.o] Error 1
make: *** Waiting for unfinished jobs....

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
GNU Build script command:      build_roms.sh -j 2
ROMS source directory:         /home/ubuntu/roms/trunk
ROMS build  directory:         /home/ubuntu/roms_project/sobhan/Build_romsG
ROMS Application:              UPWELLING
Fortran compiler:              gfortran
Fortran flags:                 -frepack-arrays -fallow-argument-mismatch -g -O0 -fbounds-check -fbacktrace -fcheck=all -finit-real=nan -ffpe-trap=invalid,zero,overflow
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
what is the reason of these errors?

robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: ERROR while compiling executable

#2 Unread post by robertson »

Yes, this is indeed a syntax error caused by a typo: S.checksum should be S%checksum.

Thank you for reporting this error. The correction has been made, please update your code.

Sobhan_yousefi1994
Posts: 4
Joined: Tue Jul 25, 2023 8:36 pm
Location: Imam Hussein University

Re: ERROR while compiling executable

#3 Unread post by Sobhan_yousefi1994 »

thank you Mr. Robertson. It worked.

Post Reply