g2print compiling error

Installing the WRF Preprocessing System

g2print compiling error

Postby jerryleo » Sun Sep 19, 2010 2:59 am


The compiler is PGI 10.6.

The latest WRF V3.2.1 was compiled without any problem.

While I compiled WPS V3.2.1, it always complained following error messages

g2print.o: In function `.STATICS5':
g2print.f90:(.data+0x223c): undefined reference to `storage_module_'

It's no problem for compiling g1print.exe, ungrib.exe, geogrid.exel, metgrid.exe etc. It only failed to compile g2print.

After I commented out the 'use storage_module' in g2print.F, it's no problem for compling g2print.

I wonder whether if it's safe to comment out the 'use storage_module' in g2print.F ?

Or Any ideas for compiling the g2print?


Posts: 7
Joined: Thu Jul 30, 2009 12:26 am

Re: g2print compiling error

Postby KHill » Fri Feb 18, 2011 12:06 am

Hi Jerry,

Did you end up finding out if there was a problem with commenting out that line?? I'm having the same problem.

Posts: 4
Joined: Fri Feb 18, 2011 12:02 am

Re: g2print compiling error

Postby apsims » Fri Feb 18, 2011 12:16 pm

I have found that you will need to link in new_storage.o along with the other *.o files in the ungrib/src/Makefile. Add new_storage.o to the section in the Makefile under g2print.exe (right after gridinfo.o). This will build the executable.
Posts: 3
Joined: Thu Aug 28, 2008 11:10 am

Re: g2print compiling error

Postby dcvz » Wed Feb 23, 2011 1:03 am

Comment out or delete the two 'use storage_module' lines in g2print.F. They are not needed.

Recent versions of pgi complain about unused modules that aren't linked. You could link them as apsims suggested, but it's better to just delete the 'use' lines.
Posts: 176
Joined: Tue Apr 15, 2008 12:02 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest