Re: Issues with building NCL 5.0.0 with Intel Compilers

From: Craig Tierney <Craig.Tierney_at_nyahnyahspammersnyahnyah>
Date: Fri, 11 Apr 2008 11:29:31 -0600

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)
Received on Fri Apr 11 2008 - 11:29:31 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2008 - 19:45:17 MDT