[ncl-install] Issues with building NCL 5.0.0 with Intel Compilers

Craig Tierney Craig.Tierney at noaa.gov
Fri Apr 11 11:29:31 MDT 2008


Mary Haley wrote:
> 
... stuff deleted

>>
>> Questions:
>>
>> 1) What is ifcore?
> 
> It's an Intel system library that is needed when building Fortran
> and C code together.  Below, when you tried to compile ictrans,
> it gave you an undefined reference of "for_cpystr". This symbol
> is defined in the ifcore library, so you need to make sure
> this is included on the compile line, by making sure
> it is in your $NCARG/config/LINUX file as you saw above.
> 

I asked about ifcore because I wsa getting the following error:

[root at wms1 ictrans]# icc -ansi  -O2    -o ictrans main.o ../../../.././ncarview/src/lib/libictrans/libictrans.o 
../../../.././ncarview/src/lib/libctrans/libctrans.o -L../../../.././ncarview/src/lib/libcgm -lcgm 
-L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras                         -L../../../.././common/src/libncarg_c -lncarg_c 
-L/opt/ncl/5.0.0_intel_9.1/lib -L/usr/X11R6/lib64 -L/opt/netcdf/3.6.1_intel_9.1/lib -L/opt/udunits/1.12.4/lib 
-L/opt/hdf4/2r1_intel_9.1/lib -L/opt/netcdf/3.6.1_intel_9.1/lib -lXpm -lX11 -lXext   -lmfhdf -ldf -ljpeg -lz -lm -lifcore
IPO link: can not find -lifcore
icc: error: problem during multi-file optimization compilation (code 1)

The library ifcore does not exist for icc, only for ifort.
If I change the compiler to "ifort -nofor-main" it works.

How should it be compiled?

... more stuff deleted

Thanks,
Craig

-- 
Craig Tierney (craig.tierney at noaa.gov)


More information about the ncl-install mailing list