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

Error:ld returned 1exit status #350

Open
vickypulcheriachan opened this issue Jan 6, 2025 · 14 comments
Open

Error:ld returned 1exit status #350

vickypulcheriachan opened this issue Jan 6, 2025 · 14 comments

Comments

@vickypulcheriachan
Copy link

vickypulcheriachan commented Jan 6, 2025

Dear
I am learning how to use the COAWST_3.8 to conduct the case JOE_TC, The last ERROR is about"gfortran -assume", and I solved it according to your reply under another post. And "./build_coawst.sh"again,there is a error being like
屏幕截图 2025-01-06 172925

I do not know how to do with this and looking forward to your help

@jcwarner-usgs
Copy link
Collaborator

can i see the whole build.log?
this error might be ok, because i do not let wrf create a 'main' program.
type
ls -ltr
did you get a coawstM?

@vickypulcheriachan
Copy link
Author

屏幕截图 2025-01-06 214044
屏幕截图 2025-01-06 214114
屏幕截图 2025-01-06 214126
It is my second time to './build_coawst.sh' and maybe this step is not over. But the blog has stayed here for a long time. And the last time I also got here.Also maybe some thing wrong about WRF? Should I interrupt it or wait?

@jcwarner-usgs
Copy link
Collaborator

kill it.
i have seen this error before.
I is caused because you have a "-" in the path name.
your path has :
/COAWST-COAWST_v3.8/
can you make a path that does not have a "-" in it?

@vickypulcheriachan
Copy link
Author

OK, I will try to change the root name without "-".thank u sooo much!

@vickypulcheriachan
Copy link
Author

vickypulcheriachan commented Jan 7, 2025

i have finished the bash build_coawst.sh and got a coawstM
But after " mpirun -np 12 ./coawstM Projects/JOE_TC/Coupled/coupling_joe_tc.in > joe_tc.out
" There is another error
image

@vickypulcheriachan
Copy link
Author

vickypulcheriachan commented Jan 7, 2025

I also find errors in my blog of bash build_coaswt,sh. and if i should ignore it according to this post #159
image

@jcwarner-usgs
Copy link
Collaborator

after the build_coawst.sh, if you do
ls -ltr
and the coawstM is at the bottom, if it was the last thing made, then it is current and correct.
it does look like swan had an error. can you post the whole build log?
you can do
script build.log
./build_coawst.sh
when it is done type exit
then post the build.log file

@vickypulcheriachan
Copy link
Author

build.log

@jcwarner-usgs
Copy link
Collaborator

ok. so i just downloaded the code, and compiled JOE_TC. i did not get that error you show:
"[ 97%] �[32m�[1mLinking Fortran executable ../bin/swan.exe ...
/usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to main' ...."

But in reality it does not matter. Because you were able to build the libswan. so it should work ok.

The i tried to run it and it ran fine. When you get that run error, i get
"INPUT LandUse = "USGS"
INPUT LandUse = "USGS"
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
INITIALIZE THREE Noah LSM RELATED TABLES
INITIALIZE THREE Noah LSM RELATED TABLES
LANDUSE TYPE = USGS FOUND 27 CATEGORIES
LANDUSE TYPE = USGS FOUND 27 CATEGORIES
INPUT SOIL TEXTURE CLASSIFICATION = STAS
INPUT SOIL TEXTURE CLASSIFICATION = STAS
SOIL TEXTURE CLASSIFICATION = STAS FOUND 19 CATEGORIES
SOIL TEXTURE CLASSIFICATION = STAS FOUND 19 CATEGORIES
Timing for Writing wrfout_d01_2005-09-01_00:00:00 for domain 1: 0.61506 elapsed seconds
Timing for Writing wrfout_d01_2005-09-01_00:00:00 for domain 1: 0.61506 elapsed seconds
d01 2005-09-01_00:00:00 This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
d01 2005-09-01_00:00:00 Input data is acceptable to use: wrfbdy_d01
d01 2005-09-01_00:00:00 This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
d01 2005-09-01_00:00:00 Input data is acceptable to use: wrfbdy_d01
Timing for processing lateral boundary for domain 1: 0.01935 elapsed seconds
Timing for processing lateral boundary for domain 1: 0.01935 elapsed seconds
Tile Strategy is not specified. Assuming 1D-Y
WRF TILE 1 IS 1 IE 200 JS 1 JE 150
Tile Strategy is not specified. Assuming 1D-Y
WRF TILE 1 IS 1 IE 200 JS 1 JE 150
WRF NUMBER OF TILES = 1
WRF NUMBER OF TILES = 1
d01 2005-09-01_00:00:00 ----------------------------------------
d01 2005-09-01_00:00:00 W-DAMPING BEGINS AT W-COURANT NUMBER = 1.000000
d01 2005-09-01_00:00:00 ----------------------------------------
d01 2005-09-01_00:00:00 ----------------------------------------
d01 2005-09-01_00:00:00 W-DAMPING BEGINS AT W-COURANT NUMBER = 1.000000
d01 2005-09-01_00:00:00 ----------------------------------------

