Re: WPS 3.2.1 does not produce plotgrids/plotfmt/anyone have gcc44/gfortran44 compiled NCL 5.2.1

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue May 24 2011 - 08:08:16 MDT

These undefined references are from the gfortran library (libgfortran.a/libgfortran.so).

Are you including "-lgfortran" at the end of your final load line? If not, give this a try. I agree, though, the issue might be that you are using a different version of gcc/gfortran than what NCL was compiled with, but this is worth a shot.

--Mary

On May 24, 2011, at 5:46 AM, Lindenfelser, Greg A (GE Energy, Non-GE) wrote:

> Hi Mary,
>
> Here are a few excerpts from attempted compile:
>
> ….
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg.a(mdpit.o): In function `mdpit_':^M
> mdpit.f:(.text+0x47a): undefined reference to `_gfortran_pow_r8_i4'^M
> mdpit.f:(.text+0x4f4): undefined reference to `_gfortran_pow_r8_i4'^M
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg.a(mdlndr.o): In function `mdlndr_':^M
> mdlndr.f:(.text+0x81): undefined reference to `_gfortran_internal_malloc'^M
> mdlndr.f:(.text+0xb0): undefined reference to `_gfortran_internal_malloc'^M
> mdlndr.f:(.text+0xd9): undefined reference to `_gfortran_internal_free'^M
> mdlndr.f:(.text+0xf1): undefined reference to `_gfortran_copy_string'^M
> ….
>
>
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg_gks.a(gerhnd.o): In function `gerhnd_':^M
> gerhnd.f:(.text+0xdc): undefined reference to `_gfortran_copy_string'^M
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg_gks.a(gzgte2.o): In function `gzgte2_':^M
> gzgte2.f:(.text+0x66): undefined reference to `_gfortran_copy_string'^M
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg_gks.a(gzputs.o): In function `gzputs_':^M
> gzputs.f:(.text+0x7c): undefined reference to `_gfortran_copy_string'^M
> gzputs.f:(.text+0xf8): undefined reference to `_gfortran_copy_string'^M
> gzputs.f:(.text+0x17d): undefined reference to `_gfortran_copy_string'^M
> /net/opt/WRF_rebuild/ncl/5.2.1/lib/libncarg_gks.a(gzopwk.o):gzopwk.f:(.text+0x516): more undefined references to `_gfortran_copy_string' follow^M
> collect2: ld returned 1 exit status^M
> make[1]: [plotgrids.exe] Error 1 (ignored)^M
>
> If you need to see more or the whole compile, please let me know.
>
> Greg Lindenfelser
>
> From: Mary Haley [mailto:haley@ucar.edu]
> Sent: Monday, May 23, 2011 10:51 AM
> To: Lindenfelser, Greg A (GE Energy, Non-GE)
> Cc: ncl-install@ucar.edu
> Subject: Re: WPS 3.2.1 does not produce plotgrids/plotfmt/anyone have gcc44/gfortran44 compiled NCL 5.2.1
>
> Hi Greg,
>
> Can you provide the error messages from your compilation? We don't have 5.2.1 compiled with gcc 4.4.x, unfortunately, but we do have a binary for (Debian) gcc 4.3.2 which might work better than 4.1.2.
>
> However, if I can see the compilation error, I might be able to provide a solution without you having to reinstall or build from source code.
>
> --Mary
>
> On May 20, 2011, at 8:25 AM, Lindenfelser, Greg A (GE Energy, Non-GE) wrote:
>
>
> All,
>
>
> I’m currently using:
>
> · RedHat 5.4 Linux on x86_64 architecture
>
> · Using gcc44 & gfortran44 to compile
>
> · Am currently working on getting WPS 3.2.1 to generate all executables specified in the ARW Users Guide
>
>
> My problem is that I cannot seem to get WPS to compile 2 out of the 9 executables (plotfmt.exe or the plotgrids.exe) that are generated by the ./compile step. In the manual, it says “if the plotfmt.exe or the plotgrids.exe programs are missing, probably the NCAR Graphics path is set incorrectly”, however, if I do `ls $NCARG_ROOT` I get:
>
> bin include ncl_ncarg-5.2.1.Linux_RedHat_x86_64_gcc412.tar.gz
>
> curr_ver_is_nodap lib
>
>
> I realize my problem is most likely caused by the fact that I compiled with gcc44/gfortran44 and the NCL is version 5.2.1 binary install from a gcc/gfortran compiled install.
>
>
> Has anyone compiled the full (or even partial) NCL for version 5.X with gcc44/gfortran44 and perhaps have the binaries for this. If not, does anyone have a script that builds it out premised upon having the correct prerequisites? If so, it would be greatly appreciated as I could easily modify it to suit my needs.
>
>
> Thanks in advance for any and all help/comments.
>
>
> Greg Lindenfelser
>
> HPC Support
>
> Assigned to:
>
> GE Infrastructure
>
> Schenectady, New York 12345
>
> Phone: (518) 385-3964
>
> (C) (518) 847-8627
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue May 24 08:08:21 2011

This archive was generated by hypermail 2.1.8 : Mon Jun 13 2011 - 09:43:16 MDT