Re: Error compiling Ictranc

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 17 Apr 2008 08:02:03 -0600 (MDT)

On Thu, 17 Apr 2008, Tristan Le Toullec wrote:

> Thank you,
> I 'd correct error, with "CTOFLIBS =
> -L/opt/linux/intel_fc_10.1/ia32/lib -lifcore -lm" ictrans compiling
> correctly, but...
> ...when test's time appeared
>
> g010a ~/tmp/temp > which idt ictrans
> /local/archive/1/tletou/ncarg//bin/idt
> /local/archive/1/tletou/ncarg//bin/ictrans [Right!]
>
> g010a ~/tmp/temp > tgks0a [Ok]
>
> g010a ~/tmp/temp > idt gmeta
> reading stdout of translator: Illegal seek
> Translator aborted [Show idt
> windows but nothing to see here]
>
> g010a ~/tmp/temp > ictrans -V
> ictrans - Version 5.0.0
> g010a ~/tmp/temp > ictrans -d X11 gmeta
> ictrans: FATAL -
> open(/local/archive/1/tletou/ncarg/lib/ncarg/graphcaps/#####O_RDONLY)
> ictrans: FATAL - Can't initialize
> device(/local/archive/1/tletou/ncarg/lib/ncarg/graphcaps/##### [
> open(/local/archive/1/tletou/ncarg/lib/ncarg/graphcaps/#####O_RDONLY) ]
>
> I'm owning /local/archive/1/tletou/ncarg/lib/ncarg/graphcaps and files are
> writable for me.
>
> Thank you,
> Tristan Le Toullec

Hi Tristan,

I don't recall ever seeing this kind of error from trying to read the
graphcaps. However, since you are sending the output to an X11 window,
it shouldn't be trying to read any graphcaps anyway. I seem to remember
that at one time, it was possible to build ictrans without X11 support,
and if you then tried to use the "-d X11" option, ictrans would
look in the graphcaps directory for an "x11" graphcap (which never
existed, and hence you would get an error).

Let's first see if something is wrong with the graphcaps directory.
You should only need read (and not write) permissions for the
directories under /local/archive/1/tletou/ncarg/lib/ncarg. Can you do
the following to make sure you have the correct permissions:

   ls -l /local/archive/1/tletou/ncarg/lib
   ls -l /local/archive/1/tletou/ncarg/lib/ncarg
   ls -l /local/archive/1/tletou/ncarg/lib/ncarg/graphcaps

You can personally email me the output from the above so I can double
check it for you.

--Mary

> Rick Grubin a écrit :
>> Hi Tristan
>>
>>> I 'm trying to compile NCL 5.0 with Intel Fortan & C compiler. Idt
>>> doesn't display anything (just say "translator aborted"). Seem that's
>>> something wrong about 'ictrans'.
>>>
>>> Indeed ictrans's compilation crash with "(.text+0x6eb5): undefined
>>> reference to `for_cpystr`"
>>
>> 'for_cpystr' is a symbol from the Intel Fortran compiler's library
>> 'libifcore'
>>
>>> Intel(R) C Compiler for applications running on IA-32, Version 10.1
>>> Build 20070913 Package ID: l_cc_p_10.1.008
>>> Intel(R) Fortran Compiler for applications running on IA-32, Version
>>> 10.1 Build 20070913 Package ID: l_fc_p_10.1.008
>>> [...]
>>>
>>> icc -mp -ansi -O -o ictrans main.o
>>> [...] -L/opt/1/intel_cc_10.1/ia32/lib -lcxa -lifcore -lcprts -lm
>>>
>>> ../../../.././ncarview/src/lib/libictrans/libictrans.o: In function
>>> `giargs_':
>>> (.text+0x6eb5): undefined reference to `for_cpystr'
>>> [...]
>>> CTOFLIBS = -L/opt/1/intel_cc_10.1/ia32/lib -lcxa -lifcore -lcprts -lm
>>
>> It would appear that you've done this, based on the output from the
>> compilation and your Makefile. Could you
>> please send along your 'LINUX' config file, located in:
>> /path/to/ncl_source_code/ncarg/config/LINUX ?
>>
>> Also, as was pointed out to me by a user, strictly speaking, the references
>> to libraries 'cxa' and 'cprts' are not
>> necessary, but shouldn't hurt either.
>>
>> One other thing to verify, as we cannot duplicate your host here, is that
>> there is indeed a 'libifcore.a' located
>> in /opt1/intel_cc_10.1/ia32/lib -- that directory seems, by its name, to
>> refer to the Intel C compiler library, and
>> 'libifcore.a' is an Intel Fortran compiler library. Is there a directory
>> similarly named that refers to the Fortran compiler
>> present in /opt1 ?
>>
>> ---- Rick Grubin NCAR/TDD/CISL/VETS
>> Visualization + Enabling Technologies
>> grubin_at_ucar.edu 303.497.1832
>>
>>
>>
>
> --
> Tristan Le Toullec - Administrateur Système & Réseau
> Laboratoire de Physique des Océans (CNRS/Ifremer/IRD/UBO)
> Bureau F310 - 6 avenue Le Gorgeu, 29200 Brest
> Tél: 02 98 01 65 08
>
> _______________________________________________
> ncl-install mailing list
> ncl-install_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Apr 17 2008 - 08:02:03 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 20 2008 - 07:42:57 MDT