INITIAL: Configuring and initializing forward nonlinear model ...


....... "

How many processors do you have allocated to each model?

Did you copy the wrflow and wrfinput to the dir where you are running the model?

@vickypulcheriachan
Copy link
Author

vickypulcheriachan commented Jan 9, 2025

i assigned 4 processors to each model
image(which location is /home/vicky/COAWST/Projects/JOE_TC/Coupled/coupling_joe_tc.in)

and i also copy wrfbdy and wrfinput into the image

@jcwarner-usgs
Copy link
Collaborator

i am not sure.
it works for me, so i am not sure why it is not working for you.
can you try 1 processor per model?
can you post the joe_tc.out?

@vickypulcheriachan
Copy link
Author

ok, i tried re ./build_coawst.sh and mpirun ... several times, and this is my lastest joe_tc.out
Coupled Input File name = Projects/JOE_TC/Coupled/coupling_joe_tc.in

Model Coupling:

   Ocean Model MPI nodes: 00000 - 00003

   Waves Model MPI nodes: 00004 - 00007

   Atmos Model MPI nodes: 00008 - 00011

   WAVgrid 01 dt= 300.0 -to- OCNgrid 01 dt=  25.0, CplInt:     0.0 Steps: 00000

   OCNgrid 01 dt=  25.0 -to- WAVgrid 01 dt= 300.0, CplInt:   600.0 Steps: 00024

   ATMgrid 01 dt=  25.0 -to- OCNgrid 01 dt=  25.0, CplInt:     0.0 Steps: 00000

   OCNgrid 01 dt=  25.0 -to- ATMgrid 01 dt=  25.0, CplInt:   600.0 Steps: 00024

   ATMgrid 01 dt=  25.0 -to- WAVgrid 01 dt= 300.0, CplInt:     0.0 Steps: 00000

   WAVgrid 01 dt= 300.0 -to- ATMgrid 01 dt=  25.0, CplInt:   600.0 Steps: 00002

Model Input Parameters: ROMS/TOMS version 4.1
Thursday - January 9, 2025 - 2:14:46 PM

Idealized Coastal shelf

Operating system : Linux
CPU/hardware : x86_64
Compiler system : gfortran
Compiler command : /home/vicky/LIB/mpich/bin/mpif90
Compiler flags : -frepack-arrays -fallow-argument-mismatch -frecord-marker=4 -fconvert=big-endian -fallow-argument-mismatch -O3 -ffast-math -I/home/vicky/COAWST/SWAN/build/mod -I/home/vicky/LIB/MCT/include -I/home/vicky/COAWST//WRF/main -I/home/vicky/COAWST//WRF/external/esmf_time_f90 -I/home/vicky/COAWST//WRF/frame -I/home/vicky/COAWST//WRF/share -
OCN Communicator : -2080374780, PET size = 4

Input Script :

GIT Root URL :
GIT Revision :
SVN Root URL : https://www.myroms.org/svn/src/trunk
SVN Revision : 1151

Local Root : /home/vicky/COAWST
Header Dir : /home/vicky/COAWST/Projects/JOE_TC/Coupled
Header file : joe_tc.h
Analytical Dir : /home/vicky/COAWST/Projects/JOE_TC/Coupled

Resolution, Grid 01: 197x147x21, Parallel Nodes: 4, Tiling: 4x3

ROMS/TOMS: Wrong choice of grid 01 partition or number of parallel nodes.
NtileI * NtileJ = 12
must be equal to the number of parallel processes = 4
Change -np value to mpirun or
change domain partition in input script.
Found Error: 06 Line: 214 Source: ROMS/Utility/inp_par.F
Found Error: 06 Line: 134 Source: ROMS/Drivers/nl_roms.h, ROMS_initialize

Elapsed wall CPU time for each process (seconds):

SWAN grid 1 is preparing computation

