Opened 3 years ago

Closed 3 years ago

#63818 closed defect (fixed)

gromacs/gromacs-plumed: build requires macOS 10.13+; possible candidate for macports-libcxx

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: macports-libcxx Cc: kencu (Ken), dstrubbe (David Strubbe)
Port: gromacs gromacs-plumed

Description

These ports fail to build on macOS releases earlier than 10.13, with the following errors:

src/gromacs/modularsimulator/computeglobalselement.cpp:393:62:
  error: 'value' is unavailable: introduced in macOS 10.13
    return std::any_cast<ISimulatorElement*>(cachedValue.value());
                                                         ^
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/optional:944:33:
  note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^

src/gromacs/modularsimulator/computeglobalselement.cpp:393:21:
  error: 'any_cast<gmx::ISimulatorElement *>' is unavailable: introduced in macOS 10.13
    return std::any_cast<ISimulatorElement*>(cachedValue.value());
                ^
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/any:581:12:
  note: 'any_cast<gmx::ISimulatorElement *>' has been explicitly marked unavailable here
    _ValueType any_cast(any const & __v)
               ^

However, the use of macports-libcxx might be on option on 10.12 and earlier, to fix these issues. @kencu would be able to say for sure, though.

In the interim, we should set known_fail as appropriate, to save wasted buildbot time.

Change History (2)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: dstrubbe added
Owner: changed from dstrubbe to mascguy

I'll take this, as I'm working on fixing support for macports-libcxx within PG legacysupport.

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:2 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 7a40798dec5597b30008e07601ffefbf60a01fcb/macports-ports (master):

gromacs/gromacs-plumed: use macports-libcxx, for 10.12 and earlier
Fixes: #63818
See: #63869

Note: See TracTickets for help on using tickets.