[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19991203: Compiling GPRCM for Solaris x86 using gcc/f2c



Tim,
You should be able to build the current distribution under X86 
using gcc and fort77, since these compilers are the combination 
that I use on Linux. I will be using g77 rather than f2c 
for the next major release of Gempak however so that we can
avoid these headaches of double underscores in subroutine names.
When I originally ported GEMPAK to the intel platforms, g77 did not 
support several features needed by the source code- but f2c allowed
these features.

So, my suggestion would be to install g77 with gcc in the furture
if you don't already install that part of egcs.

Steve Chiswell
Unidata User Support





>From: Tim Doggett <address@hidden>
>Organization: .
>Keywords: 199912032130.OAA01411

>Steve,
>
>Thanks a lot for the binary and the compiling information.
>
>For future reference... if I had download the source code, should I be able
>to compile the package from scratch using gcc, fort77, and the modified
>Makeinc.x86 file?  Or is there something else I would need to implement? 
>
>Thanks again, I appreciate the help.
>
>-Tim
>
>At 11:28 AM 12/03/1999 -0700, you wrote:
>>
>>Tim,
>>
>>The problem you are having is that you have the binary x86 distribution
>>that was compiled here with Sun's f77 compiler.
>>
>>Now you are trying to link something compiled with f2c against those
>>libraries. The problem here is that when f2c sees a '_' in a subroutine
>>name, it adds an additional '_' after the routine - then the gcc wrappers
>>adds the standard expected '_' character.
>>
>>Thus, in gemlib.a compiled with f77, you have
>>st_lcuc_
>>and in the program compiled with f2c, you have a request for the routine:
>>st_lcuc__
>>
>>Unfortunately, everything needs to be compiled with the same compiler here.
>>
>>I've posted a binary tarfile under nawips-5.4/binary/solaris_X86/gprcm.tar.Z
>>
>>In the next release I will transition to g77 instead of f2c which will
>eliminate 
>>the double underbar problems. Unfortunately g77 requires some major
>>changes in the gemprm.prm headers inorder to work.
>>
>>Steve Chiswell
>>Unidata User Support
>>
>>>From: Tim Doggett <address@hidden>
>>>Organization: .
>>>Keywords: 199912031718.KAA24255
>>
>>>Hi,
>>>
>>>I have been trying to get the gprcm program compiled for the last week, and
>>>have finally run out of steam.  I am trying to compile on a Pentium II
>>>machine running Solaris 7 using gcc and f2c.  I have the perl fort77
>>>wrapper installed and running, though I have not ever used it on very
>>>sophisticated code.  In addition, I have been using the modified
>>>Makeinc.x86 which Steve posted that is suppose to work with this compiler
>>>combination.
>>>
>>>My LD_LIBRARY_PATH is set to
>>>"/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/X11R6/lib".
>>>
>>>The relevant output from the "make all"  is as follows:
>>>
>>>#############################################
>>>ld: warning: symbol `gpsys_' has differing alignments:
>>>        (file gprcm.o value=0x1; file
>>>/gustfront/NAWIPS-5.4/lib/x86/appl.a(gmesg.o) value=0x4);
>>>        largest value applied
>>>Undefined                       first referenced
>>> symbol                             in file
>>>ip_log__
>>>/gustfront/NAWIPS-5.4/lib/x86/gprcm.a(gpinp.o)
>>>st_lcuc__                           gprcm.o
>>>in_text__                           gprcm.o
>>>st_lstr__                           gprcm.o
>>>ip_init__                           gprcm.o
>>>...
>>><Long list of other undefined symbols deleted for space>
>>>...
>>>gg_init__                           gprcm.o
>>>ip_resp__
>>>/gustfront/NAWIPS-5.4/lib/x86/gprcm.a(gpmopt.o)
>>>st_numb__
>>>/gustfront/NAWIPS-5.4/lib/x86/gprcm.a(gdctbl.o)
>>>gg_panl__                           gprcm.o
>>>ld: fatal: Symbol referencing errors. No output written to gprcm
>>>#############################################
>>>
>>>I originally installed the GEMPAK binaries so I have not need to go through
>>>this process before.  Anybody else gotten this to work?  Anybody have an
>>>x86 binary they would care to share.  Thanks in advance.
>>>
>>>-Tim
>>>
>>>
>>>
>>>-------------------------------------------------------------------------
>>>Tim Doggett, Ph.D.
>>>Assistant Professor
>>>Texas Tech University's Atmospheric Science Group
>>>e-mail: address@hidden
>>>phone: (806)742-3477
>>>fax:      (806)742-1738
>>>-------------------------------------------------------------------------
>>>
>>
>>***************************************************************************
>>Unidata User Support                                    UCAR Unidata
>>(303)497-8644                                                  P.O. Box
>>address@hidden                                   Boulder, CO
>>---------------------------------------------------------------------------
>>Unidata WWW Service                        http://www.unidata.ucar.edu/
>>***************************************************************************
>>
>-------------------------------------------------------------------------
>Tim Doggett, Ph.D.
>Assistant Professor
>Texas Tech University's Atmospheric Science Group
>e-mail: address@hidden
>phone: (806)742-3477
>fax:      (806)742-1738
>-------------------------------------------------------------------------
>