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

[netCDF #HIS-408233]: Configure problem on Mac OS X with Intel compiler



> Hi, I got a problem when trying to install netcdf 3.6.2 on my Mac OS X with
> Intel compiler. After entering ./configure, I got:
> ...
> checking for Fortran "integer*2"... yes
> checking if Fortran "byte" is C "signed char"... configure: error: Could not
> link conftestf.o and conftest.o
> 
> Does anybody know how to fix it? Thanks a lot.
> 
> Also, I would like to build the lib in 64-bit mode. Does anybody know the
> options for this case?
> 
> Any suggestion is highly appreciated.
> 
> Jiwen
> 
> 

Howdy Jiwen!

Could this be a 32/64 bit issue?

The problem that configure is having is that it can't correctly link a C and a 
Fortran program together.

I've seen this occur on platforms that have a 32-bit Fortran compiler and a 
64-bit C compiler. In those cases, you have to find the correct flags to make 
your C compiler output 32-bit object files instead of 64-bit. 

(For gcc you set CFLAGS and CXXFLAGS to "-m32").

Look in the config.log file for the message you are seeing. There you will see 
how it is trying to compiler C and Fortran together, and there may be a useful 
error message.

Thanks,

Ed

Ticket Details
===================
Ticket ID: HIS-408233
Department: Support netCDF
Priority: Normal
Status: Open