Quilting with 1 groups of 0 I/O tasks.
Quilting with 1 groups of 0 I/O tasks.
Quilting with 1 groups of 0 I/O tasks.
Quilting with 1 groups of 0 I/O tasks.
Ntasks in X 2 , ntasks in Y 2
Ntasks in X 2 , ntasks in Y 2
Ntasks in X 2 , ntasks in Y 2
Ntasks in X 2 , ntasks in Y 2
Domain # 1: dx = 12000.000 m
Domain # 1: dx = 12000.000 m
WRF V4.5 MODEL
No git found or not a git repository, git commit version not available.


Parent domain
ids,ide,jds,jde 1 200 1 150
ims,ime,jms,jme -4 107 -4 82
ips,ipe,jps,jpe 1 100 1 75


DYNAMICS OPTION: Eulerian Mass Coordinate
Domain # 1: dx = 12000.000 m
WRF V4.5 MODEL
No git found or not a git repository, git commit version not available.
WRF V4.5 MODEL


Parent domain
ids,ide,jds,jde 1 200 1 150
ims,ime,jms,jme 94 205 69 155
ips,ipe,jps,jpe 101 200 76 150


DYNAMICS OPTION: Eulerian Mass Coordinate
No git found or not a git repository, git commit version not available.


Parent domain
ids,ide,jds,jde 1 200 1 150
ims,ime,jms,jme -4 107 69 155
ips,ipe,jps,jpe 1 100 76 150


DYNAMICS OPTION: Eulerian Mass Coordinate
Domain # 1: dx = 12000.000 m
WRF V4.5 MODEL
No git found or not a git repository, git commit version not available.


Parent domain
ids,ide,jds,jde 1 200 1 150
ims,ime,jms,jme 94 205 -4 82
ips,ipe,jps,jpe 101 200 1 75


DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 180254544 bytes allocated
alloc_space_field: domain 1 , 180254544 bytes allocated
alloc_space_field: domain 1 , 180254544 bytes allocated
alloc_space_field: domain 1 , 180254544 bytes allocated
med_initialdata_input: calling input_input
This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
Input data is acceptable to use: wrfinput_d01
med_initialdata_input: calling input_input
This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
Input data is acceptable to use:
med_initialdata_input: calling input_input
This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
Input data is acceptable to use:
Resetting the hypsometric_opt from default value of 2 to 1
Resetting the hypsometric_opt from default value of 2 to 1
CURRENT DATE = 2005-09-01_00:00:00
SIMULATION START DATE = 2005-09-01_00:00:00
CURRENT DATE = 2005-09-01_00:00:00
SIMULATION START DATE = 2005-09-01_00:00:00
med_initialdata_input: calling input_input
This input data is not V4: OUTPUT FROM REAL_EM V2.1.2 PREPROCESSOR
Input data is acceptable to use:
Resetting the hypsometric_opt from default value of 2 to 1
CURRENT DATE = 2005-09-01_00:00:00
SIMULATION START DATE = 2005-09-01_00:00:00
Resetting the hypsometric_opt from default value of 2 to 1
CURRENT DATE = 2005-09-01_00:00:00
SIMULATION START DATE = 2005-09-01_00:00:00
Timing for processing wrfinput file (stream 0) for domain 1: 2.17273 elapsed seconds
Max map factor in domain 1 = 1.06. Scale the dt in the model accordingly.
D01: Time step = 25.0000000 (s)
D01: Grid Distance = 12.0000000 (km)
D01: Grid Distance Ratio dt/dx = 2.08333325 (s/km)
D01: Ratio Including Maximum Map Factor = 2.21236515 (s/km)
D01: NML defined reasonable_time_step_ratio = 6.00000000
Max map factor in domain 1 = 1.06. Scale the dt in the model accordingly.
D01: Time step = 25.0000000 (s)
D01: Grid Distance = 12.0000000 (km)
D01: Grid Distance Ratio dt/dx = 2.08333325 (s/km)
D01: Ratio Including Maximum Map Factor = 2.21236515 (s/km)
D01: NML defined reasonable_time_step_ratio = 6.00000000
---- WARNING : Maybe old non-HVC input, setting default 1d array values for TF
---- WARNING : Older v3 input data detected
---- WARNING : Maybe old non-HVC input, setting default 1d array values for TF
---- WARNING : Older v3 input data detected
Max map factor in domain 1 = 1.06. Scale the dt in the model accordingly.
D01: Time step = 25.0000000 (s)
D01: Grid Distance = 12.0000000 (km)
D01: Grid Distance Ratio dt/dx = 2.08333325 (s/km)
D01: Ratio Including Maximum Map Factor = 2.21236515 (s/km)
D01: NML defined reasonable_time_step_ratio = 6.00000000
---- WARNING : Maybe old non-HVC input, setting default 1d array values for TF
---- WARNING : Older v3 input data detected
Normal ending of CAMtr_volume_mixing_ratio file
GHG annual values from CAM trace gas file
Year = 2005 , Julian day = 244
CO2 = 3.7936216889869126E-004 volume mixing ratio
N2O = 3.1930379096698032E-007 volume mixing ratio
CH4 = 1.7833731523022980E-006 volume mixing ratio
CFC11 = 2.5042801270495025E-010 volume mixing ratio
CFC12 = 5.4182220605880493E-010 volume mixing ratio
INPUT LandUse = "USGS"
Max map factor in domain 1 = 1.06. Scale the dt in the model accordingly.
D01: Time step = 25.0000000 (s)
D01: Grid Distance = 12.0000000 (km)
D01: Grid Distance Ratio dt/dx = 2.08333325 (s/km)
D01: Ratio Including Maximum Map Factor = 2.21236515 (s/km)
D01: NML defined reasonable_time_step_ratio = 6.00000000
---- WARNING : Maybe old non-HVC input, setting default 1d array values for TF
---- WARNING : Older v3 input data detected
Climate GHG input from file from year 1765 to 2499
CO2 range = 277.91300000000001 579.26400000000001 ppm
N2O range = 274.37200000000001 359.79800000000000 ppb
CH4 range = 738.98599999999999 997.31100000000004 ppb
CFC11 range = 0.0000000000000000 1.4000000000000000E-002 ppt
CFC12 range = 0.0000000000000000 2.8809999999999998 ppt
Normal ending of CAMtr_volume_mixing_ratio file
GHG annual values from CAM trace gas file
Year = 2005 , Julian day = 244
CO2 = 3.7936216889869126E-004 volume mixing ratio
N2O = 3.1930379096698032E-007 volume mixing ratio
CH4 = 1.7833731523022980E-006 volume mixing ratio
CFC11 = 2.5042801270495025E-010 volume mixing ratio
CFC12 = 5.4182220605880493E-010 volume mixing ratio
INPUT LandUse = "USGS"
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
Normal ending of CAMtr_volume_mixing_ratio file
GHG annual values from CAM trace gas file
Year = 2005 , Julian day = 244
CO2 = 3.7936216889869126E-004 volume mixing ratio
N2O = 3.1930379096698032E-007 volume mixing ratio
CH4 = 1.7833731523022980E-006 volume mixing ratio
CFC11 = 2.5042801270495025E-010 volume mixing ratio
CFC12 = 5.4182220605880493E-010 volume mixing ratio
Normal ending of CAMtr_volume_mixing_ratio file
GHG annual values from CAM trace gas file
Year = 2005 , Julian day = 244
CO2 = 3.7936216889869126E-004 volume mixing ratio
N2O = 3.1930379096698032E-007 volume mixing ratio
CH4 = 1.7833731523022980E-006 volume mixing ratio
CFC11 = 2.5042801270495025E-010 volume mixing ratio
CFC12 = 5.4182220605880493E-010 volume mixing ratio
INPUT LandUse = "USGS"
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
INPUT LandUse = "USGS"
LANDUSE TYPE = "USGS" FOUND 61 CATEGORIES 2 SEASONS WATER CATEGORY = 16 SNOW CATEGORY = 24
INITIALIZE THREE Noah LSM RELATED TABLES
INITIALIZE THREE Noah LSM RELATED TABLES
LANDUSE TYPE = USGS FOUND 27 CATEGORIES
INITIALIZE THREE Noah LSM RELATED TABLES
INPUT SOIL TEXTURE CLASSIFICATION = STAS
SOIL TEXTURE CLASSIFICATION = STAS FOUND 19 CATEGORIES
INITIALIZE THREE Noah LSM RELATED TABLES

@jcwarner-usgs
Copy link
Collaborator

i am not sure.
Did you get and Err* files?
Can you try a different test case? maybe try a case that just uses roms. then one that just uses WRF, etc.
maybe try the Sandy case.

@vickypulcheriachan
Copy link
Author

vickypulcheriachan commented Jan 9, 2025 via email

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

2 participants