Compilation error for plotting package

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Compilation error for plotting package

#1 Unread post by osean »

Hello

I am following https://www.myroms.org/wiki/Plotting_Pa ... stallation page in an attempt to plot the output from the Upwelling test case.

I don't know if this page is outdated or whether I am doing something wrong, I am a little lost at this step:
Machine Dependent Include File
Next you should check the paths and options of the machine dependent include file you chose with the FORT macro variable in the makefile. In particular you should check that LD points to the correct ncargf90 and that NETCDF_INCDIR and NETCDF_LIBDIR are set correctly. It is important that your NetCDF libraries are compatible with your NCL install. The most common compatibility issue is the infamous second underscore problem. A simple google search will tell you more than you wish to know on this subject as will a search in the ROMS forum. The binary distributions of NCL 5.0.0 appear to have been built with the -fno-second-underscore compiler option set where applicable.

The last thing to check is FFLAGS. You may have to experiment with these to get the ROMS Plotting Package to compile. For example, if you installed the 64-bit binary for x86_64 chips for Linux compiled with gcc 3.x you would would want to add -fno-second_underscore to FFLAGS in the Linux-g77.mk file.

NOTE: If you are running ROMS it is likely that your NetCDF library is already built with single underscores at the end of symbol names.
Here, I am in the ~/plot/src directory, from the recently svn'd plot package. Following every step, I encounter the problem of setting NETCDF path again. The instruction in this step (quoted above) tells me that I need to change NETCDF paths for NETCDF4, similar to compiling ROMS itself. However, in the makefile file, I suspect that there has been updates and not reflected on the tutorial page. In makefile file, I do not see anywhere that I can specify my NETCDF4 directory paths, despite that it has this information:
# Use NetCDF-4/HDF5 libraries. Notice that the NetCDF-4/HDF5 libraries
# are backwards compatible with NetCDF classic format file. Therefore,
# when compiled with the NetCDF-4/HDF5 libraries this plotting package
# can plot both NetCDF format files.
#
# There are serial and parallel NetCDF-4 and HDF5 libraries. The
# parallel libraries also requires the MPI library. The plotting
# package is serial but it can be compiled with the parallel
# libraries. In order to allow compiling with both serial and
# parallel libraries, the NCAR's library loader script "ncargf90"
# is not longer used in the make configuration files located in the
# Compilers directory. The required plotting libraries are specified
# explicitly as:
#
# LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
# LIBS += -L/usr/X11R6/lib64 -lX11

USE_NETCDF4 ?= ON
For compiling ROMS itself, there was a separate build_my_path.sh file for me specify the path. But here for the plotting compilation, I don't see such a file, neither does it give me option to set directory paths under NETCDF_INCDIR and NETCDF_LIBDIR, as suggested. Now I am encountering the following issue:
make: /opt/gfortransoft/serial/netcdf4/bin/nc-config: Command not found
make: /opt/gfortransoft/serial/netcdf4/bin/nc-config: Command not found
cd Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 opencdf.f90
opencdf.f90:2028:53:

1912 | status=nf_get_vara_real(ncid1,varid,1,nfcst1,fcst1)
| 2
......
2028 | status=nf_get_vara_real(ncid1,varid,1,Nr,zinp1)
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
opencdf.f90:2213:54:

2068 | status=nf_get_vara_double(ncid1,varid,start,count,time1)
| 2
......
2213 | status=nf_get_vara_double(ncid1,varid,1,ntime1,time1)
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
opencdf.f90:2352:58:

1912 | status=nf_get_vara_real(ncid1,varid,1,nfcst1,fcst1)
| 2
......
2352 | status=nf_get_vara_real(ncid2,varid,1,nlev2,zinp2)
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
make: *** [Build_plt/opencdf.o] Error 1
Which I understand as saying it cannot find netcdf, because I couldn't find where to set the path... Any solution?

Code: Select all

#  $Id: makefile 997 2020-01-10 04:33:10Z arango $
#::::::::::::::::::::::::::::::::::::::::::::::::::::: Hernan G. Arango :::
# Copyright (c) 2002-2020 The ROMS/TOMS Group             Kate Hedstrom :::
#   Licensed under a MIT/X style license                                :::
#   See License_ROMS.txt                                                :::
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#                                                                       :::
#  ROMS/TOMS Plotting Code Master Makefile                              :::
#                                                                       :::
#  This makefile is designed to work only with GNU Make version 3.80 or :::
#  higher. It can be used in any architecture provided that there is a  :::
#  machine/compiler rules file in the  "Compilers"  subdirectory.  You  :::
#  may need to modify the rules file to specify the  correct path  for  :::
#  the NetCDF library.                                                  :::
#                                                                       :::
#  If appropriate,  the USER needs to modify the  macro definitions in  :::
#  in user-defined section below.  To activate an option set the macro  :::
#  to "on". For example, if you want to compile with debugging options  :::
#  set:                                                                 :::
#                                                                       :::
#    PLT_DEBUG := on                                                    :::
#                                                                       :::
#  Otherwise, leave macro definition blank.                             :::
#                                                                       :::
#  The USER needs to provide a value for the  macro FORT.  Choose  the  :::
#  appropriate value from the list below.                               :::
#                                                                       :::
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

NEED_VERSION := 3.80 3.81 3.82
$(if $(filter $(MAKE_VERSION),$(NEED_VERSION)),,        \
 $(error This makefile requires one of GNU make version $(NEED_VERSION).))

#--------------------------------------------------------------------------
#  Initialize some things.
#--------------------------------------------------------------------------

  sources    :=

#==========================================================================
#  Start of user-defined options. In some macro definitions below: "on" or
#  any other string means TRUE while blank (or spaces) is FALSE.
#==========================================================================
#
#  Activate debugging compiler options:

    PLT_DEBUG ?=

#  If applicable, activate 64-bit compilation:

    PLT_LARGE ?= ON

#  Sometimes it is desirable to activate one or more CPP options
#  using the -D syntax.

MY_CPP_FLAGS ?=

#  Use NetCDF-4/HDF5 libraries. Notice that the NetCDF-4/HDF5 libraries
#  are backwards compatible with NetCDF classic format file. Therefore,
#  when compiled with the NetCDF-4/HDF5 libraries this plotting package
#  can plot both NetCDF format files.
#
#  There are serial and parallel NetCDF-4 and HDF5 libraries.  The
#  parallel libraries also requires the MPI library. The plotting
#  package is serial but it can be compiled with the parallel
#  libraries. In order to allow compiling with both serial and
#  parallel libraries, the NCAR's library loader script "ncargf90"
#  is not longer used in the make configuration files located in the
#  Compilers directory.  The required plotting libraries are specified
#  explicitly as:
#
#            LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
#            LIBS += -L/usr/X11R6/lib64 -lX11

  USE_NETCDF4 ?= ON

ifdef USE_NETCDF4
   USE_MPIF90 ?=
endif

#--------------------------------------------------------------------------
#  We are going to include a file with all the settings that depend on
#  the system and the compiler. We are going to build up the name of the
#  include file using information on both. Set your compiler here from
#  the following list:
#
#  Operating System        Compiler(s)
#
#     AIX:                    xlf
#     ALPHA:                  f90
#     CYGWIN:                 g95, df, ifort
#     Darwin:                 f90, xlf
#     IRIX:                   f90
#     Linux:                  ftn, ifc, ifort, pgi, path, g95, gfortran
#     SunOS:                  f95
#     UNICOS-mp:              ftn
#     SunOS/Linux:            ftn (Cray cross-compiler)
#
#  Feel free to send us additional rule files to include! Also, be sure
#  to check the appropriate file to make sure it has the right paths to
#  NetCDF and so on.
#--------------------------------------------------------------------------

        FORT ?= gfortran

#--------------------------------------------------------------------------
#  Set directory for executable.
#--------------------------------------------------------------------------

  PLT_BINDIR ?= /usr/local/bin

#--------------------------------------------------------------------------
#  Provide NCAR library version installed.  Several common blocks changes
#  in these versions.  These switch is used in routines Utility/cnt_frame.F
#  and Utility/hbackground.F to tune the appropriate parameters.
#--------------------------------------------------------------------------

#NCAR_VERSION ?= NCARG410
#NCAR_VERSION ?= NCARG422
#NCAR_VERSION ?= NCARG430
#NCAR_VERSION ?= NCARG431
#NCAR_VERSION ?= NCARG441
 NCAR_VERSION ?= NCARG662

#==========================================================================
#  End of user-defined options. See also the machine-dependent include
#  file being used above.
#==========================================================================

#--------------------------------------------------------------------------
#  Set directory for temporary objects.
#--------------------------------------------------------------------------

SCRATCH_DIR ?= Build_plt

 clean_list := core *.ipo $(SCRATCH_DIR)

