[petsc-dev] clang warning, 64bit indices

Satish Balay balay at mcs.anl.gov
Thu Mar 10 09:49:47 CST 2016


On Thu, 10 Mar 2016, Jed Brown wrote:

> Satish Balay <balay at mcs.anl.gov> writes:
> > #if defined(PETSC_HAVE_STDINT_H)
> >   scanf(format for  int64_t);
> 
> Something is funny.
> 
> http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/03/09/configure_next_arch-mswin-cxx-cmplx_ps3.log
> 
> In SOWING configure:
> 
> checking for inttypes.h... yes
> checking for stdint.h... yes
> 
> But in PETSc configure:
> 
> C:\cygwin\tmp\PE00A4~1\PETSC~1.CON\conftest.cpp(3) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
> Possible ERROR while running compiler: exit code 512
> 
> 
> Does stdint.h exist or not?
> 
> > #elif (PETSC_SIZEOF_LONG_LONG == 8)
> >   scanf(format for long long);
> > #elif defined(PETSC_HAVE___INT64)
> >    scanf(format for __int64 - aka windows);
> > #endif

Sowing [and similar packages that PETSc doesn't link with] do not
share the same compilers as PETSc. They choose their own/prefered
compilers.

In this case - the PETSc library is built with MS-C compiler - and
sowing with cygwin-g++.

Satish



More information about the petsc-dev mailing list