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

Compilation problem with GOTM #103

Open
emyrizzi11 opened this issue May 3, 2023 · 2 comments
Open

Compilation problem with GOTM #103

emyrizzi11 opened this issue May 3, 2023 · 2 comments

Comments

@emyrizzi11
Copy link

Hello,

The compilation of the model with only the TVD module goes well and I use a similar Make.defs file to the Make.defs.lnec.ws.gnu one.

When I try to turn on the GOTM module, in addition to the previous TVD, the compilation doesn't happen.
I compiled the github GOTM version and I get the differnt libraries and modules of the closure model. I pass the required paths to the Make.defs.local file and then I try to compile the new SCHISM model with make pschism, after running a make clean.
The compilation seems to go well and it arrives at 100%, but after that I get this message:

/usr/lib64/openmpi/bin/mpif90 -O2 o/svn.LNEC_WS_GNU/schism_version.o o/svn.LNEC_WS_GNU/schism_glbl.o o/svn.LNEC_WS_GNU/schism_msgp.o o/svn.LNEC_WS_GNU/scribe_io.o o/svn.LNEC_WS_GNU/misc_modules.o o/svn.LNEC_WS_GNU/schism_io.o o/svn.LNEC_WS_GNU/schism_driver.o o/svn.LNEC_WS_GNU/gen_modules_clock.o o/svn.LNEC_WS_GNU/grid_subs.o o/svn.LNEC_WS_GNU/hydraulic_structures.o o/svn.LNEC_WS_GNU/schism_init.o o/svn.LNEC_WS_GNU/schism_step.o o/svn.LNEC_WS_GNU/schism_finalize.o o/svn.LNEC_WS_GNU/bktrk_subs.o o/svn.LNEC_WS_GNU/solver_subs.o o/svn.LNEC_WS_GNU/misc_subs.o o/svn.LNEC_WS_GNU/transport_TVD_imp.o o/svn.LNEC_WS_GNU/sflux_9c.o o/svn.LNEC_WS_GNU/lap.o -L./ParMetis-4.0.3 -lparmetis -lmetis -L/usr/lib64 -lnetcdf -lnetcdff -L/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5_git/build2/lib -libturbulence_prod -libutil_prod -J. -I. -o pschism_LNEC_WS_GNU_VL_GOTM

/usr/bin/ld: cannot find -libturbulence_prod

/usr/bin/ld: cannot find -libutil_prod

collect2: error: ld returned 1 exit status

make: *** [Makefile:412: pschism_LNEC_WS_GNU_VL_GOTM] Error 1

I don't really know where SCHISM gets the path /usr/bin/ld for the two libraries, but the path given is not a directory.
Did anyone had a similar problem?

@josephzhang8
Copy link
Member

josephzhang8 commented May 3, 2023 via email

@emyrizzi11
Copy link
Author

Hello again,

after the previous message I have decided to try compiling SCHISM using an older version of GOTM, particularly the 5.2 version. I managed to compile the older version, but SCHISM will still give me an error at the end of the compiltaion:

o/svn.LNEC_WS_GNU/schism_init.o: In function `schism_init':

schism_init.F90:(.text+0x2277e): undefined reference to `__mtridiagonal_MOD_init_tridiagonal'

/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5.2_andre/build2/gfortran/lib/libturbulence.a(dissipationeq.F90.o): In function `dissipationeq_':

dissipationeq.F90:(.text+0x409): undefined reference to `diff_face_'

/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5.2_andre/build2/gfortran/lib/libturbulence.a(genericeq.F90.o): In function `genericeq_':

genericeq.F90:(.text+0x456): undefined reference to `diff_face_'

/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5.2_andre/build2/gfortran/lib/libturbulence.a(kbeq.F90.o): In function `kbeq_':

kbeq.F90:(.text+0x1f5): undefined reference to `diff_face_'

kbeq.F90:(.text+0x329): undefined reference to `diff_face_'

/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5.2_andre/build2/gfortran/lib/libturbulence.a(lengthscaleeq.F90.o): In function `lengthscaleeq_':

lengthscaleeq.F90:(.text+0x4c8): undefined reference to `diff_face_'

/fs/scratch/mare_exp/emilia/SCHISM/model/schism/src/GOTM5.2_andre/build2/gfortran/lib/libturbulence.a(q2over2eq.F90.o):q2over2eq.F90:(.text+0x3ab): more undefined references to `diff_face_' follow

collect2: error: ld returned 1 exit status

make: *** [Makefile:412: pschism_LNEC_WS_GNU_VL_GOTM] Error 1_

As fortran compiler I use GFORTRAN.
Did someone managed to compile SCHISM with GOTMv5.2 with a GFORTRAN compiler?

Thanks in advance

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