Opened 15 years ago

Closed 15 years ago

#19772 closed defect (fixed)

netcdf 4.0 openmpi dependency

Reported by: Chris.Barker@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: netcf openmpi Cc:
Port: netcdf

Description

I'm trying to build netcdf 4.0, as of SVN revision 51494, and it fails with:

configure: finding C compiler
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

Looking into the Portfile, I see:

configure.fc        openmpif77
configure.cc        openmpicc
configure.cxx       openmpicxx

if I comment those out, it builds fine -- clearly I don't have the openmpi compilers.

It seems that open mpi needs to be listed as a dependency, or it should be a variant option.

While I'm at it, I'd like to have 4.0.1, and "enable-dap" turned on.

all this requires is changing the version number, the checksums, and add --enable-dap to the flags. It seems to build fine for me.

Portfile patch is enclosed.

Attachments (2)

netcdf.portfile.patch (1.4 KB) - added by Chris.Barker@… 15 years ago.
patch for netcdf portfile to remove open mpi depenency, upgrade to 4.0.1, and add opendap support.
Portfile.diff (1.8 KB) - added by tenomoto (Takeshi Enomoto) 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by Chris.Barker@…

Attachment: netcdf.portfile.patch added

patch for netcdf portfile to remove open mpi depenency, upgrade to 4.0.1, and add opendap support.

comment:1 Changed 15 years ago by Chris.Barker@…

Cc: Chris.Barker@… added

Cc Me!

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: Chris.Barker@… removed
Resolution: fixed
Status: newclosed

Changed 15 years ago by tenomoto (Takeshi Enomoto)

Attachment: Portfile.diff added

comment:3 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: closedreopened

I separated openmpi as a variant since not everyone needs it. I also enabled dap as a variant.

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to takeshi@…
Status: reopenednew

It's nomaintainer, so you can go ahead and check this in.

comment:5 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

I was going to do so. But I thought it would be nice to have some time for comments. Actually, I committed it as r52992.

Note: See TracTickets for help on using tickets.