[ncl-install] Segmentation fault when compiling NCL from source on Amazon Linux 2 (ARM64)

michael.graf at meteoprime.ch michael.graf at meteoprime.ch
Fri Sep 10 06:08:18 MDT 2021


Now, I performed the last experiments without success. It seems that the compilation of NCL on ARM64 architectures (Amazon Graviton 2) is very tricky and I will do now a workaround, where WRF and NCL are running on two different virtual machines with different architectures (ARM64 and X86_64). It would be more convenient to have it on the same virtual machine. However, at the moment, the needed effort for this seems to be too large. Nevertheless I attached the make-output files (compiled with GCC 11.2) for others as a debugging help.

 

The compilation with the develop branch produced identical errors as with the main branch. Afterwards I tried to compile it with the newest GCC version 11.2. Now, a lot of type mismatch error and rank mismatch errors occurs (see attached make-output files). I turned them off with the option -fallow-argument-mismatch, followed by numerous errors of type “Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function” that I override with the -fallow-invalid-boz option, but without success. Many “undefined reference” errors remain and also some “Error: Operands of binary numeric operator ‘/’at (1) are INTEGER(4)/BOZ” appear. 

 

Von: ncl-install <ncl-install-bounces at mailman.ucar.edu> Im Auftrag von Michael Graf via ncl-install
Gesendet: Donnerstag, 9. September 2021 08:50
An: 'Dave Allured - NOAA Affiliate' <dave.allured at noaa.gov>
Cc: ncl-install at mailman.ucar.edu
Betreff: Re: [ncl-install] Segmentation fault when compiling NCL from source on Amazon Linux 2 (ARM64)

 

As suggested, I compiled NCL with compiler-based debugging features enabled. Now, several errors occur (see below for some examples – zipped make-output file is attached). E. g. the error ‘At line 4397 of file Iftran.f - Fortran runtime error: Index '2' of dimension 1 of array 'id' above upper bound of 1’ occurs several times and many messages ‘undefined reference to `xxx’ appear now. The ncl binary cannot be created anymore. It’s not clear to me what’s causing now the errors, because they aren’t present, when debugging features are disabled. Maybe you have a suggestion. 

 

Next steps will be to use the develop branch of ncl for compilation and try out the newest version of GCC (11.2). 

 

*****

Processing graphcap adm5

At line 316 of file binput.f

Fortran runtime error: Index '327' of dimension 1 of array 'dumspc' above upper bound of 326

 

Error termination. Backtrace:

#0  0x40001b72195b in ???

#1  0x40001b722893 in ???

#2  0x40001b722ccb in ???

#3  0x401983 in binput_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/graphcap/binput.f:316

#4  0x40131f in capchg

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/graphcap/capchg.f:811

#5  0x401477 in main

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/graphcap/capchg.f:839

make[4]: *** [adm5] Error 2

make[4]: Leaving directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/graphcap'

 

*****

gcc -g -O0 -ansi -fPIC -fopenmp -std=c99  -O    -o Fsplit Fsplit.o -L../../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib -L/usr/local/lib    

make[5]: Leaving directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran'

Making ./ncarg2d/src/libncarg/areas

make[5]: Entering directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areas'

At line 4397 of file Iftran.f

Fortran runtime error: Index '2' of dimension 1 of array 'id' above upper bound of 1

 

Error termination. Backtrace:

#0  0x4000104a895b in ???

#1  0x4000104a9893 in ???

#2  0x4000104a9ccb in ???

#3  0x400f1f in xmit_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:4397

#4  0x4016cb in iftrio_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:2060

#5  0x403403 in rdcrd_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:3036

#6  0x40ca6f in getsta_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:1701

#7  0x4116d7 in iftrax_

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:225

#8  0x413093 in iftran

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:89

#9  0x413213 in main

                at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/Iftran/Iftran.f:99

make[5]: *** [IftranRun] Error 2

make[5]: Leaving directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areas'

 

*****

make[5]: Entering directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo'

gfortran -g -O0 -fbacktrace -fcheck=all -ffpe-trap=invalid,zero,overflow -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -o ezmapdemo EzmapDemo.o -L../../../.././ncarg2d/src/libncarg -lncarg -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../../.././common/src/libncarg_c -lncarg_c -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpng -lz -L/usr/local/ncarg/lib -L/usr/local/lib  -lX11 -lXext  

EzmapDemo.o: In function `colora_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2968: undefined reference to `mapaci_'

EzmapDemo.o: In function `drawla_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2984: undefined reference to `mapaci_'

EzmapDemo.o: In function `coninv_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4360: undefined reference to `cpsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4361: undefined reference to `cpsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4362: undefined reference to `cpsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4363: undefined reference to `cpsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4364: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4365: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4366: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4367: undefined reference to `cpsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4368: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4369: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4370: undefined reference to `cpseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4405: undefined reference to `cprect_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4406: undefined reference to `cpcldr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4407: undefined reference to `cprect_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4408: undefined reference to `cpcldr_'

