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

[netCDF #QON-718723]: Compiling NETCDF issues with MacOSX



Greetings Ryan!

The config log show that there are some issues going on, perhaps with 
architecture. Try the following:

set the following flags:
export CFLAGS='-g -O2 -arch x86_64'
export CXXFLAGS=$CFLAGS
export FCFLAGS='-g -O2 -m64'
export FFLAGS=$FCFLAGS

Then do a `make distclean` and re-run the configure script (don't forget: 
lv_cv_ld_force_load=no ./configure [options]). Then run `make` and see what 
happens. If `make` seems to go well, run `make check`. If `make check` passes 
with flying colors, then go for the `make install`. If this does not work, 
please send me the output from configure, make, and make check.

Cheers!

Sean Arms

> Full Name: Ryan Fogt
> Email Address: address@hidden
> Organization: Ohio University
> Package Version: 4.1.3
> Operating System: MAC OSX 10.6.8
> Hardware:
> Description of problem:
> 
> I seem to be having similar issues as other users in installing netcdf
> on Mac OSX.  I tried the 64-bit flags, and the lv_cv_ld_force_load=no
> option before the ./configure command, but still haven't had any luck.
> The configure process works well, but it encounters errors during the
> 'make check install' process, different than others documented.
> 
> I'd appreciate any help that you can provide!
> 
> Ryan Fogt
> 
> 
> Making check in f90
> make  check-am
> make[2]: Nothing to be done for `check-am'.
> Making check in fortran
> make  check-am
> depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
> -I../include -I../oc    -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c 
> -o fort-attio.lo fort-attio.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../oc -g -O2 
> -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c  
> -fno-common -DPIC -o .libs/fort-attio.o
> In file included from fort-attio.c:8:
> ncfortran.h:24:42: error: NF_INT_IS_C_... not defined: No such file or 
> directory
> fort-attio.c: In function 'NF_INT_cfF':
> fort-attio.c:14: error: expected declaration specifiers before 'NF_INTEGER'
> fort-attio.c:21: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'NF_INTEGER'
> fort-attio.c:122: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'NF_INTEGER'
> fort-attio.c:134: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'NF_INTEGER'
> fort-attio.c:142: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'NF_INTEGER'
> fort-attio.c:149: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'NF_INTEGER'
> fort-attio.c:149: error: expected '{' at end of input
> make[2]: *** [fort-attio.lo] Error 1
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1
> 
> 
> 


Ticket Details
===================
Ticket ID: QON-718723
Department: Support netCDF
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.