[MacPorts] #72424: esmf: Error: Type mismatch in argument 'n' at (1); passed INTEGER(4) to INTEGER(8)
MacPorts
noreply at macports.org
Tue Apr 29 21:59:17 UTC 2025
#72424: esmf: Error: Type mismatch in argument 'n' at (1); passed INTEGER(4) to
INTEGER(8)
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: esmf |
---------------------------+--------------------
Comment (by barracuda156):
Replying to [comment:2 Dave-Allured]:
> Forget about those logs for now. I think I see the problem. In
esmf-8.8.1/src/Infrastructure/Util/src/ESMF_FortranWordsize.cppF90:
>
> Line 76: integer*8 :: n \\
> Line 119: integer(C_SIZE_T) :: c_ptrvar
>
> It looks like integer(C_SIZE_T) is resolving to integer*4 on 32-bit PPC.
Therefore these two are not fortran compatible, but must be, in order for
that subroutine call at line 129 to work.
>
> This is the only place in the whole ESMF code base with integer*8 hard
coded. This one-line change may fix the problem. Can you please test
this patch on your 32-bit system?
>
> {{{
> Line 76:
> - integer*8 :: n
> + integer(C_SIZE_T) :: n
> }}}
I will try and let you know soon, thank you!
--
Ticket URL: <https://trac.macports.org/ticket/72424#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list