[Wrf-users] geogrid and metgrid does not compile (???)
Lucas AJ Bastien
lbastien at lbl.gov
Wed Aug 22 12:46:01 MDT 2012
Here is a potential explanation:
The function _gfortran_copy_string (and some other functions) seem to be
functions that are internal to gfortran. However, those functions have
been removed from recent versions of gfortran (eg see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33647 I don't know exactly
which version is the first one it's been removed from). My understanding
is that your undefined reference errors mean than the compiler see
references to these functions in the already compiled netcdf libraries
but can't find their implementations anywhere. I would guess that your
netcdf libraries have been compiled with a somewhat old version of
gfortran and that you are either trying to compile WPS with a newer
version of gfortran or with a different compiler. These are potential
workarounds:
- recompile the netcdf library with your current version of gcc.
- recompile WRF and WPS with the version of gcc used to compile netcdf.
It would be useful to know what compiler and what version has been used
to compile the netcdf library you are linking to and what compiler and
what version of compiler you are trying to compile WRF and WPS with. Are
you using the same for WRF and WPS?
A similar problem can occur further into the compilation when the WPS
makefile compiles WPS utilities that link to ncl libraries installed
from pre-compiled binaries if those have been pre-compiled with older
versions of gfortran. If it happens and if you only need geogrid.exe,
ungrib.exe, and metgrid.exe (and if you don't need the other utilities),
then you can compile by running "./compile wps" instead of just
"./compile" (or you can reinstall or compile ncl with a newer version of
gfortran).
Lucas
On 08/22/2012 11:00 AM, wrf-users-request at ucar.edu wrote:
> Send Wrf-users mailing list submissions to
> wrf-users at ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
> or, via email, send a message with subject or body 'help' to
> wrf-users-request at ucar.edu
>
> You can reach the person managing the list at
> wrf-users-owner at ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Wrf-users digest..."
>
>
> Today's Topics:
>
> 1. Re: geogrid and metgrid does not compile (???)
> 2. First CORDEX-WRF Workshop and CORWES/WRF4G hands-on Tutorial
> (jpdiaz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Aug 2012 09:04:55 +0900
> From: ???<jinjonghun at gmail.com>
> Subject: Re: [Wrf-users] geogrid and metgrid does not compile
> To: "wrf-users at ucar.edu"<wrf-users at ucar.edu>
> Message-ID:
> <CAKFdwmrJ_S_B3hsdd=X7hdiVN6Ce9o+QUpojGn1dG75M2BH-iA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> did you have compiled your NetCDF library with gfortran?
> I recommend you to check that you have defined with path in environment
> variable $NETCDF.
>
>
> 2012/8/20 Zhou, Ying<ying.zhou at emory.edu>
>
>
>> Hi WRF-users,
>>
>>
>>
>> I am trying to compile WRF V3.4.1. The WRF part compiled without problem.
>> However, when I tried to compile WPS, I only see ungrib.exe. Neither
>> geogrid.exe nor metgrid.exe was generated. I have gfortran compiler on
>> Linux x86_64 system. In the compile.log, I got a lot of messages on
>> "undefined reference", such as "libnetcdff.so: undefined reference to
>> `_gfortran_copy_string' " and "libnetcdff.so: undefined reference to
>> `_gfortran_internal_malloc64' ". I am not sure whether this means something
>> is not right with my netcdf library, even though WRF compiled succefully.
>>
>>
>>
>> wrfhelp suggested that I modify the last line in WRF_LIBS in configure.wps
>> by adding -lnetcdff before -lnetcdf, so it looks like -L$(NETCDF)/lib
>> -lnetcdff -lnetcdf However, this did not solve the problem either.
>>
>>
>>
>> Note that WPSV3.4.1 added an option for Linux x86_64 with gfortran
>> compiler when I typed ./configure, which was what I selected. I also tried
>> version 3.4, in which I modified the arch/configure.defaults file for my
>> system. However, this did not solve my problem either.
>>
>>
>>
>> If you have any suggestions on how to solve this problem, please let me
>> know. Thanks in advance!
>>
>>
>>
>> Best,
>>
>> Ying
>>
>> ------------------------------
>>
>> This e-mail message (including any attachments) is for the sole use of
>> the intended recipient(s) and may contain confidential and privileged
>> information. If the reader of this message is not the intended
>> recipient, you are hereby notified that any dissemination, distribution
>> or copying of this message (including any attachments) is strictly
>> prohibited.
>>
>> If you have received this message in error, please contact
>> the sender by reply e-mail message and destroy all copies of the
>> original message (including attachments).
>>
>> _______________________________________________
>> Wrf-users mailing list
>> Wrf-users at ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>>
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20120821/6b3c569e/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Aug 2012 18:22:18 +0100
> From: "jpdiaz"<jpdiaz at ull.es>
> Subject: [Wrf-users] First CORDEX-WRF Workshop and CORWES/WRF4G
> hands-on Tutorial
> To:<wrf-users at ucar.edu>
> Message-ID:<002401cd7fc1$847e2e50$8d7a8af0$@ull.es>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear colleagues,
>
>
>
> [Apologies for multiple-postings]
>
>
>
> We would like to bring to your attention the "First CORDEX-WRF Workshop and
> CORWES/WRF4G hands-on Tutorial" to be held from October 1st to 5th at
> University of La Laguna, Canary Islands, Spain. All the information can be
> accessed at:<http://corwes.webs.ull.es/workshop>
> http://corwes.webs.ull.es/workshop
>
>
>
> The main goal of the workshop is to bring together scientists using the WRF
> model in the CORDEX initiative or, more generally, using it as a dynamical
> downscaling tool in climate modeling.
>
>
>
> The objective is to produce a rigorous state-of-the-knowledge frame, to
> improve the coordination of the different efforts for every CORDEX region
> and engage in collaboration. The following aspects will be
>
> highlighted:
>
>
>
> * Current state of the simulations in the different regions,
>
> * Results,
>
> * Needs of coordination,
>
> * Database state,
>
> * Common problems to be addressed and future plans.
>
> * Tools and data to be shared
>
> * Synergies between different users communities: modeling, impacts,
> policymakers,...
>
>
>
> The conference will consist of two segments. The first (1-3 October) will be
> devoted to a review of the status and main issues of climate modeling using
> WRF and will include invited and contributed papers and will foster open
> discussion. The second segment (4-5 October) will consist in hands-on
> laboratory sessions for training in WRF4G, CLWRF and post-processing tools.
>
>
>
> We invite you to consider attending and/or submitting a communication for
> this workshop and/or tutorial.
>
>
>
> With best regards,
>
>
>
> Juan P. Diaz, on behalf of the Organizing Committee
>
>
>
> ___________________________________________________
>
>
>
> Juan P. D?az-Glez.
> Universidad de La Laguna http://www.ull.es<blocked::http://www.ull.es/>
> Grupo de Observaci?n de la Tierra y la Atm?sfera - GOTA
> Dpto. F?sica B?sica, Fco. S?nchez s/n
> 38200 La Laguna.Tenerife. Spain
>
> Tfn: + 34 922318227
> Fax: + 34 922318228
> e-mail: jpdiaz at ull.es
>
> ___________________________________________________
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20120821/438eaece/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>
>
> End of Wrf-users Digest, Vol 96, Issue 14
> *****************************************
>
More information about the Wrf-users
mailing list