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.
> Dear all, > > I want to install netcdf 4.1.2 into my Mac Pro. The configure line is: > > ./configure --prefix=/opt/netcdf/3/4.1.2 FC=ifort > > The compilation is ok, but it failed when "make check". The error messages > are: > > ifort -I../fortran -I../f90 -I../f90 -I../include -I../liblib -g -c -o > tst_f90.o tst_f90.f90 > /bin/sh ../libtool --tag=FC --mode=link ifort -I../fortran -I../f90 > -I../f90 -I../include -I../liblib -g -o tst_f90 tst_f90.o > ../fortran/libnetcdff.la -lm ../liblib/libnetcdf.la -lz -lcurl -lz > libtool: link: ifort -I../fortran -I../f90 -I../f90 -I../include -I../liblib > -g -o .libs/tst_f90 tst_f90.o ../fortran/.libs/libnetcdff.dylib -lm > ../liblib/.libs/libnetcdf.dylib -lcurl -lz > ld: warning: -macosx_version_min not specificed, assuming 10.6 > Undefined symbols for architecture x86_64: > "_typesizes_mp_bytesizesok_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_create_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_def_dim_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_def_var_manydims_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_att_text_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_att_fourbytereal_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_att_one_fourbytereal_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_def_var_onedim_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_def_var_scalar_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_enddef_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_var_1d_fourbytereal_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_var_1d_fourbyteint_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_var_text_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_var_3d_fourbytereal_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_put_var_fourbyteint_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_close_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_open_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_inq_varid_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_get_att_text_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_get_var_text_", referenced from: > _MAIN__ in tst_f90.o > "_netcdf_mp_nf90_strerror_", referenced from: > _netcdftest_IP_check_ in tst_f90.o > ld: symbol(s) not found for architecture x86_64 > make[2]: *** [tst_f90] Error 1 > make[1]: *** [check-am] Error 2 > make: *** [check-recursive] Error 1 > > The machine information is: > > Darwin wabteam.iap.ac.cn 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 > 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64 > > and the ifort version is 12.0.0. > > Thanks for help! > > Best regards, > > Li Dong > > > Howdy Li Dong! Your C compiler is defaulting to 64 bit, and your fortran compiler to 32 bit. If you are using gcc, you can set CFLAGS to -m32 to get 32-bit objects from the C compiler. Alternatively you could learn which ifort option to set in FCFLAGS and FFLAGS to get fortran 90 and 77 code to build in 64-bit. You should also take a look at intel's instructions for netCDF builds: http://www.intel.com/support/performancetools/sb/CS-027812.htm Thanks, Ed Ticket Details =================== Ticket ID: BDY-553312 Department: Support netCDF Priority: High Status: Closed