Opened 3 years ago

Last modified 6 months ago

#57475 assigned defect

ncarg @6.5.0_2: Install fails, wrong hdf5 variant

Reported by: Dave-Allured (Dave Allured) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: ncarg

Description

I am testing a full MacPorts install from source. "Port -v install ncarg" installs 220 dependencies, then fails like this:

--->  Configuring ncarg
Error: Install hdf5 +gcc8
Error: Failed to configure ncarg: hdf5 +gcc8 not installed

Main.log shows that a variant of hdf5 was installed, but ncarg configure did not like it:

:debug:configure hdf5 is installed with the following variants: +cxx+hl
:debug:configure   required: gcc8, forbidden: 
:debug:configure   rejected, because required variant gcc8 is missing

How can this be fixed to provide a simple clean install of ncarg? I am not sure whether the problem resides in ncarg, hdf5, or somewhere else. Here is my configuration:

sw_vers:
ProductName:	Mac OS X
ProductVersion:	10.13.6
BuildVersion:	17G65

Xcode 10.0
Build version 10A255

I am installing to a private user directory, not /opt/local. Root privileges are disabled. I pre-installed certain known fixes for two dependencies. I ran port selfupdate in advance, of course.

Attachments (3)

main.log (359.4 KB) - added by Dave-Allured (Dave Allured) 3 years ago.
console-log.ncarg.1026a.hdf5-fail.tar.gz (5.6 MB) - added by Dave-Allured (Dave Allured) 3 years ago.
main.log.ncarg-6.5.0_3.1113a.txt (366.5 KB) - added by Dave-Allured (Dave Allured) 3 years ago.
ncarg @6.5.0_3 fails in the same way, wrong hdf5 variant. Main.log is attached.

Change History (6)

Changed 3 years ago by Dave-Allured (Dave Allured)

Attachment: main.log added

Changed 3 years ago by Dave-Allured (Dave Allured)

comment:1 Changed 3 years ago by Dave-Allured (Dave Allured)

There are several workarounds. They seem to work, but I have not done extensive testing.

  1. First install hdf5 +gcc8, then install ncarg.
  1. Install ncarg (fails), port clean ncarg, install hdf5 +gcc8, then install ncarg again.
  1. Install ncarg +gcc7.

Changed 3 years ago by Dave-Allured (Dave Allured)

ncarg @6.5.0_3 fails in the same way, wrong hdf5 variant. Main.log is attached.

comment:2 Changed 2 years ago by tenomoto (Takeshi Enomoto)

This is a result of enforcing HDF5 variant. It was simple in the past...

comment:3 Changed 6 months ago by Dave-Allured (Dave Allured)

May be fixed by this commit by @cjones051073, "lapack,ncarg: do not assume gcc port name from variant name".

https://github.com/macports/macports-ports/commit/47f2d0c76bd65ffbb7f5d305f995e74ddcf8f638

My ncarg build with default variant seems to be working okay today. Only tried it once, but it blew through the place where it would have normally choked on mismatched hdf5, and made a good executable. I am not sure how to thoroughly check this, or how to attribute the fix.

Ncarg (NCL) 6.6.2 seems to be working well now on my Mojave 10.14.6 system, with gcc10 as default compiler (after one more bug fix for duplicate symbols).

Note: See TracTickets for help on using tickets.