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

[Support #VZH-315885]: Compiler error?



Stonie,

The whole reason that the linux files assign the hex values in the MCHPRM files
was that the g77 compiler wouldn't allow the use of the CHAR() intrinsic
function in a PARAMETER statement, unlike all the other F77 compilers on the
other platforms. Hopefully gfortran will fix/allow that (eg, I'd suggest trying 
the
 CHAR() statements as is done in the little endial MCHPRM.X86). That would
solve 2 problems (eg the need to avoid the CHAR() usage, and the need to
cast the integer hex number to a character.

Steve Chiswell
Unidata User Support


> The --ff2c flag is supposed to make it g77 compatible.  g77 is no
> longer part of gcc after 4.0.x, and the support diatribes on the GNU
> website make it clear that support for g77 has been dropped.
> 
> I'll keep at it, and let you know what I can get to work . . . as
> this may be something you have to deal with eventually with g77
> being dropped from gcc.
> 
> Stonie
> 
> On Dec 4, 2006, at 1:20 PM, Steve Chiswell wrote:
> 
> > Stonie,
> >
> > The distribution is sent out using g77 as I have built and tested. You
> > have changed that to gfortran, which states that it is not Fortran 77
> > compatible (as of the last time I looked at its docs).
> >
> > Steve Chiswell
> > Unidata User Support
> >
> >
> >
> > On Mon, 2006-12-04 at 13:03 -0600, Stonie Cooper wrote:
> >> Steve - have you seen this one before?
> >>
> >> make[4]: Leaving directory `/usr/local/GEMPAK5.9.4/gempak/source/
> >> appl/
> >> attribute'
> >> making all in /usr/local/GEMPAK5.9.4/gempak/source/appl/bounds
> >> make[4]: Entering directory `/usr/local/GEMPAK5.9.4/gempak/source/
> >> appl/bounds'
> >> gfortran -fno-second-underscore -I/usr/local/GEMPAK5.9.4/gempak/
> >> include -I/usr/local/GEMPAK5.9.4/os/linux/include -I/usr/local/
> >> GEMPAK5.9.4/gempak/include -I/usr/local/GEMPAK5.9.4/os/linux/include/
> >> Linux -O -ff2c  -c gqbnd.f
> >> In file MCHPRM.PRM:36
> >>
> >>       Included at GEMPRM.PRM:21
> >>
> >>       Included at gqbnd.f:41
> >>
> >>         PARAMETER ( CHNULL = X'00' )
> >>                            1
> >> Error: Can't convert INTEGER(8) to CHARACTER(1) at (1)
> >> In file MCHPRM.PRM:38
> >>
> >>       Included at GEMPRM.PRM:21
> >>
> >>       Included at gqbnd.f:41
> >>
> >>         PARAMETER ( CHCTLA = X'01' )
> >>                            1
> >> Error: Can't convert INTEGER(8) to CHARACTER(1) at (1)
> >> In file MCHPRM.PRM:40
> >>
> >>       Included at GEMPRM.PRM:21
> >>
> >>       Included at gqbnd.f:41
> >>
> >>         PARAMETER ( CHCTLC = X'03' )
> >>                            1
> >>
> >> Stonie
> > --
> > Steve Chiswell <address@hidden>
> > Unidata
> 
> 


Ticket Details
===================
Ticket ID: VZH-315885
Department: Support GEMPAK
Priority: Normal
Status: Closed