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

[netCDF #AXH-705906]: netcdf 3.6.2 does not cross compile fortran



> Hi,
>
> I am trying to compile for the IBM bluegene platform.  I have successfully
> compiled 3.6.1 and earlier versions for this platform in the past using
> F90=blrts_xlf90
> CXX=blrts_xlC
> FC=blrts_xlf
> CC=blrts_xlc
> ./configure --build powerpc32-unknown-gnu --host powerpc-suse-linux
>
> However in 3.6.2 there is a new check for how to call c from fortran which
> is not disabled when you are compiling
> cross platform and so the configure fails.  I don't see a way to bypass this
> test... any ideas?
>
> Thanks,
> Jim
>
>

Try it with the --disable-fortran-type-check option.

If that doesn't turn of the check, send me the exact checks you need turned off
and I will modify the configure.

Instead of using the automatic type size checks, this will give you a set of
default sizes for fortran types:

      AC_DEFINE(NCBYTE_T, byte)
      AC_DEFINE(NCSHORT_T, integer*2)
      AC_DEFINE(NF_INT1_T, byte)
      AC_DEFINE(NF_INT2_T, integer*2)
      AC_DEFINE(NF_INT1_IS_C_SIGNED_CHAR, 1, [default])
      AC_DEFINE(NF_INT2_IS_C_SHORT, 1, [default])
      AC_DEFINE(NF_INT_IS_C_INT, 1, [default])
      AC_DEFINE(NF_REAL_IS_C_FLOAT, 1, [default])
      AC_DEFINE(NF_DOUBLEPRECISION_IS_C_DOUBLE, 1, [default])

Are these correct for your platform?

I believe these checks has also been done in previous releases. Are you sure
that release 3.6.1 compiled for fortran without running these tests?

Thanks,

Ed

Thanks,

Ed

Ticket Details
===================
Ticket ID: AXH-705906
Department: Support netCDF
Priority: Normal
Status: Open