[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #FDV-951529]: pb with installing netcdf library
- Subject: [netCDF #FDV-951529]: pb with installing netcdf library
- Date: Thu, 17 Jan 2008 16:06:09 -0700
Delphine,
Here are the details of the problem from your config.log file:
...
configure:22892: checking if Fortran "byte" is C "signed char"
configure:22902: cc -c -g -O2 conftest.c
conftest.c: In function 'sub_':
conftest.c:4: warning: incompatible implicit declaration of built-in
function 'exit'
configure:22905: $? = 0
configure:22908: ifort -g -c conftestf.f
configure:22911: $? = 0
configure:22914: ifort -o conftest -g conftestf.o conftest.o
ipo: warning #11023: file format not recognized for conftest.o
ld64 warning: in conftest.o, file is not of required architecture
Undefined symbols:
_sub_, referenced from:
_MAIN__ in conftestf.o
ld64-62.1 failed: symbol(s) not found
configure:22917: $? = 1
configure:22940: error: Could not link conftestf.o and conftest.o
This seems to be saying that the object file conftest.o created by cc is not
recognized
as an object file by the ifort compiler. I suspect your cc compiler is
compiling 32-bit
objects but your ifort is compiling (and expecting) 64-bit objects. You may
have two
versions of the ifort compiler, one for 32-bit and one for 64-bit. You could
determine
which you are using (and whether my guess is correct) by using the "file"
command on
a .o object file created by ifort and by cc. If it turns out you are using the
64-bit
version of ifort, see if you can't find the 32-bit version to use instead.
I found something about this via Google, where "Dr. Fortran" said:
There's only one download for Mac which provides both the 32-bit and 64-bit
compilers
and libraries. You select the one you want with the appropriate "source"
command -
the path with /fc/ for 32-bit and the path with /fce/ for 64-bit.
I don't have ifort, but the above may mean something to you.
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: FDV-951529
Department: Support netCDF
Priority: Normal
Status: Closed