Opened 17 years ago

Closed 17 years ago

#56 closed bug (Fixed)

Gfortran -DUSE_DEBUG bug

Reported by: rsignell Owned by: arango
Priority: minor Milestone: Release ROMS/TOMS 3.1
Component: Nonlinear Version: 3.1
Keywords: Cc:

Description

With SVN version 79, there is a compile error when USE_DEBUG is defined when building with Compilers/CYGWIN-gfortran.mk. The problem is that FFLAGS is so long it exceeds 132 characters, the default in GFORTRAN when -ffree-form is specified.

I fixed the problem by adding the compile flag "-ffree-line-length-none" to this rule in CYGWIN-gfortran.mk for mod_strings:

Before:

$(SCRATCH_DIR)/mod_strings.o: FFLAGS += -ffree-form 

After:

$(SCRATCH_DIR)/mod_strings.o: FFLAGS += -ffree-form -ffree-line-length-none

Should this additional flag be added for the compilation of mod_ncparam as well?

I imagine the other gfortran .mk files should be modified as well, not just the gfortran one.

Thanks, Rich

Change History (1)

comment:1 by arango, 17 years ago

Resolution: Fixed
Status: newclosed

This is weird. I guess that the Gfortran compiler needs to manage the line length better.

Note: See TracTickets for help on using tickets.