EzmapDemo.o: In function `igetai_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:4453: undefined reference to `argtai_'

EzmapDemo.o: In function `MAIN__':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:522: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:530: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:539: undefined reference to `mapgrm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:555: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:556: undefined reference to `mapbla_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:559: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:566: undefined reference to `mapgrm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2615: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2620: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2625: undefined reference to `mapgrm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2632: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2633: undefined reference to `mapbla_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2634: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2636: undefined reference to `mapgrm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2789: undefined reference to `mapaci_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo/EzmapDemo.f:2780: undefined reference to `argtai_'

../../../.././ncarg2d/src/libncarg/libncarg.a(mdrgsx.o): In function `mdrgsx_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:83: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:484: undefined reference to `argeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:485: undefined reference to `arseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:486: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:487: undefined reference to `arseti_'

../../../.././ncarg2d/src/libncarg/libncarg.a(mdrgam.o): In function `mdrgam_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:55: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:81: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:95: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:93: undefined reference to `aredam_'

../../../.././ncarg2d/src/libncarg/libncarg.a(mdlnam.o): In function `mdlnam_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:127: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:130: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:132: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:134: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:136: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:165: undefined reference to `mdpbla_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:221: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:224: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:227: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:229: undefined reference to `mapiqa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:262: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:264: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:274: undefined reference to `aredam_'

../../../.././ncarg2d/src/libncarg/libncarg.a(mdlndr.o): In function `mdlndr_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:121: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:124: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:126: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:128: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:130: undefined reference to `mdrdnm_'

collect2: error: ld returned 1 exit status

make[5]: *** [ezmapdemo] Error 1

make[5]: Leaving directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/bin/ezmapdemo'

 

*****

rm -f libnclapi.a

ar: creating libnclapi.a

ranlib libnclapi.a

gcc -g -O0 -ansi -fPIC -fopenmp -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O  -I../../.././include -I/usr/local/include  -DLinux -DMAJOR=4                                                                                                                                                                                            -DBuildGDAL                                    -DUSE_NETCDF4_FEATURES                                                                                        -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto    -c -o Ncl.o Ncl.c

g\+\+ -g -O0 -ansi -fPIC -fopenmp -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O  -rdynamic   -o ncl Ncl.o io.o NclHLUObj.o NclApi.o guiFuncs.o NclDriver.o                                 scanner.o parser.o MathFuncs.o NclTypedouble.o NclTypefloat.o                                             NclTypeint.o NclTypelogical.o                                    NclTypelong.o NclTypeobj.o                                    NclTypeshort.o NclTypestring.o                                               NclTypeint64.o NclTypeuint64.o                                              NclTypeubyte.o                                               NclTypeushort.o NclTypeuint.o NclTypeulong.o                                               NclTypebyte.o NclTypechar.o TypeSupport.o                                    NclMultiDValData.o AddFileFormats.o AttSupport.o DataSupport.o                                        FileSupport.o Formats.o GetGrids.o                                   AdvancedFileSupport.o                                               NclAdvancedFile.o NclAdvancedGroup.o                                    InitData.o Memory.o NclAtt.o NclCCM.o                                              NclCoordVar.o NclData.o NclGroup.o NclFile.o NclFileVar.o                                       NclGRIB.o NclMultiDValnclfileData.o                                      NclNetCdf.o NclOneDValCoordData.o NclType.o                                              NclTypelist.o NclVar.o VarSupport.o                                      ctoiee.o date.o qu2reg3.o rowina3.o scm0.o ncepcode.o                                                                                                                                                                                           NclNetCDF4.o                                    NclOGR.o NclAdvancedOGR.o AddBuiltIns.o AddHLUObjs.o                                     AddIntrinsics.o Execute.o                                           Machine.o OpsFuncs.o SrcTree.o                                            Symbol.o Translate.o                                     NclHLUVar.o HLUSupport.o                                        NclMultiDValHLUObjData.o                                       BuiltInSupport.o BuiltInFuncs.o                                                javaAddProto.o javaAddFuncs.o                                              userAddProto.o userAddFuncs.o                                             HLUFunctions.o yywrap.o craybin.o                                        complete.o editline.o sysunix.o ListSupport.o                                    NclList.o NclMultiDVallistData.o                                               NclProf.o NclTime.o PrintToken.o                                            subprocess.o fortranio.o  -L../../.././ni/src/lib/nfp -lnfp -L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/lib/hlu -lhlu -L../../.././ncarg2d/src/libncarg -lncarg -L../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../.././common/src/libncarg_c -lncarg_c -L../../.././ngmath/src/lib -lngmath -L/usr/local/ncarg/lib -L/usr/local/lib -lnetcdf  -lhdf5_hl -lhdf5 -lsz    -lgdal -lproj -ljpeg   -ludunits2 -lexpat   -lpng -lz -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2  -L../../.././external/sphere3.1_dp -lsphere3.1_dp -L../../.././external/fftpack5_dp -lfftpack5_dp -L../../.././external/lapack -llapack_ncl -L../../.././external/blas -lblas_ncl -lX11 -lXext -lgfortran -lm -lm  -ldl  

../../.././ni/src/lib/nfpfort/libnfpfort.a(ctwrap.o): In function `drwmcl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:1082: undefined reference to `ctgeti_'

../../.././ni/src/lib/nfpfort/libnfpfort.a(ctwrap.o): In function `dcfocb_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:1131: undefined reference to `ctgeti_'

../../.././ni/src/lib/nfpfort/libnfpfort.a(ctwrap.o): In function `mkmesh_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:1373: undefined reference to `cttmtl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:1257: undefined reference to `cttmtl_'

