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

[netCDF #IQL-295684]: mpif90 compiling Error during "make check," NetCDF 4.2 Fortran

Hi Chao,

> I had built and install netcdf c libraries, and pass all the tests using
> âmake checkâ, the command line like this:
> sudo CC=mpicc CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib 
> ./configure --enable-netcdf4 --enable-pnetcdf --prefix=/usr/local 
> --enable-parallel-tests
> and then, I start to build  NetCDF 4.2 Fortran, command line:
> sudo lt_cv_ld_force_load=no CPPFLAGS="-DpgiFortran -I/usr/local/include" 
> F90=mpif90  FC=mpif90 CC=mpicc FFLAGS=-m64 FCFLAGS=-m64 CFLAGS=-m64 
> CXXFLAGS=-m64 LDFLAGS=-L/usr/local/lib ./configure --prefix=/usr/local
> BUT, it gives this error massages when I run âmake checkâ :


> At line 196 of file nf_test.F
> Internal Error: list_formatted_write(): Bad type
> FAIL: tst_f77_v2
> ================
> At line 37 of file tst_f77_v2.F
> Internal Error: list_formatted_write(): Bad type

I think these errors are come from the Fortran compiler that is called 
by mpif90, and may be a symptom that it is old and doesn't match the
version of gcc called by mpicc.

> My system information:
> ââââââââââââââââââââââ
> Mac OS X 10.9
> gcc-4.8.1
> mpicc, mpif90,mpif77

A later version of gfortran for OS X 10.9 (Mavericks) is available here:


that might work better with gcc-4.8.1.  Make sure your Fortran compiler
works for a simple program using a statement such as

      print *, "Hello"

before trying to use for for building the netCDF Fortran release.

It's also best if you don't use sudo for the configure and "make all" or
"make check" steps of building software that relies on inheriting environment
variables, but instead just use sudo for the final "make install".  That's
because sudo shells don't inherit environment variables such as LD_LIBRARY_PATH,
as explained here:



> ââââââââââââââââââââââ
> I really appreciate any help!
> thank you very much!
> Best regards,
> Chao Tang
> -----------------------------------------------------------------------------
> Shanghai Key Lab for Astrophysics
> Room 307, Building 10
> Shanghai Normal University (Mailbox 336)
> 100 Guilin Rd. Shanghai, China, 200234
> Tel: +86 21 6432 8854
> Fax: +86 21 6432 1614
> Email: address@hidden
> -----------------------------------------------------------------------------

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: IQL-295684
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.