Opened 6 years ago
Last modified 18 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)
Change History (6)
Changed 6 years ago by Dave-Allured (Dave Allured)
Changed 6 years ago by Dave-Allured (Dave Allured)
Attachment: | console-log.ncarg.1026a.hdf5-fail.tar.gz added |
---|
comment:1 Changed 6 years ago by Dave-Allured (Dave Allured)
Changed 6 years ago by Dave-Allured (Dave Allured)
Attachment: | main.log.ncarg-6.5.0_3.1113a.txt added |
---|
ncarg @6.5.0_3 fails in the same way, wrong hdf5 variant. Main.log is attached.
comment:2 Changed 6 years ago by tenomoto (Takeshi Enomoto)
This is a result of enforcing HDF5 variant. It was simple in the past...
comment:3 Changed 4 years 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".
[47f2d0c76bd65ffbb7f5d305f995e74ddcf8f638/macports-ports]
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).
There are several workarounds. They seem to work, but I have not done extensive testing.