../../.././ni/src/lib/nfpfort/libnfpfort.a(ctwrap.o): In function `ctdriver_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:378: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:382: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:387: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:388: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:389: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:398: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:402: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:406: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:410: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:414: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:418: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:422: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:423: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:424: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:428: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:433: undefined reference to `ctseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:437: undefined reference to `ctsetr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:711: undefined reference to `ctmesh_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:743: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:748: undefined reference to `ctlbam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:755: undefined reference to `ctcldm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:769: undefined reference to `ctlbdr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:773: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:778: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:847: undefined reference to `ctmesh_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:854: undefined reference to `ctpkcl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:859: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:864: undefined reference to `ctclam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:874: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:883: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:888: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:962: undefined reference to `ctmesh_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:970: undefined reference to `ctcica_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:977: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:982: undefined reference to `ctgeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:725: undefined reference to `ctcldr_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/nfpfort/ctwrap.f:732: undefined reference to `ctlbdr_'

../../.././ni/src/lib/hlu/libhlu.a(Workspace.o): In function `_NhlCpcltr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Workspace.c:2783: undefined reference to `cptrcl_'

../../.././ni/src/lib/hlu/libhlu.a(Workspace.o): In function `_NhlCtcltr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Workspace.c:2886: undefined reference to `cttrcl_'

../../.././ni/src/lib/hlu/libhlu.a(Workspace.o): In function `_NhlCpcica':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Workspace.c:3240: undefined reference to `cpcica_'

../../.././ni/src/lib/hlu/libhlu.a(Workspace.o): In function `_NhlHLUCtmesh':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Workspace.c:3722: undefined reference to `hluctmesh_'

../../.././ni/src/lib/hlu/libhlu.a(Format.o): In function `_NhlFormatFloat':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Format.c:940: undefined reference to `cpinrc_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Format.c:957: undefined reference to `cpnumb_'

../../.././ni/src/lib/hlu/libhlu.a(Format.o): In function `_NhlGetScaleInfo':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Format.c:1283: undefined reference to `cpinrc_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/Format.c:1300: undefined reference to `cpnumb_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `CnStdRender':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:2017: undefined reference to `cpdrpl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:2017: undefined reference to `cpdrpl_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `hlucpscae_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:2537: undefined reference to `cpscae_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `hlucpchcl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:2611: undefined reference to `cpchcl_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `hlucpchhl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:2843: undefined reference to `cpchhl_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `hlucpchll_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:3114: undefined reference to `cpchll_'

