Thank you Mary,<br><br>I have compiled NCARG with intel compiler and installed it in ncarg directory, over pre-compiled NCARG libraries. Everything is working fine!<br><br>Best regards,<br><br>Mateus<br><br><br><div class="gmail_quote">
2009/4/9 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Wed, 8 Apr 2009, Mateus Teixeira wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mary,<br>
<br>
With this file the MM5's TERRAIN program works perfectly, compiling it with<br>
intel compiler.<br>
<br>
Mary, if I compile only NCARG and installing it in the same directory where<br>
NCL/NCARG pre-compiled files were installed, NCL functioning will be<br>
prejudiced?<br>
<br>
I ask it because when I compile NCARG only (I made it with intel compiler)<br>
and link a compilation line to this new NCARG (put into a different<br>
directory), I haven't any error messages.<br>
</blockquote>
<br></div>
Hi Mateus,<br>
<br>
You should be just fine. The "ncl" executable is a stand-alone<br>
application that doesn't depend on other pieces of NCAR Graphics in<br>
order to run.<br><font color="#888888">
<br>
--Mary</font><div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Best regards,<br>
<br>
Mateus<br>
<br>
<br>
<br>
2009/4/6 Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Mateus,<br>
<br>
I will include mention of the PNG in the below FAQ. Thanks for pointing<br>
this out.<br>
<br>
As for your "_gfortran" symbol problem, this has to do with you using<br>
a different version of gfortran than what NCAR Graphics was compiled<br>
with. You appear to be using 4.3, and the largest version we have is<br>
4.2 on some systems, and 4.1 on others.<br>
<br>
I've included a "libgfortran.412.a" which is the "libgfortran.a"<br>
file that is included with gfortran 4.1.2. I renamed it to avoid<br>
clashing with your own libgfortran.<br>
<br>
Try linking this file in when you do the final link of<br>
your program:<br>
<br>
gfortran .... -lpng -lz ... libgfortran.412.a<br>
<br>
or better:<br>
<br>
gfortran .... -lpng -lz -L/path/to/libgfortran.412.a -lgfortran.412<br>
<br>
--Mary<br>
<br>
<br>
<br>
On Thu, 2 Apr 2009, Mateus Teixeira wrote:<br>
<br>
Hi David,<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I friend of my told me about an answer in NCL's FAQ section, more<br>
specifically:<br>
<br>
<a href="http://www.ncl.ucar.edu/FAQ/#misc_003" target="_blank">http://www.ncl.ucar.edu/FAQ/#misc_003</a><br>
<br>
At home, on my Fedora 8 installation, the suggestions given in this link<br>
works perfectly. I could compile MM5's TERRAIN program without problem.<br>
But,<br>
there is a issue not covered by this answer: the problem with PNG library.<br>
This problem was solved when I included -lpng in the list of libraries<br>
used<br>
in compilation (in fact, I saw something related with PNG library on site<br>
about building NCL from source). I suggest include a tip about -lpng in<br>
this<br>
same answer to make it more complete.<br>
<br>
At work, the same didn't happen. I'm using Fedora 10 and even including<br>
-lgfortran it continues giving undefined references related with<br>
'_gfortran.....'. The problem with PNG library didn't happen because -lpng<br>
did work.<br>
<br>
It appears that newer libraries provided by Fedora 10 aren't compatible<br>
with<br>
NCL/NCARG precompiled version.<br>
<br>
I think that I'll have to compile NCARG with intel compiler in order to<br>
compile successfully.<br>
<br>
Best regards,<br>
<br>
Mateus<br>
<br>
PS.: Below, gfortran, gcc, and libgfortran installed on Fedora 10:<br>
<br>
$ gfortran -v<br>
Using built-in specs.<br>
Target: i386-redhat-linux<br>
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man<br>
--infodir=/usr/share/info<br>
--with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla--enable-bootstrap" target="_blank">http://bugzilla.redhat.com/bugzilla--enable-bootstrap</a><br>
--enable-shared --enable-threads=posix<br>
--enable-checking=release --with-system-zlib --enable-__cxa_atexit<br>
--disable-libunwind-exceptions<br>
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada<br>
--enable-java-awt=gtk<br>
--disable-dssi --enable-plugin<br>
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre<br>
--enable-libgcj-multifile --enable-java-maintainer-mode<br>
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib<br>
--with-cpu=generic --build=i386-redhat-linux<br>
Thread model: posix<br>
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)<br>
<br>
$ yum list installed |grep libgfortran<br>
compat-libgfortran-41.i386 4.1.2-36<br>
installed<br>
libgfortran.i386 4.3.2-7<br>
installed<br>
<br>
$ gcc -v<br>
Using built-in specs.<br>
Target: i386-redhat-linux<br>
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man<br>
--infodir=/usr/share/info<br>
--with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla--enable-bootstrap" target="_blank">http://bugzilla.redhat.com/bugzilla--enable-bootstrap</a><br>
--enable-shared --enable-threads=posix<br>
--enable-checking=release --with-system-zlib --enable-__cxa_atexit<br>
--disable-libunwind-exceptions<br>
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada<br>
--enable-java-awt=gtk<br>
--disable-dssi --enable-plugin<br>
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre<br>
--enable-libgcj-multifile --enable-java-maintainer-mode<br>
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib<br>
--with-cpu=generic --build=i386-redhat-linux<br>
Thread model: posix<br>
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)<br>
<br>
<br>
<br>
<br>
<br>
2009/3/31 David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>><br>
<br>
Hi Mateus,<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Mary Haley is really the expert on compiling using other compilers such<br>
as<br>
the Intel compilers on Linux. She is on vacation for the next week.<br>
<br>
I don't really know the answers to your questions, but one question have<br>
is<br>
do you get any of these linking errors if you try to compile a<br>
a simple C or Fortran example program just using the system compilers.<br>
<br>
-dave<br>
<br>
<br>
On Mar 29, 2009, at 1:50 PM, Mateus Teixeira wrote:<br>
<br>
Dear NCL/NCARG users,<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I'm trying to compile MM5 model with NCARG using NCL/NCARG binaries, but<br>
I'm getting the following errors when I compile MM5's TERRAIN program:<br>
<br>
a lot of undefined references to '_gfortran.....<br>
<br>
please see below:<br>
<br>
gesc.f:(.text+0x2820): undefined reference to `_gfortran_copy_string'<br>
gesc.f:(.text+0x28e6): undefined reference to `_gfortran_copy_string'<br>
gesc.f:(.text+0x2959): undefined reference to `_gfortran_copy_string'<br>
gesc.f:(.text+0x2a27): undefined reference to `_gfortran_st_read'<br>
gesc.f:(.text+0x2a3e): undefined reference to<br>
`_gfortran_transfer_integer'<br>
gesc.f:(.text+0x2a46): undefined reference to `_gfortran_st_read_done'<br>
<br>
and problems with libpng<br>
<br>
/usr/local/ncarg/lib/libncarg_gks.a(pixwrite_png.o): In function<br>
`write_png':<br>
pixwrite_png.c:(.text+0x64): undefined reference to<br>
`png_create_write_struct'<br>
pixwrite_png.c:(.text+0x8d): undefined reference to<br>
`png_create_info_struct'<br>
pixwrite_png.c:(.text+0xa7): undefined reference to<br>
`png_destroy_write_struct'<br>
pixwrite_png.c:(.text+0xe2): undefined reference to<br>
`png_destroy_write_struct'<br>
pixwrite_png.c:(.text+0x119): undefined reference to `png_init_io'<br>
pixwrite_png.c:(.text+0x12e): undefined reference to `png_malloc'<br>
pixwrite_png.c:(.text+0x16d): undefined reference to `png_set_rows'<br>
pixwrite_png.c:(.text+0x1b4): undefined reference to `png_set_IHDR'<br>
pixwrite_png.c:(.text+0x1dd): undefined reference to `png_write_png'<br>
pixwrite_png.c:(.text+0x1ef): undefined reference to<br>
`png_destroy_write_struct'<br>
<br>
I have installed the following package in fedora 10:<br>
libpng.1.2.35-1.fc10<br>
<br>
It seems that because I'm using intel compiler with MM5, it isn't<br>
working<br>
with libraries compiled with other compilers. My questions are:<br>
<br>
1) Can I compile NCAR Graphics with intel compiler and install it above<br>
the files provided with NCL/NCARG binaries download from Earth System<br>
Grid<br>
site? Could this procedure affect the functioning of NCL?<br>
<br>
2) In the case of png libraries, can this error be associated with the<br>
compilation with other compiler instead of intel's?<br>
<br>
<br>
Best regards,<br>
<br>
--<br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
--<br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
-- <br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br>
<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mateus da Silva Teixeira<br><br>Registered Linux User #466740<br>