[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #HQJ-659259]: Error running ./configure when trying to install netCDF 3.6.3
- Subject: [netCDF #HQJ-659259]: Error running ./configure when trying to install netCDF 3.6.3
- Date: Wed, 14 Jul 2010 14:28:00 -0600
Hi,
If you've already solved your problem building netCDF on MacOS X, you can
ignore this,
but I just ran across some relevant information while investigating another
similar problem.
According to a post at http://www.macresearch.org/problems-gfortran-snow-leopard
[On MacOS X] There is a problem building many open source packages
containing Fortran code on 10.5 and 10.6.
As mentioned above recent Apple compilers will default to building
X86_64 code on 64 bit processor machines. The various Fortran
compilers all seem to default to 32bit i386 code.
As a result when trying to do a standard configure/make build there
will be failures in both the configure and make steps with 'wrong
architecture' messages.
The appropriate cure depends on the desired outcome. If you want
64bit code add -m64 to FFLAGS. If you want 32bit code add --arch
i386 to CFLAGS and CXXFLAGS.
Also don't use -O3 'optimisation'. It is very suboptimal on modern
processors as well being bug ridden. Modern CPUs are not limited by
core speed. The problem is feeding in instructions fast enough to
keep the pipelines full. Hence Apple recommends using -Os which is
like -O2 with the omission of 'optimisations' that increase code
size. ...
Bill Northcott
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: HQJ-659259
Department: Support netCDF
Priority: Normal
Status: Closed