Re: ictrans

From: Éder Paulo Vendrasco <eder_at_nyahnyahspammersnyahnyah>
Date: Tue, 8 Apr 2008 14:06:24 -0300

Mary,
   I got it! It was missing, in the config file, the arg. "-lstdc++".
When I put it, all worked... The link you sent was very helpful....

Many Thanks
Eder.

2008/4/8, Mary Haley <haley_at_ucar.edu>:
> Eder,
>
> The config file that will get used is the LINUX one. You can use the
> LINUX.IA64 file as an example of how to modify the LINUX file so you can get
> things to compile on your system. However, it looks like this file may be
> out-of-date for your purposes, as the "ifcore" library isn't enough to get
> your symbols resolved.
>
> Rick Grubin answered a similar question back in 2006. Please see:
>
> http://www.ncarg.ucar.edu/ncarg-talk/2006/0037.html
>
> Basically, you need to figure out which additional Intel libraries you need
> to include on the link line in order to resolve these symbols.
> If you google some of the undefined symbols you're getting, you will find
> some suggestions of libraries to use. One that I saw was
>
> " -lgcc_s -lgcc -lc"
>
> Good luck,
>
> --Mary
>
>
> On Apr 8, 2008, at 8:31 AM, Éder Paulo Vendrasco wrote:
>
>
> > Hi Mary,
> > first of all, thanks for your help...
> > I tried to do the changes as you said, but I had no success....
> > I used the grep command inside the "config" directory looking for
> > "lifcore" and I figured out the "Configure" script was not getting my
> > system and machine correctly... I'm building ncarg under a ia64
> > machine, so I suppose that the correct file was LINUX.IA64...., but
> > the Configure file was getting the LINUX file instead .... thus, I
> > change it .... no success again! The output of make is :
> >
> > bin/ictrans> make
> > icc -mp -ansi -O -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/gpfs/projects/cjones/olam/stuff_dir/ncarg/lib
> -L/usr/lib
> > -L/opt/intel81/lib -L/usr/X11R6/lib
> > -L/gpfs/projects/cjones/olam/stuff_dir/lib -lXpm -lX11
> -lXext
> > -lmfhdf -ldf -ljpeg -lz -lifcore -lm
> >
> ../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o)(.text+0x3592):
> > In function `CGM_initMetaEdit':
> > : the use of `mktemp' is dangerous, better use `mkstemp'
> > /opt/intel/compiler8.1.031/lib/libimf.so.6: warning:
> log2l is not
> > implemented and will always fail
> > /opt/intel/compiler8.1.031/lib/libimf.so.6: warning:
> exp2l is not
> > implemented and will always fail
> > /opt/intel81/lib/libifcore.so.6: undefined reference to
> `__cxa_end_catch'
> > /opt/intel81/lib/libifcore.so.6: undefined reference to
> `std::terminate()'
> > /opt/intel81/lib/libifcore.so.6: undefined reference to
> `__cxa_begin_catch'
> > make: *** [ictrans] Error 1
> >
> > I tried the LINUX, LINUX.INTEL, LINUX.64.INTEL and LINUX.IA64 config
> > files.... I got "undefined reference" in all cases.
> >
> > Eder.
> >
> > 2008/4/7, Mary Haley <haley_at_ucar.edu>:
> >
> > >
> > > Hi,
> > >
> > > Try adding "-lifcore" to the CToFLibraries line in your config file:
> > >
> > > #define CtoFLibraries -lm -lifcore
> > >
> > > Then type:
> > >
> > > cd $NCARG/ncarview/src/bin/ictrans
> > > make me
> > > make all install
> > >
> > > and see if this compiles. If it does, then you can try the "make
> > > Everything" again.
> > >
> > > If not, then email me.
> > >
> > > --Mary
> > >
> > >
> > > On Mon, 7 Apr 2008, [ISO-8859-1] Éder Paulo Vendrasco wrote:
> > >
> > >
> > >
> > > >
> > > > Hello people,
> > > > I'm trying to build ncarg with ifort/gcc compilers and I'm having
> > > > problems in building ictrans... see below....
> > > >
> > > > bin/ictrans> make
> > > > gcc -ansi -O -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/gpfs/projects/cjones/olam/stuff_dir/ncarg/lib
> > > >
> > > -L/usr/X11R6/lib
> > >
> > > > -L/usr/lib -L/gpfs/projects/cjones/olam/stuff_dir/lib
> > > >
> > > -lX11 -lXext
> > >
> > > > -lmfhdf -ldf -ljpeg -lz -lg2c -lgcc -lm
> > > >
> > > >
> > >
> ../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o)(.text+0x2cc2):
> > >
> > > > In function `CGM_initMetaEdit':
> > > > : the use of `mktemp' is dangerous, better use `mkstemp'
> > > >
> > > >
> > >
> ../../../.././ncarview/src/lib/libictrans/libictrans.o(.text+0xf342):
> > >
> > > > In function `giargs_':
> > > > : undefined reference to `for_cpystr'
> > > > collect2: ld returned 1 exit status
> > > > make: *** [ictrans] Error 1
> > > >
> > > > Can anyone help me?
> > > >
> > > > Add. information: ncarg version 4.4.1
> > > >
> > > > Many thanks in advance, and sorry about my poor english...
> > > > Eder.
> > > >
> > > > --
> > > > Instituto de Astronomia, Geofísica e Ciências Atmosféricas - IAG-USP
> > > > Departamento de Ciências Atmosféricas
> > > > Laboratório MASTER (Meteorologia Aplicada a Sistemas de Tempo
> Regional)
> > > > _______________________________________________
> > > > ncarg-talk mailing list
> > > > ncarg-talk_at_ucar.edu
> > > > http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > ##################
> > # Éder Paulo Vendrasco ###
> > # Instituto de Astronomia, Geofísica e Ciências Atmosféricas - IAG-USP ###
> > # Departamento de Ciências Atmosféricas ###
> > # Laboratório MASTER (Meteorologia Aplicada a Sistemas de Tempo Regional)
> ###
> > # Rua do Matão, 1226 Cidade Universitária - CEP 05508 090 ###
> > # São Paulo - Brasil ###
> > # Fax. (11) 3091 4769 (Lab.) ###
> > # Tel. (11) 3091 4808 (Lab.) ###
> > # Tel. (11) 3926 8976 (Res.) ###
> > # Tel. (11) 9288 6596 (Cel.) ###
> > ####################
> > _______________________________________________
> > ncarg-talk mailing list
> > ncarg-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
> >
>
>

-- 
##################
# Éder Paulo Vendrasco ###
# Instituto de Astronomia, Geofísica e Ciências Atmosféricas - IAG-USP ###
# Departamento de Ciências Atmosféricas ###
# Laboratório MASTER (Meteorologia Aplicada a Sistemas de Tempo Regional) ###
# Rua do Matão, 1226 Cidade Universitária - CEP 05508 090 ###
# São Paulo - Brasil ###
# Fax. (11) 3091 4769 (Lab.) ###
# Tel. (11) 3091 4808 (Lab.)  ###
# Tel. (11) 3926 8976 (Res.)  ###
# Tel. (11) 9288 6596 (Cel.)   ###
####################
Received on Tue Apr 08 2008 - 11:06:24 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 11 2008 - 10:59:48 MDT