ifeq "$(strip $(SCRATCH_DIR))" "."
  clean_list := core *.o *.oo *.mod *.f90 lib*.a *.bak
  clean_list += $(CURDIR)/*.ipo
endif
ifeq "$(strip $(SCRATCH_DIR))" "./"
  clean_list := core *.o *.oo *.ipo *.mod *.f90 lib*.a *.bak
  clean_list += $(CURDIR)/*.ipo
endif

#--------------------------------------------------------------------------
#  Set Pattern rules.
#--------------------------------------------------------------------------

%.o: %.F

%.o: %.f90
	cd $(SCRATCH_DIR); $(FC) -c $(FFLAGS) $(notdir $<)

%.f90: %.F
	$(CPP) $(CPPFLAGS) $(MY_CPP_FLAGS) $< > $*.f90
	$(CLEAN) $*.f90

CLEAN := Bin/cpp_clean

#--------------------------------------------------------------------------
#  Make functions for putting the temporary files in $(SCRATCH_DIR)
#  DO NOT modify this section; spaces and blank lines are needed.
#--------------------------------------------------------------------------

# $(call source-dir-to-binary-dir, directory-list)
source-dir-to-binary-dir = $(addprefix $(SCRATCH_DIR)/, $(notdir $1))

# $(call source-to-object, source-file-list)
source-to-object = $(call source-dir-to-binary-dir,   \
                   $(subst .F,.o,$1))

# $(call make-library, library-name, source-file-list)
define make-library
   libraries += $(SCRATCH_DIR)/$1
   sources   += $2

   $(SCRATCH_DIR)/$1: $(call source-dir-to-binary-dir,    \
                      $(subst .F,.o,$2))
	$(AR) $(ARFLAGS) $$@ $$^
	$(RANLIB) $$@
endef

# $(call f90-source, source-file-list)
f90-source = $(call source-dir-to-binary-dir,     \
                   $(subst .F,.f90,$1))

# $(compile-rules)
define compile-rules
  $(foreach f, $(local_src),       \
    $(call one-compile-rule,$(call source-to-object,$f), \
    $(call f90-source,$f),$f))
endef

# $(call one-compile-rule, binary-file, f90-file, source-files)
define one-compile-rule
  $1: $2 $3
	cd $$(SCRATCH_DIR); $$(FC) -c $$(FFLAGS) $(notdir $2)

  $2: $3
	$$(CPP) $$(CPPFLAGS) $$(MY_CPP_FLAGS) $$< > $$@
	$$(CLEAN) $$@

endef

#--------------------------------------------------------------------------
#  Set executables file names.
#--------------------------------------------------------------------------

ifdef PLT_DEBUG
   CNT := $(PLT_BINDIR)/cntG
  CCNT := $(PLT_BINDIR)/ccntG
   SEC := $(PLT_BINDIR)/secG
  CSEC := $(PLT_BINDIR)/csecG
else
   CNT := $(PLT_BINDIR)/cnt
  CCNT := $(PLT_BINDIR)/ccnt
   SEC := $(PLT_BINDIR)/sec
  CSEC := $(PLT_BINDIR)/csec
endif

#--------------------------------------------------------------------------
#  "uname -s" should return the OS or kernel name and "uname -m" should
#  return the CPU or hardware name. In practice the results can be pretty
#  flaky. Run the results through sed to convert "/" and " " to "-",
#  then apply platform-specific conversions.
#--------------------------------------------------------------------------

OS := $(shell uname -s | sed 's/[\/ ]/-/g')
OS := $(patsubst CYGWIN_%,CYGWIN,$(OS))
OS := $(patsubst MINGW%,MINGW,$(OS))
OS := $(patsubst sn%,UNICOS-sn,$(OS))

CPU := $(shell uname -m | sed 's/[\/ ]/-/g')

ifndef FORT
  $(error Variable FORT not set)
endif

COMPILERS ?= $(CURDIR)/Compilers

ifneq "$(MAKECMDGOALS)" "clean"
  include $(COMPILERS)/$(OS)-$(strip $(FORT)).mk
endif

#--------------------------------------------------------------------------
#  Pass the platform variables to the preprocessor as macros. Convert to
#  valid, upper-case identifiers.
#--------------------------------------------------------------------------

CPPFLAGS += -D$(shell echo ${OS} | tr "-" "_" | tr [a-z] [A-Z])
CPPFLAGS += -D$(shell echo ${CPU} | tr "-" "_" | tr [a-z] [A-Z])
CPPFLAGS += -D$(shell echo ${FORT} | tr "-" "_" | tr [a-z] [A-Z])

#--------------------------------------------------------------------------
#  Add NCAR library version.  The library common blocks used in routine
#  hbackground.F depend on the NCAR version installed in your system.
#  Execute "ncargversion" to find your installed version.
#--------------------------------------------------------------------------

CPPFLAGS += -D$(NCAR_VERSION) -Drmdocinc

#--------------------------------------------------------------------------
#  Build target directories.
#--------------------------------------------------------------------------

.PHONY: all

all: $(SCRATCH_DIR) $(SCRATCH_DIR)/MakeDepend $(CNT) $(CCNT) $(SEC) $(CSEC)

modules  := Utility Drivers

includes := Include Utility

vpath %.F $(modules)
vpath %.h $(includes)
vpath %.f90 $(SCRATCH_DIR)
vpath %.o $(SCRATCH_DIR)

include $(addsuffix /Module.mk,$(modules))

MDEPFLAGS += $(patsubst %,-I %,$(includes)) --silent --moddir $(SCRATCH_DIR)

CPPFLAGS += $(patsubst %,-I%,$(includes))

$(SCRATCH_DIR):
	$(shell $(TEST) -d $(SCRATCH_DIR) || $(MKDIR) $(SCRATCH_DIR) )

#--------------------------------------------------------------------------
#  Target to create libraries and dependecies.
#--------------------------------------------------------------------------

.PHONY: libraries

libraries: $(libraries)

#--------------------------------------------------------------------------
#  Target to create ROMS/TOMS dependecies.
#--------------------------------------------------------------------------

$(SCRATCH_DIR)/MakeDepend: makefile | $(SCRATCH_DIR)
	$(SFMAKEDEPEND) $(MDEPFLAGS) $(sources) > $(SCRATCH_DIR)/MakeDepend

.PHONY: depend

SFMAKEDEPEND := Bin/sfmakedepend

depend: $(SCRATCH_DIR)
	$(SFMAKEDEPEND) $(MDEPFLAGS) $(sources) > $(SCRATCH_DIR)/MakeDepend

ifneq "$(MAKECMDGOALS)" "clean"
  -include $(SCRATCH_DIR)/MakeDepend
endif

#--------------------------------------------------------------------------
#  Target to create tar file.
#--------------------------------------------------------------------------

.PHONY: tarfile

tarfile:
		tar --exclude=".svn"-cvf plot-3_0.tar *

.PHONY: zipfile

zipfile:
		zip -r plot-3_0.zip *

.PHONY: gzipfile

gzipfile:
		gzip -v plot-3_0.gzip *

#--------------------------------------------------------------------------
#  Cleaning targets.
#--------------------------------------------------------------------------

.PHONY: clean

clean:
	$(RM) -r $(clean_list)

#--------------------------------------------------------------------------
#  A handy debugging target. This will allow to print the value of any
#  makefile defined macro (see http://tinyurl.com/8ax3j). For example,
#  to find the value of CPPFLAGS execute:
#
#        gmake print-CPPFLAGS
#  or
#        make print-CPPFLAGS
#--------------------------------------------------------------------------

.PHONY: print-%

print-%:
	@echo $* = $($*)
I have also attached the makefile text ^here^, in case anything above is unclear. Thank you.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Compilation error for plotting package

#2 Unread post by kate »

make: /opt/gfortransoft/serial/netcdf4/bin/nc-config: Command not found
If you have a modern netcdf-c and netcdf-fortran correctly installed, nc-config should be on your search path. Did you install them? What operating system is this? Your laptop or a major computing platform?

osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Re: Compilation error for plotting package

#3 Unread post by osean »

kate wrote: Sun Feb 07, 2021 10:48 pm
make: /opt/gfortransoft/serial/netcdf4/bin/nc-config: Command not found
If you have a modern netcdf-c and netcdf-fortran correctly installed, nc-config should be on your search path. Did you install them? What operating system is this? Your laptop or a major computing platform?
Hello kate, thanks for the reply.

Sorry forgot to clarify - this is in Mac OS system. The correct path for nc-config on Mac OS system is /usr/local/bin/nc-config

I could re-route to build ROMS and run the model, through the build_my_path.sh file. But the makefile for the plotting installation does not ask me to specify a path, at least I cannot identify any lines that are asking me for input. Hence confused.

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

Re: Compilation error for plotting package

#4 Unread post by robertson »

The plotting package also has build scripts in src/Bin. However, the build scripts for the plotting packages have not been updated to use "my_build_paths" so the paths are set further down in the script. For the build_plt.bash script I believe you will need to edit lines 279 and 280.

From your other errors it looks like you have chosen gcc/gfortran 10.x and will therefore need to add '-fallow-argument-mismatch' to FFLAGS in your src/Compilers/Darwin-gfortran.mk file.

osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Re: Compilation error for plotting package

#5 Unread post by osean »

The plotting package still seems all very confusing to me.

I tried multiple ways but still failed.

Instead of using the makefile in src to make, I am now trying to build_plt.sh.

I changed the USE_MY_LIBS to ON, and the following:

case "gfortran"

setenv NCARG_ROOT /Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/include/ncarg

if ($?USE_NETCDF4) then
if ($?USE_MPI) then
if ($which_MPI == "mpich2" ) then
setenv NC_CONFIG /usr/local/bin/nc-config
setenv NETCDF_INCDIR /usr/local/Cellar/netcdf/4.7.4_2/include
else if ($which_MPI == "openmpi" ) then
setenv NC_CONFIG /usr/local/bin/nc-config
setenv NETCDF_INCDIR /usr/local/Cellar/netcdf/4.7.4_2/include
endif
else
setenv NC_CONFIG /usr/local/bin/nc-config
setenv NETCDF_INCDIR /usr/local/Cellar/netcdf/4.7.4_2/include
endif
else
setenv NETCDF_INCDIR /usr/local/Cellar/netcdf/4.7.4_2/include
setenv NETCDF_LIBDIR /usr/local/Cellar/netcdf/4.7.4_2/lib
endif
breaksw

endsw
endif

so that all NETCDF related directory is set. I don't know if I need to deal with the NCARG_ROOT, but I changed it to where I can find ncarg on my system instead (I am using Mac).

But now I am getting a rather different error, it looks like?
(base) Seans-MBP:Bin sean$ ./build_plt.sh
rm -f -r core *.ipo /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt
Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/Users/sean/Documents/ROMS/plot/src/Bin/Build_plt -I Include -I Utility --silent --moddir /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt Utility/areafill.F Utility/areamask.F Utility/barlab.F Utility/bcintrp.F Utility/bernoulli.F Utility/box.F Utility/bv_freq.F Utility/caldate.F Utility/cfield.F Utility/cgrid.F Utility/check2d.F Utility/check3d.F Utility/checkstrm.F Utility/clrbox.F Utility/cnt_frame.F Utility/cntcolor.F Utility/cntint.F Utility/cntpack.F Utility/colorbar.F Utility/colram.F Utility/cpmpxy2d.F Utility/cpmpxz2d.F Utility/crash.F Utility/curlz.F Utility/cvector.F Utility/datenum.F Utility/dateref.F Utility/datestr.F Utility/datevec.F Utility/day_code.F Utility/dens.F Utility/depth_iso.F Utility/depth_lab.F Utility/dombox.F Utility/draw_line.F Utility/draw_user.F Utility/drawcl.F Utility/entropy.F Utility/ertel.F Utility/fdiag.F Utility/filter.F Utility/fldnam2id.F Utility/geodesic_dist.F Utility/get_2dfld.F Utility/get_3dfld.F Utility/get_ape.F Utility/get_bernoulli.F Utility/get_bvf.F Utility/get_date.F Utility/get_dpres.F Utility/get_entropy.F Utility/get_ertel.F Utility/get_hdiv.F Utility/get_hslope.F Utility/get_isosur.F Utility/get_jebar.F Utility/get_nc1dat.F Utility/get_nc2dat.F Utility/get_nc2pos.F Utility/get_nc3dat.F Utility/get_nc3pos.F Utility/get_ncobs.F Utility/get_pig.F Utility/get_pltday.F Utility/get_pv.F Utility/get_rig.F Utility/get_rvor.F Utility/get_scoor.F Utility/get_wcurl.F Utility/gksinit.F Utility/great_int.F Utility/hbackground.F Utility/hindices.F Utility/hordiv.F Utility/inside.F Utility/jebar.F Utility/landmask.F Utility/lenstr.F Utility/lintrp.F Utility/mapeod.F Utility/maptitles.F Utility/mskerr.F Utility/mskscl.F Utility/opencdf.F Utility/read_fname.F Utility/readpal.F Utility/readpar.F Utility/relvor.F Utility/ri_number.F Utility/sec_axis.F Utility/sec_frame.F Utility/sec_rotvec.F Utility/setcolpal.F Utility/slevels.F Utility/spline.F Utility/splint.F Utility/streamlines.F Utility/stumsl.F Utility/stumxy.F Utility/svel.F Utility/time_indx.F Utility/vbackground.F Utility/vecmag.F Utility/vecpack.F Utility/velocity.F Utility/viewport.F Utility/vindices.F Utility/vvtext.F Utility/vvumxy.F Utility/what_flds.F Utility/wind_barbs.F Utility/xhslice.F Utility/xsection.F Utility/yearday.F Utility/zgrid.F Utility/zisopyc.F Drivers/Fnames.F Drivers/ccnt.F Drivers/cnt.F Drivers/csec.F Drivers/fieldid.F Drivers/sec.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/MakeDepend
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/areafill.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/areafill.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/areafill.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 areafill.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/areamask.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/areamask.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/areamask.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 areamask.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/barlab.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/barlab.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/barlab.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 barlab.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/bcintrp.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bcintrp.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bcintrp.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 bcintrp.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/bernoulli.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bernoulli.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bernoulli.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 bernoulli.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/box.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/box.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/box.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 box.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/bv_freq.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bv_freq.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/bv_freq.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 bv_freq.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/caldate.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/caldate.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/caldate.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 caldate.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cfield.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cfield.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cfield.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cfield.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cgrid.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cgrid.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cgrid.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cgrid.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/check2d.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/check2d.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/check2d.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 check2d.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/check3d.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/check3d.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/check3d.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 check3d.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/checkstrm.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/checkstrm.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/checkstrm.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 checkstrm.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/clrbox.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/clrbox.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/clrbox.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 clrbox.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cnt_frame.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cnt_frame.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cnt_frame.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cnt_frame.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cntcolor.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntcolor.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntcolor.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cntcolor.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cntint.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntint.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntint.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cntint.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cntpack.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntpack.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cntpack.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cntpack.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/colorbar.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/colorbar.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/colorbar.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 colorbar.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/colram.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/colram.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/colram.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 colram.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cpmpxy2d.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxy2d.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxy2d.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cpmpxy2d.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cpmpxz2d.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxz2d.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxz2d.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cpmpxz2d.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/crash.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/crash.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/crash.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 crash.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/curlz.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/curlz.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/curlz.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 curlz.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/cvector.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cvector.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cvector.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 cvector.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/datenum.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datenum.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datenum.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 datenum.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/dateref.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dateref.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dateref.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 dateref.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/datestr.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datestr.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datestr.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 datestr.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/datevec.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datevec.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/datevec.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 datevec.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/day_code.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/day_code.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/day_code.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 day_code.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/dens.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dens.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dens.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 dens.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/depth_iso.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/depth_iso.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/depth_iso.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 depth_iso.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/depth_lab.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/depth_lab.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/depth_lab.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 depth_lab.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/dombox.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dombox.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/dombox.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 dombox.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/draw_line.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/draw_line.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/draw_line.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 draw_line.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/draw_user.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/draw_user.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/draw_user.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 draw_user.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/drawcl.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/drawcl.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/drawcl.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 drawcl.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/entropy.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/entropy.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/entropy.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 entropy.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/ertel.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/ertel.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/ertel.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 ertel.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/fdiag.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/fdiag.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/fdiag.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 fdiag.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/filter.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/filter.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/filter.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 filter.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/fldnam2id.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/fldnam2id.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/fldnam2id.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 fldnam2id.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/geodesic_dist.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/geodesic_dist.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/geodesic_dist.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 geodesic_dist.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_2dfld.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_2dfld.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_2dfld.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_2dfld.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_3dfld.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_3dfld.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_3dfld.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_3dfld.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_ape.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ape.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ape.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_ape.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_bernoulli.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_bernoulli.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_bernoulli.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_bernoulli.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_bvf.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_bvf.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_bvf.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_bvf.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_date.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_date.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_date.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_date.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_dpres.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_dpres.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_dpres.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_dpres.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_entropy.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_entropy.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_entropy.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_entropy.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_ertel.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ertel.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ertel.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_ertel.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_hdiv.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_hdiv.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_hdiv.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_hdiv.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_hslope.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_hslope.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_hslope.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_hslope.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_isosur.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_isosur.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_isosur.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_isosur.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_jebar.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_jebar.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_jebar.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_jebar.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_nc1dat.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc1dat.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc1dat.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_nc1dat.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_nc2dat.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc2dat.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc2dat.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_nc2dat.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_nc2pos.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc2pos.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc2pos.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_nc2pos.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_nc3dat.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc3dat.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc3dat.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_nc3dat.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_nc3pos.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc3pos.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_nc3pos.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_nc3pos.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_ncobs.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ncobs.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_ncobs.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_ncobs.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_pig.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pig.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pig.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_pig.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_pltday.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pltday.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pltday.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_pltday.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_pv.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pv.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_pv.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_pv.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_rig.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_rig.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_rig.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_rig.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_rvor.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_rvor.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_rvor.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_rvor.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_scoor.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_scoor.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_scoor.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_scoor.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/get_wcurl.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_wcurl.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/get_wcurl.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 get_wcurl.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/gksinit.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/gksinit.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/gksinit.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 gksinit.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/great_int.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/great_int.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/great_int.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 great_int.f90
/usr/bin/cpp -P -traditional-cpp -w -I/usr/local/Cellar/netcdf/4.7.4_2/include -DDARWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Utility/hbackground.F > /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/hbackground.f90
Bin/cpp_clean /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/hbackground.f90
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -frepack-arrays -O3 hbackground.f90
hbackground.f90:187:33:

187 | CALL maptrn (blat,llon,xl,yb)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:188:33:

188 | CALL maptrn (tlat,rlon,xr,yt)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:205:33:

205 | CALL maptrn (ylat,llon,x,y)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:208:37:

208 | CALL maptrn (ylat,llon,x1,y1)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:209:37:

209 | CALL maptrn (ylat,rlon,x2,y2)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:264:35:

264 | CALL maptrn (ylat,llon,x,y)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:280:33:

280 | CALL maptrn (blat,xlon,x,y)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:283:37:

283 | CALL maptrn (blat,xlon,x1,y1)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:284:37:

284 | CALL maptrn (tlat,xlon,x2,y2)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
hbackground.f90:381:35:

381 | CALL maptrn (blat,xlon,x,y)
| 1
......
769 | CALL maptrn (-90.0,phoc,u,v)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
make: *** [/Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/hbackground.o] Error 1

osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Re: Compilation error for plotting package

#6 Unread post by osean »

Following up on the post above, I then made edits to FFLAGS in Darwin-gfortran.mk to allow argument mismatch.

This then leads to a new error:
cd /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt; /usr/local/bin/gfortran -c -fallow-argument-mismatch -O3 cnt.f90
cnt.f90:1273:58:

1155 | CALL streamlines (s1,s2,s3,im,im,jm,cmin,cmax,cint,icolor, &
| 2
......
1273 | CALL streamlines (s1,s2,s3,im,im,jm,cmax,cmin,icnt,icolor, &
| 1
Warning: Type mismatch between actual argument at (1) and actual argument at (2 (INTEGER(4)/REAL(4)).
/usr/local/bin/gfortran -fallow-argument-mismatch -O3 /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cnt.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxy2d.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/mapeod.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumsl.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumxy.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/vvumxy.o -o /Users/sean/bin/cnt /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/libUTIL.a -L/Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/lib -lncarg -lncarg_gks -lncarg_c -L/opt/X11/lib -lX11 -L/usr/local/lib -lnetcdff -lnetcdf
Undefined symbols for architecture x86_64:
"_FT_Init_FreeType", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_FT_New_Face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_arc", referenced from:
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_clip", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_clip_extents", referenced from:
_GetCROClipping in libncarg_gks.a(cro.o)
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_clip_preserve", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_destroy", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_CloseWorkstation in libncarg_gks.a(cro.o)
"_cairo_fill", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_fill_preserve", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_font_extents", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_ft_font_face_create_for_ft_face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_get_antialias", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_get_font_matrix", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_get_line_cap", referenced from:
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_get_line_width", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_get_source", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_identity_matrix", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_image_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_image_surface_create_for_data", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_image_surface_get_data", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_height", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_stride", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_width", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_line_to", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
...
"_cairo_matrix_scale", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_move_to", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
...
"_cairo_new_path", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_new_sub_path", referenced from:
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_paint", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_pattern_destroy", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_pattern_reference", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_pdf_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_set_eps", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_set_size", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_recording_surface_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_rectangle", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_rel_move_to", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_reset_clip", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_restore", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_rotate", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_save", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_scale", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
"_cairo_set_antialias", referenced from:
_cro_Esc in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_set_dash", referenced from:
_CROset_dashpattern in libncarg_gks.a(cro.o)
"_cairo_set_fill_rule", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_set_font_face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_font_matrix", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_font_size", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_line_cap", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_set_line_join", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_set_line_width", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_set_operator", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_set_source", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_set_source_rgba", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_source_surface", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_show_page", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_show_text", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_stroke", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_surface_destroy", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_surface_finish", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_surface_flush", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_UpdateWorkstation in libncarg_gks.a(cro.o)
_croX11Pause in libncarg_gks.a(crodisplay.o)
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_surface_write_to_png", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_svg_surface_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_text_extents", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_translate", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_create", referenced from:
_croCreateNativeDisplaySurface in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_display", referenced from:
_croFreeNativeSurface in libncarg_gks.a(crodisplay.o)
_croX11Pause in libncarg_gks.a(crodisplay.o)
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_drawable", referenced from:
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_height", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_get_width", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_set_size", referenced from:
_croActivateX11 in libncarg_gks.a(crodisplay.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/sean/bin/cnt] Error 1
Honestly, very confused. Any help would be much appreciated. Compiling the plot is much more complicated than I thought.

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

Re: Compilation error for plotting package

#7 Unread post by robertson »

Try installing cairo and freetype (probably called freetype2) libraries. If they are already installed, make sure they are the 64-bit versions and are in the library search path.

osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Re: Compilation error for plotting package

#8 Unread post by osean »

robertson wrote: Mon Mar 01, 2021 3:44 pm Try installing cairo and freetype (probably called freetype2) libraries. If they are already installed, make sure they are the 64-bit versions and are in the library search path.
Thanks. I have installed cairo and freetype. But I don't know how to find out where they are located / how to add library search path to terminal (I am using Mac OS). Is there any way to locate them? I tried 'which cairo' and 'which freetype', but neither returned anything; I suspect the execution files have different names? When I typed 'which freetype-config', it returns

Code: Select all

/Users/sean/opt/anaconda3/envs/ncl_stable/bin/freetype-config
It now still returns:
/usr/local/bin/gfortran -fallow-argument-mismatch -O3 /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cnt.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxy2d.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/mapeod.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumsl.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumxy.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/vvumxy.o -o /Users/sean/bin/cnt /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/libUTIL.a -L/Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/lib -lncarg -lncarg_gks -lncarg_c -L/opt/X11/lib -lX11 -L/Users/sean/opt/anaconda3/envs/ncl_stable/lib -lnetcdff -lnetcdf
Undefined symbols for architecture x86_64:
"_FT_Init_FreeType", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_FT_New_Face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_arc", referenced from:
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_clip", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_clip_extents", referenced from:
_GetCROClipping in libncarg_gks.a(cro.o)
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_clip_preserve", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_destroy", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_CloseWorkstation in libncarg_gks.a(cro.o)
"_cairo_fill", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_fill_preserve", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_font_extents", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_ft_font_face_create_for_ft_face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_get_antialias", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_get_font_matrix", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_get_line_cap", referenced from:
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_get_line_width", referenced from:
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_get_source", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_identity_matrix", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_image_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_image_surface_create_for_data", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_image_surface_get_data", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_height", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_stride", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
"_cairo_image_surface_get_width", referenced from:
_crotiff_writeImage in libncarg_gks.a(crotiff.o)
_crotiff_writeImageCompressed in libncarg_gks.a(crotiff.o)
"_cairo_line_to", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
...
"_cairo_matrix_scale", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_move_to", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
...
"_cairo_new_path", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_new_sub_path", referenced from:
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_paint", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_pattern_destroy", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_pattern_reference", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_pdf_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_create", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_set_eps", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_ps_surface_set_size", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_recording_surface_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_rectangle", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_rel_move_to", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_reset_clip", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_SetClipIndicator in libncarg_gks.a(cro.o)
"_cairo_restore", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_rotate", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_save", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_scale", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
"_cairo_set_antialias", referenced from:
_cro_Esc in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
"_cairo_set_dash", referenced from:
_CROset_dashpattern in libncarg_gks.a(cro.o)
"_cairo_set_fill_rule", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_set_font_face", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_font_matrix", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_font_size", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_line_cap", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_set_line_join", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_set_line_width", referenced from:
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_set_operator", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
"_cairo_set_source", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_set_source_rgba", referenced from:
_CROpict_init in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_set_source_surface", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_show_page", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_show_text", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_stroke", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_FillArea in libncarg_gks.a(cro.o)
_cro_SoftFill in libncarg_gks.a(cro.o)
_cro_Polyline in libncarg_gks.a(cro.o)
_cro_Polymarker in libncarg_gks.a(cro.o)
"_cairo_surface_destroy", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_CROInitCairoContext in libncarg_gks.a(cro.o)
"_cairo_surface_finish", referenced from:
_cro_Cellarray in libncarg_gks.a(cro.o)
"_cairo_surface_flush", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
_cro_UpdateWorkstation in libncarg_gks.a(cro.o)
_croX11Pause in libncarg_gks.a(crodisplay.o)
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_surface_write_to_png", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_svg_surface_create", referenced from:
_cro_ClearWorkstation in libncarg_gks.a(cro.o)
"_cairo_text_extents", referenced from:
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_translate", referenced from:
_setSurfaceTransform in libncarg_gks.a(cro.o)
_cro_Text in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_create", referenced from:
_croCreateNativeDisplaySurface in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_display", referenced from:
_croFreeNativeSurface in libncarg_gks.a(crodisplay.o)
_croX11Pause in libncarg_gks.a(crodisplay.o)
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_drawable", referenced from:
_croActivateX11 in libncarg_gks.a(crodisplay.o)
"_cairo_xlib_surface_get_height", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_get_width", referenced from:
_cro_OpenWorkstation in libncarg_gks.a(cro.o)
"_cairo_xlib_surface_set_size", referenced from:
_croActivateX11 in libncarg_gks.a(crodisplay.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/sean/bin/cnt] Error 1
From the last line I can see that this might be the last error before the executables can be created. Somehow trying to break through this error. Much appreciated

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

Re: Compilation error for plotting package

#9 Unread post by robertson »

You appear to be using a combination of Homebrew and anaconda so perhaps that is contributing to your issues. That said, in older versions of ncl/ncarg there was a separate library (libncarg_gks_cairo.a) that had several added dependencies (-lcairo -lfontconfig -lpixman-1 -lfreetype etc.). Some time between 5.2.1 and 6.6.2 this was removed in favor a single libncarg_gks.a library with everything in it. It is likely that you will need to add whatever appears inside the quotes for cairolib around line 25 of /Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/bin/ncargf90:

Code: Select all

set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2"
The line above is from an ncl 6.6.2 that I have installed but your line should be similar. You will want to take what is in the quotes and add it to LIBS in your Darwin-gfortran.mk file:

Code: Select all

#
# Library locations, can be overridden by environment variables.
#

             LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
             LIBS += -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2
#            LIBS += -L/usr/X11R6/lib -lX11
             LIBS += -L/opt/X11/lib -lX11
It's possible that ncargf90 is located somewhere else so you might need to do which ncargf90 to locate it.

osean
Posts: 47
Joined: Sat Jan 23, 2021 3:46 pm
Location: MIT-WHOI

Re: Compilation error for plotting package

#10 Unread post by osean »

robertson wrote: Wed Mar 03, 2021 4:51 pm You appear to be using a combination of Homebrew and anaconda so perhaps that is contributing to your issues. That said, in older versions of ncl/ncarg there was a separate library (libncarg_gks_cairo.a) that had several added dependencies (-lcairo -lfontconfig -lpixman-1 -lfreetype etc.). Some time between 5.2.1 and 6.6.2 this was removed in favor a single libncarg_gks.a library with everything in it. It is likely that you will need to add whatever appears inside the quotes for cairolib around line 25 of /Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/bin/ncargf90:

Code: Select all

set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2"
The line above is from an ncl 6.6.2 that I have installed but your line should be similar. You will want to take what is in the quotes and add it to LIBS in your Darwin-gfortran.mk file:

Code: Select all

#
# Library locations, can be overridden by environment variables.
#

             LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
             LIBS += -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2
#            LIBS += -L/usr/X11R6/lib -lX11
             LIBS += -L/opt/X11/lib -lX11
It's possible that ncargf90 is located somewhere else so you might need to do which ncargf90 to locate it.

Thank you very much for this.

I added the quoted code to Darwin-gfortran.mk and it has overcome the error with Cairo, successfully.

However, now it looks like there is a different type of error (below):
/usr/local/bin/gfortran -fallow-argument-mismatch -O3 /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cnt.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/cpmpxy2d.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/mapeod.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumsl.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/stumxy.o /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/vvumxy.o -o /Users/sean/bin/cnt /Users/sean/Documents/ROMS/plot/src/Bin/Build_plt/libUTIL.a -L/Users/sean/opt/anaconda3/pkgs/ncl-6.6.2-h34292a7_23/lib -lncarg -lncarg_gks -lncarg_c -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2 -L/opt/X11/lib -lX11 -L/Users/sean/opt/anaconda3/envs/ncl_stable/lib -lnetcdff -lnetcdf
ld: can't open output file for writing: /Users/sean/bin/cnt, errno=2 for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/sean/bin/cnt] Error 1
It now says 'errno=2 for architecture x86_64' - does it say it doesn't support x64? no clue what it means. I downloaded ncl from http://www.ncl.ucar.edu/Download/ which did not distinguish x64 vs x32/86...

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

Re: Compilation error for plotting package

#11 Unread post by robertson »

My guess is that /Users/sean/bin doesn't exist. Error number 2 is "No such file or directory".

Post Reply