New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19772 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

netcdf 4.0 openmpi dependency

Reported by: Chris.Barker@… Owned by: takeshi@…
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

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

Change History

Changed 3 years ago by Chris.Barker@…

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

Changed 3 years ago by Chris.Barker@…

  • cc Chris.Barker@… added

Cc Me!

Changed 3 years ago by jmr@…

  • cc Chris.Barker@… removed
  • status changed from new to closed
  • resolution set to fixed

Changed 3 years ago by takeshi@…

Changed 3 years ago by takeshi@…

  • status changed from closed to reopened
  • resolution fixed deleted

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

Changed 3 years ago by jmr@…

  • status changed from reopened to new
  • owner changed from macports-tickets@… to takeshi@…

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

Changed 3 years ago by takeshi@…

  • status changed from new to closed
  • resolution set to fixed

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.