../../.././ni/src/lib/hlu/libhlu.a(CnStdRenderer.o): In function `hlucpmpxy_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnStdRenderer.c:3319: undefined reference to `cpmpxy_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `BuildNativeMesh':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:1277: undefined reference to `hlucttmtl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:1340: undefined reference to `hlucttmtl_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `BuildNativeMeshFromBounds':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:1659: undefined reference to `hlucttmtl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:1722: undefined reference to `hlucttmtl_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `hluctscae_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:6065: undefined reference to `ctscae_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `hluctchcl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:6147: undefined reference to `ctchcl_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `hluctchhl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:6370: undefined reference to `ctchhl_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `hluctchll_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:6635: undefined reference to `ctchll_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `hluctmxyz_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:6822: undefined reference to `ctmxyz_'

../../.././ni/src/lib/hlu/libhlu.a(CnTriMeshRenderer.o): In function `CnTriMeshRender':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:4537: undefined reference to `ctdrpl_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/CnTriMeshRenderer.c:4537: undefined reference to `ctdrpl_'

../../.././ni/src/lib/hlu/libhlu.a(hluarpram.o): In function `hluarpram_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:118: undefined reference to `arblda_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:160: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:233: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:337: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:341: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:561: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:593: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:615: undefined reference to `armpia_'

../../.././ni/src/lib/hlu/libhlu.a(hluarpram.o):/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:690: more undefined references to `armpia_' follow

../../.././ni/src/lib/hlu/libhlu.a(hluarpram.o): In function `hluarpram_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:735: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:880: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1013: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1501: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1194: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1198: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1202: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1180: undefined reference to `arrat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1187: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1272: undefined reference to `arrat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1279: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1286: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1290: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1294: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1706: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1699: undefined reference to `arrat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1713: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1717: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1721: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1810: undefined reference to `arrat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1824: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1828: undefined reference to `armpia_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1832: undefined reference to `ardat2_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:2047: undefined reference to `ardbpa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/lib/hlu/hluarpram.f:1817: undefined reference to `ardat2_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_aredam.o): In function `c_aredam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_aredam.c:40: undefined reference to `aredam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_arinam.o): In function `c_arinam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_arinam.c:30: undefined reference to `arinam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_armvam.o): In function `c_armvam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_armvam.c:32: undefined reference to `armvam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_arpram.o): In function `c_arpram':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_arpram.c:34: undefined reference to `arpram_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_arscam.o): In function `c_arscam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_arscam.c:51: undefined reference to `arscam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_arseti.o): In function `c_arseti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_arseti.c:41: undefined reference to `arseti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ardbpa.o): In function `c_ardbpa':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/areasC/c_ardbpa.c:37: undefined reference to `ardbpa_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpback.o): In function `c_cpback':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpback.c:32: undefined reference to `cpback_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpclam.o): In function `c_cpclam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpclam.c:34: undefined reference to `cpclam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpcldm.o): In function `c_cpcldm':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpcldm.c:43: undefined reference to `cpcldm_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpcldr.o): In function `c_cpcldr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpcldr.c:32: undefined reference to `cpcldr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpgeti.o): In function `c_cpgeti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpgeti.c:41: undefined reference to `cpgeti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpgetr.o): In function `c_cpgetr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpgetr.c:41: undefined reference to `cpgetr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cplbam.o): In function `c_cplbam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cplbam.c:34: undefined reference to `cplbam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cplbdr.o): In function `c_cplbdr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cplbdr.c:32: undefined reference to `cplbdr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpmviw.o): In function `c_cpmviw':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpmviw.c:32: undefined reference to `cpmviw_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpmvrw.o): In function `c_cpmvrw':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpmvrw.c:32: undefined reference to `cpmvrw_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cprect.o): In function `c_cprect':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cprect.c:43: undefined reference to `cprect_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cprset.o): In function `c_cprset':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cprset.c:18: undefined reference to `cprset_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpsetc.o): In function `c_cpsetc':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpsetc.c:44: undefined reference to `cpsetc_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpseti.o): In function `c_cpseti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpseti.c:41: undefined reference to `cpseti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cpsetr.o): In function `c_cpsetr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpackC/c_cpsetr.c:45: undefined reference to `cpsetr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctclam.o): In function `c_ctclam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctclam.c:38: undefined reference to `ctclam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctcldm.o): In function `c_ctcldm':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctcldm.c:47: undefined reference to `ctcldm_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctcldr.o): In function `c_ctcldr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctcldr.c:36: undefined reference to `ctcldr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctgeti.o): In function `c_ctgeti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctgeti.c:41: undefined reference to `ctgeti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctgetr.o): In function `c_ctgetr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctgetr.c:41: undefined reference to `ctgetr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctlbam.o): In function `c_ctlbam':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctlbam.c:38: undefined reference to `ctlbam_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctlbdr.o): In function `c_ctlbdr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctlbdr.c:36: undefined reference to `ctlbdr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctmesh.o): In function `c_ctmesh':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctmesh.c:56: undefined reference to `ctmesh_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctmviw.o): In function `c_ctmviw':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctmviw.c:32: undefined reference to `ctmviw_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctmvrw.o): In function `c_ctmvrw':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctmvrw.c:32: undefined reference to `ctmvrw_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctrset.o): In function `c_ctrset':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctrset.c:20: undefined reference to `ctrset_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctsetc.o): In function `c_ctsetc':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctsetc.c:44: undefined reference to `ctsetc_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctseti.o): In function `c_ctseti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctseti.c:41: undefined reference to `ctseti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_ctsetr.o): In function `c_ctsetr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_ctsetr.c:45: undefined reference to `ctsetr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_cttmrg.o): In function `c_cttmrg':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/conpacktC/c_cttmrg.c:79: undefined reference to `cttmrg_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_mapblm.o): In function `c_mapblm':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapCC/c_mapblm.c:50: undefined reference to `mapblm_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_mapiqa.o): In function `c_mapiqa':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapCC/c_mapiqa.c:34: undefined reference to `mapiqa_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_mapita.o): In function `c_mapita':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapCC/c_mapita.c:40: undefined reference to `mapita_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_mapbla.o): In function `c_mapbla':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapCC/c_mapbla.c:28: undefined reference to `mapbla_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_mapgrm.o): In function `c_mapgrm':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapCC/c_mapgrm.c:50: undefined reference to `mapgrm_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_sfgeti.o): In function `c_sfgeti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/softfillC/c_sfgeti.c:41: undefined reference to `sfgeti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_sfseti.o): In function `c_sfseti':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/softfillC/c_sfseti.c:41: undefined reference to `sfseti_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_sfsetr.o): In function `c_sfsetr':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/softfillC/c_sfsetr.c:42: undefined reference to `sfsetr_'

../../.././ncarg2d/src/libncarg/libncarg.a(c_sfsgfa.o): In function `c_sfsgfa':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/softfillC/c_sfsgfa.c:43: undefined reference to `sfsgfa_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdrgsx.o): In function `mdrgsx_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:83: undefined reference to `arinam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:484: undefined reference to `argeti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:485: undefined reference to `arseti_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:486: undefined reference to `arscam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgsx.f:487: undefined reference to `arseti_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdlnam.o): In function `mdlnam_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:127: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:130: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:132: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:134: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:136: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:165: undefined reference to `mdpbla_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:221: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:224: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:227: undefined reference to `mapita_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:229: undefined reference to `mapiqa_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:262: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:264: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnam.f:274: undefined reference to `aredam_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdlndm.o): In function `mdlndm_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:132: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:135: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:137: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:139: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:141: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:216: undefined reference to `mdpchm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:221: undefined reference to `mdpchm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:226: undefined reference to `mapitm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:230: undefined reference to `mapitm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:234: undefined reference to `mapitm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:236: undefined reference to `mapiqm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:249: undefined reference to `mdpchm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndm.f:258: undefined reference to `mdpblm_'

../../.././ncarg2d/src/libncarg/libncarg.a(vvdraw.o): In function `vvdraw_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/velvct/vvdraw.f:227: undefined reference to `argtai_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/velvct/vvdraw.f:231: undefined reference to `ardrln_'

../../.././ncarg2d/src/libncarg/libncarg.a(vvdrfl.o): In function `vvdrfl_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/velvct/vvdrfl.f:284: undefined reference to `argtai_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/velvct/vvdrfl.f:288: undefined reference to `ardrln_'

../../.././ncarg2d/src/libncarg/libncarg.a(wmrgwt.o): In function `wmrgwt_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/wmap/wmrgwt.f:150: undefined reference to `ppinpo_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/wmap/wmrgwt.f:168: undefined reference to `ppinpo_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdrgam.o): In function `mdrgam_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:55: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:81: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:95: undefined reference to `aredam_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmap/mdrgam.f:93: undefined reference to `aredam_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdlndr.o): In function `mdlndr_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:121: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:124: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:126: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:128: undefined reference to `mdrdnm_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlndr.f:130: undefined reference to `mdrdnm_'

../../.././ncarg2d/src/libncarg/libncarg.a(mdlnri.o):/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/ezmapb/mdlnri.f:93: more undefined references to `mdrdnm_' follow

../../.././ncarg2d/src/libncarg/libncarg.a(stutil.o): In function `stlnsg_':

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/strmln/stutil.f:306: undefined reference to `ardrln_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/strmln/stutil.f:345: undefined reference to `ardrln_'

/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ncarg2d/src/libncarg/strmln/stutil.f:364: undefined reference to `ardrln_'

collect2: error: ld returned 1 exit status

make[4]: *** [ncl] Error 1

make[4]: Leaving directory `/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/ni/src/ncl'

 

Von: ncl-install < <mailto:ncl-install-bounces at mailman.ucar.edu> ncl-install-bounces at mailman.ucar.edu> Im Auftrag von Michael Graf via ncl-install
Gesendet: Dienstag, 7. September 2021 11:43
An: 'Dave Allured - NOAA Affiliate' < <mailto:dave.allured at noaa.gov> dave.allured at noaa.gov>
Cc:  <mailto:ncl-install at mailman.ucar.edu> ncl-install at mailman.ucar.edu
Betreff: Re: [ncl-install] Segmentation fault when compiling NCL from source on Amazon Linux 2 (ARM64)

 

Thanks for the helpful suggestions. I started with isolation of the segmentation fault and found out that it occurs when the function gsn_contour() is called. Then I checked where in this function the segmentation fault is triggered and found out that it is in the block shown below between the two print statements. Don’t know exactly what this part is doing but it seems to be related to the contour plotting routine. I was also using ncl -x but didn’t find some additional info about the error. Next step will be the compilation with compiler-based debugging features enabled. 

 

*****

if (is_lb_mode) then

if(res2.and.isatt(res2,"trGridType")) then

plot_object = create wksname + "_contour" contourPlotClass wks

"cnScalarFieldData" : data_object

"pmLabelBarDisplayMode" : lb_mode

"trXTensionF": xtension

"trYTensionF": ytension

"trGridType": res2 at trGridType

end create

delete(res2 at trGridType)

else

print("START CREATE")

plot_object = create wksname + "_contour" contourPlotClass wks

"cnScalarFieldData" : data_object

"pmLabelBarDisplayMode" : lb_mode

"trXTensionF": xtension

"trYTensionF": ytension

end create <-- Segmentation fault

print("END CREATE")

end if

 

*****

opts2 = opts

delete_attrs(opts2); Clean up.

  print("RUN gsn_contour()")

  ;print(wks)

  ;print(data)

  ;print(opts2)

cn = gsn_contour(wks,data,opts2); Create the plot. <-- Segmentation fault

print("FINISH gsn_contour()")

_SetMainTitle(nc_file,wks,cn,opts); Set some titles

 

Von: Dave Allured - NOAA Affiliate < <mailto:dave.allured at noaa.gov> dave.allured at noaa.gov> 
Gesendet: Montag, 6. September 2021 21:51
An:  <mailto:michael.graf at meteoprime.ch> michael.graf at meteoprime.ch
Cc:  <mailto:ncl-install at mailman.ucar.edu> ncl-install at mailman.ucar.edu
Betreff: Re: [ncl-install] Segmentation fault when compiling NCL from source on Amazon Linux 2 (ARM64)

 

Here are a few more suggestions in between trial and error, and deeper debugging.  I don't have anything better than these general suggestions, sorry.

 

* Use the debug mode ncl -x to further isolate the lower level NCL statement that triggers the error.

 

* wrf_contour is actually NCL code, inside $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl.   Make your own clone, and isolate the lower level NCL statement that triggers the error.  You may be able to bypass the problem with alternative coding, or simply eliminate a non-essential section, such as logging.

 

* Rebuild NCAR/NCL with compiler-based debugging features enabled, such as -g -O0 -fbacktrace -fcheck=all -ffpe-trap=invalid,zero,overflow.  


* Try the latest NCARG/NCL development version from  <https://github.com/NCAR/ncl> https://github.com/NCAR/ncl.  Take the "develop" branch.  There have been several bug fixes and build improvements since the 6.6.2 release.

 

* Upgrade your GCC/gfortran version.  There have been improvements in ARM support.  Check to see what is available in the Extras package for Amazon Linux.  Consider building your own GCC/gfortran to the latest version, currently 11.2.  If you switch GCC/gfortran versions, you may also need to rebuild some of your dependencies.

 

 

On Mon, Sep 6, 2021 at 5:12 AM < <mailto:michael.graf at meteoprime.ch> michael.graf at meteoprime.ch> wrote:

Thanks for the hint. Now (with copying the font files from another distribution) I can compile NCL without error message on Amazon Linux 2. However, when I run a script with NCL I’m still receiving a message ‘Segmentation fault’. I’m also compiling it with the -g option, but don’t get some additional hints (see below).  I found out that the segmentation fault occurs when the function wrf_contour() is called. Other things seem to work well. I can read NetCDF-4 files without problems, calculate CAPE and other diagnostics. I also managed to install NCL version 6.6.2 from EPEL8 on RHEL8 (ARM64, AWS Graviton2) without any problems. However, exactly the same issue (Segmentation fault) occurred, when calling wrf_contour(). It seems to me that other parts then the fontcap compilation have similar problems. Maybe the problem is related to the CPU AWS Graviton2, but it’s also little endian.

 

*****

> ncl wrf_mucape_cin.ncl

 

Copyright (C) 1995-2019 - All Rights Reserved 

University Corporation for Atmospheric Research NCAR Command Language Version 6.6.2 

The use of this software is governed by a License Agreement. 

See  <http://www.ncl.ucar.edu/> http://www.ncl.ucar.edu/ for more details. 

(0)Working on time: 2021-08-31_00:00:00 

Segmentation fault

 

*****

> lscpu

 

Architecture: aarch64 

Byte Order: Little Endian 

CPU(s): 2 On-line 

CPU(s) list: 0,1 

Thread(s) per core: 1 Core(s) per socket: 2 

Socket(s): 1 NUMA node(s): 1 

Model: 1 

BogoMIPS: 243.75 

L1d cache: 64K 

L1i cache: 64K 

L2 cache: 1024K 

L3 cache: 32768K 

NUMA node0 CPU(s): 0,1 

Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs

 

 

On Fri, Sep 3, 2021 at 4:39 PM Dave Allured - NOAA Affiliate < <mailto:dave.allured at noaa.gov> dave.allured at noaa.gov> wrote:

I think fontc is a standalone program that is used only during the NCL build process.  You may be able to sidestep the program issue completely, by simply copying over the compiled fontcap files from a different build.  Look at one of the X86 binary distributions, or a working install on any X86 system.  I suspect that the only compatibility issue is endianness of 16- and 32-bit integers.  ARM64 and X86 should both be little endian; not sure because I lack ARM experience.  

 

 

On Wed, Sep 1, 2021 at 11:37 AM Michael Graf via ncl-install < <mailto:ncl-install at mailman.ucar.edu> ncl-install at mailman.ucar.edu> wrote:

Dear all, 

Thanks for adding me to the NCL mailing list.

I am trying to compile the latest NCL Version 6.6.2 from scratch on Amazon
Linux 2 (ARM64 architecture). Everything works fine except that a
segmentation fault occurs when the fontcaps are compiled respectively when
the fontc binary is processing fontcaps (see output below). No other error
occurs. The ncl binary is compiled and it can be started without problems,
but when I run a plotting script a segmentation fault occurs that is
probably related to the compilation error in fontcap. 

I also compiled a minimal version with as few dependencies as possible (no
GDAL, HDF5, NETCDF-4 and so on) to rule out that they cause the problem
without any effect. I have also randomly tried different compiler options
for the compilation in the folder fontcap, but the error always remains the
same. I suspect that the compiler is causing the problem, but there is no
alternative on Amazon Linux 2 so far. I'm using gfortran (version 7.3.1) and
gcc (version 7.3.1), but here only Fortran77 code seems to be compiled. 

It would be great if somebody has a hint how to overcome this problem. Maybe
there is another option, so that I don't have to build it from scratch. The
installation with conda does not work on ARM64. 

Best, Michael

************************************************************************
Making ./common/src/fontcap
make[4]: Entering directory
`/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap'
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O   -c
cfaamn.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
cfrdln.o cfrdln.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
cfwrit.o cfwrit.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffgttk.o ffgttk.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffinfo.o ffinfo.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffphol.o ffphol.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffppkt.o ffppkt.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffprcf.o ffprcf.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
ffprsa.o ffprsa.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
fftbkd.o fftbkd.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
fftkin.o fftkin.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sffndc.o sffndc.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sfgtin.o sfgtin.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sfgtkw.o sfgtkw.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sfprcf.o sfprcf.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sfskbk.o sfskbk.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -c -o
sftbkd.o sftbkd.f
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -o
fontc cfaamn.o  cfrdln.o  cfwrit.o  ffgttk.o  ffinfo.o  ffphol.o  ffppkt.o
ffprcf.o ffprsa.o  fftb
kd.o  fftkin.o  sffndc.o  sfgtin.o  sfgtkw.o  sfprcf.o  sfskbk.o sftbkd.o
-L../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg_gdal/lib
-L/usr/local/lib
Processing fontcap font1

Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.

Backtrace for this error:
#0  0x40001dcb99a3
#1  0x40001dcb888f
#2  0x40001dc90667
#3  0x403bdc
#4  0x403c63
#5  0x4032af
#6  0x400efb
#7  0x401213
#8  0x40001df5ace3
#9  0x400d07
make[4]: *** [font1] Segmentation fault
make[4]: Leaving directory
`/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap'

************************************************************************
gfortran -g -fbacktrace -Wall -fcheck=all      -o fontc cfaamn.o  cfrdln.o
cfwrit.o  ffgttk.o  ffinfo.o  ffphol.o  ffppkt.o  ffprcf.o ffprsa.o
fftbkd.o  fftkin.o  sffndc.o
  sfgtin.o  sfgtkw.o  sfprcf.o  sfskbk.o sftbkd.o
-L../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib
-L/usr/local/lib    
Processing fontcap font1

Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.

Backtrace for this error:
#0  0x40001a29595b in ???
#1  0x40001a29488f in ???
#2  0x40001a26c667 in ???
#3  0x40723c in ???
#4  0x4072e7 in ???
#5  0x405c97 in sfgtwk_
at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/sfgtkw.f:95
#6  0x4061cb in sfprcf_
at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/sfprcf.f:108
#7  0x40119b in cfaamn
at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/cfaamn.f:304
#8  0x401633 in main
at /home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/cfaamn.f:358
make: *** [font1] Segmentation fault

************************************************************************
gfortran -g -fsanitize=address,undefined      -o fontc cfaamn.o  cfrdln.o
cfwrit.o  ffgttk.o  ffinfo.o  ffphol.o  ffppkt.o  ffprcf.o ffprsa.o
fftbkd.o  fftkin.o  sffndc.o 
 sfgtin.o  sfgtkw.o  sfprcf.o  sfskbk.o sftbkd.o
-L../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib
-L/usr/local/lib    
Processing fontcap font1
ASAN:DEADLYSIGNAL
=================================================================
==2477==ERROR: AddressSanitizer: SEGV on unknown address 0x100005104df40 (pc
0x00000040ffd0 bp 0xffffd104daf0 sp 0xffffd104daf0 T0)
==2477==The signal is caused by a READ memory access.
    #0 0x40ffcf in gbyte_
(/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/fontc+0x40ffcf)
    #1 0x410057 in gbytes_
(/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/fontc+0x410057)
    #2 0x40deab in sfprcf_
/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/sfprcf.f:117
    #3 0x40213f in cfaamn
/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/cfaamn.f:304
    #4 0x402d7b in main
/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/cfaamn.f:358
    #5 0x40002cbc7ce3 in __libc_start_main (/lib64/libc.so.6+0x1fce3)
    #6 0x4018a7
(/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/fontc+0x4018a7)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
(/home/ec2-user/wrf/NCL/ncl_ncarg-6.6.2/common/src/fontcap/fontc+0x40ffcf)
in gbyte_
==2477==ABORTING
make: *** [font1] Error 1

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
 <https://mailman.ucar.edu/mailman/listinfo/ncl-install> https://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-install/attachments/20210910/f614343b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-output-gcc11.zip
Type: application/x-zip-compressed
Size: 624802 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-install/attachments/20210910/f614343b/attachment-0001.bin>


More information about the ncl-install mailing list