NSF Unidata

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

[netCDF #GUD-694571]: problem: build 64-bit netcdf lib using ifort and

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Jiwen,

We don't develop or maintain ncview, so I'm not completely sure whether it uses
all the conventional configure flags.  As a guess, I would try setting the
CFLAGS environment variable to "-m64" before running the ncview "configure"
command.

You probablu want to run "make distclean" first, also.  So try

  make distclean
  export CFLAGS="-m64"   (or setenv CFLAGS "-m64" if using csh)
  ./configure --with-netcdf_incdir=/Users/d3p880/netcdf-3.6.2/include 
--with-netcdf_libdir=/Users/d3p880/netcdf-3.6.2/lib --enable-64bit

However, if the ncview configure supports the option "--enable-64bit", I would
think
it already uses "-m64" in C compiles of ncview sources.  But from the gcc
compile
line you sent earlier, "-m64" was not used.

If this doesn't work, maybe your netCDF library wasn't built as a 64-bit
library,
in which case it's a different problem.  In that case, I recommend contacting
the
ncview support to see if they have seen this problem and have a solution.

--Russ

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



Ticket Details
===================
Ticket ID: GUD-694571
Department: Support netCDF
Priority: Critical
Status: Closed