Re: [netcdfgroup] netCDF-beta and 64-bit Snow Leopard build attempt (failed)

  • To: John Helly <hellyj@xxxxxxxx>
  • Subject: Re: [netcdfgroup] netCDF-beta and 64-bit Snow Leopard build attempt (failed)
  • From: Larry Baker <baker@xxxxxxxx>
  • Date: Tue, 19 Oct 2010 10:04:40 -0700
John,

I have no experience with the version of the library you are trying to compile, nor with Snow Leopard yet. However, my ./configure command is slightly different than yours, esp. note -DgFortran:

        ./configure >configure.log 2>&1 \
           CC="gcc -m64" \
           CFLAGS="-g -O2" \
           CXX="g++ -m64" \
           CXXFLAGS="-g -O2" \
           CPPFLAGS="-DNDEBUG -DgFortran" \
           FC="gfortran -m64" \
           FCFLAGS="-g -O2"

Larry Baker
US Geological Survey
650-329-5608
baker@xxxxxxxx

On Oct 18, 2010, at 12:29 PM, John Helly wrote:

Hi.

System Configuration: OSX 10.6.4
NetCDF Version: 4.1.2-beta1

I am trying to build netcdf-beta in 64-bit mode, with curl support, to attempt to resolve some apparent problem in building GMTdev with the latest release. But, as usual, I'm stuck with some arcane problem that I need some help with. This is an 'old' problem that I never really understood but somehow worked around but those old tricks don't seem to work. I've looked at some relatively old traffic about this and am uncertain what the current state of affairs is regarding this type of problem. I don't see anything recent.

Here are the symptoms:

...
checking whether the gfortran linker (/usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.4.0 dyld
checking how to hardcode library paths into programs... immediate
configure: finding other utilities
configure: trying to set fortran flags for this platform
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: displaying some results
checking CPPFLAGS... -Df2cFortran
checking CC CFLAGS... /usr/bin/cc -g -O2
checking type /usr/bin/cc... /usr/bin/cc is /usr/bin/cc
checking CXX... g++
checking CXXFLAGS... -g -O2
checking type g++... g++ is /usr/bin/g++
checking FC... gfortran
checking FFLAGS... -g -O2
checking type gfortran... gfortran is /usr/local/bin/gfortran
checking F90... gfortran
checking FCFLAGS... -qsuffix=cpp=f90
checking type gfortran... gfortran is /usr/local/bin/gfortran
checking AR... ar
checking AR_FLAGS... cru
checking type ar... ar is /usr/bin/ar
checking NM... /usr/bin/nm
checking NMFLAGS...
checking for /usr/bin/nm... /usr/bin/nm
checking nm flags...
checking for C-equivalent to Fortran routine "SUB"... sub_
checking for Fortran "byte"... yes
checking for Fortran "integer*2"... yes
checking if Fortran "byte" is C "signed char"... configure: error: Could not link conftestf.o and conftest.o NeptuneStonesteps.local:~/src/netcdf-4.1.2-beta1>~/bin/ makeNetCDF_OSX_beta.bash

And here is the script that I ran to get this:

#!/bin/bash
make distclean
#
export FCFLAGS='-m64'
export CC=/usr/bin/cc
export F77=gfortran
export FC=gfortran
export FCFLAGS=-qsuffix=cpp=f90
export CPPFLAGS='-Df2cFortran'
#
./configure --prefix=/usr/local/netcdf-4.1.2-beta1 --enable-f90 -- with-curl=/usr/local/lib

Assistance would be very helpful since I don't have a working copy of GMT on this machine at the moment and need one.

Cheers.
--------------
John Helly, UCSD / San Diego Supercomputer Center / Scripps Institution of Oceanography, Climate, Atmospheric Science, and Physical Oceanography / +01 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) / /www.sdsc.edu/~hellyj


_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: