Error in jobcomp

This is CROSS_MATRIX: Creating new version of Make.depend.

gmake: Circular par_pisces.mod ← par_pisces.o dependency dropped.
m2c -o par_pisces.o par_pisces.mod
gmake: m2c: Command not found
gmake: *** [par_pisces.o] Error 127

Seems gmake is not in your system. What Linux distribution do you use?

Respected sir,
i used Linux distribution CentOS Linux release 7.6.1810 (Core) .

gmake file is also present /usr/bin/gmake.

Please post your complete compile log

Hi

Did you try just to remove manually the Compile directory first ?

Rachid

[siddharth@localhost OCEAN]$ ./jobcomp
OPERATING SYSTEM IS: Linux
cp: cannot stat ‘…/croco/OCEAN/PISCES/namelist_pisces*’: No such file or directory
file namelist_pisces copied from source directory
Checking COMPILEAGRIF…
Checking COMPILEMPI…
Checking COMPILEXIOS…
Checking COMPILEOASIS…
Checking COMPILEOMP…
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC mpc.F > mpc_.f
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o mpc mpc_.f
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC cppcheck.F | ./mpc > cppcheck_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 cppcheck_.f -o cppcheck.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o cppcheck cppcheck.o
cat cppdefs.h cppdefs_dev.h > mergcpp.txt
./cppcheck

This is CPPCHECK: Creating new version of check_switches1.F.

cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC checkkwds.F | ./mpc > checkkwds_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 checkkwds_.f -o checkkwds.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o checkkwds checkkwds.o
rm -f setup_kwds.F
./checkkwds

This is CHECKKWDS: Creating new version of “setup_kwds.F”.

cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC cross_matrix.F | ./mpc > cross_matrix_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 cross_matrix_.f -o cross_matrix.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o cross_matrix cross_matrix.o
./cross_matrix *.F90 *.F

This is CROSS_MATRIX: Creating new version of Make.depend.

cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC srcscheck.F | ./mpc > srcscheck_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 srcscheck_.f -o srcscheck.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o srcscheck srcscheck.o
rm -f check_srcs.F
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC insert_node.F | ./mpc > insert_node_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 insert_node_.f -o insert_node.o
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC lenstr.F | ./mpc > lenstr_.f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 lenstr_.f -o lenstr.o
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC partit.F > partit..f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 partit.
.f -o partit.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o partit partit.o insert_node.o lenstr.o -L/home/kbcaos/netcdf_install/lib -lnetcdff -L/home/kbcaos/netcdf_install/lib -lnetcdf -lnetcdf
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC ncjoin.F | ./mpc > ncjoin..f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 ncjoin.
.f -o ncjoin.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o ncjoin ncjoin.o lenstr.o -L/home/kbcaos/netcdf_install/lib -lnetcdff -L/home/kbcaos/netcdf_install/lib -lnetcdf -lnetcdf
cpp -traditional -DLinux -P -I/home/kbcaos/netcdf_install/include -ICROCOFILES/AGRIF_INC ncrename.F | ./mpc > ncrename..f
gfortran -c -O3 -fdefault-real-8 -fdefault-double-8 ncrename.
.f -o ncrename.o
gfortran -O3 -fdefault-real-8 -fdefault-double-8 -o ncrename ncrename.o lenstr.o -L/home/kbcaos/netcdf_install/lib -lnetcdff -L/home/kbcaos/netcdf_install/lib -lnetcdf -lnetcdf
./cross_matrix *.F90 *.F

This is CROSS_MATRIX: Creating new version of Make.depend.

gmake: Circular par_pisces.mod ← par_pisces.o dependency dropped.
m2c -o par_pisces.o par_pisces.mod
gmake: m2c: Command not found
gmake: *** [par_pisces.o] Error 127
rm par_pisces.mod

Hi thanks for asking but i not remobe any compile directory.

Hi all, finally what was the solution for this error?
I have a similar problem (I guess). When I try to compile with ./jobcomp considering “define AGRIF” in cppdefs.h I get an error similar to the one reported in this post. I clarify that when I don’t define AGRIF (“undef AGRIF”) in cppdefs.h the compilation concludes well.
I attach my jobcomp.log to kindly give me your help. It is important for me to move forward with my research and this issue has me a bit behind.

I look forward to hearing from you soon :slight_smile:

regards,
César.
jobcomp.log

The same error persists even for the compilation of the croco version 1.3:

mpif90 -c -O3 -fdefault-real-8 -fdefault-double-8 -mcmodel=large -fallow-argument-mismatch pisces_ini_.f90 -o pisces_ini.o
make: Circular oce_sed.mod ← oce_sed.o dependency dropped.
m2c -o oce_sed.o oce_sed.mod
make: m2c: No such file or directory
make: *** [: oce_sed.o] Error 127
rm oce_sed.mod
mv: cannot stat ‘croco’: No such file or directory

Please help.