Opened 4 years ago
Closed 4 years ago
#60760 closed defect (fixed)
netgen @6.2.2004: fatal error: 'optional' file not found
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | chrstphrchvz (Christopher Chavez) | |
Port: | netgen |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_netgen/netgen/work/netgen-6.2.2004/libsrc/include/mystdlib.h:22:10: fatal error: 'optional' file not found #include <optional> ^~~~~~~~~~
Optional is a C++ 17 feature so this port should use compiler.cxx_standard 2017
.
I don't see any -std=c++17
flags in the build so the port shoudl also use configure.cxxflags-append -std=c++17
.
Note that ports that use "optional" will fail to build on 10.13 until https://github.com/macports/macports-base/pull/179 is merged, a new version of base is released, and the clang-9.0 port receives a revbump (see https://github.com/macports/macports-ports/pull/6971).
Note that ports that use "optional" will never build in 10.7 thru 10.12 inclusive because their libc++ doesn't support it.
Change History (4)
comment:1 Changed 4 years ago by chrstphrchvz (Christopher Chavez)
comment:2 Changed 4 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:4 Changed 4 years ago by chrstphrchvz (Christopher Chavez)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
PR opened: https://github.com/macports/macports-ports/pull/8539
Support for
<optional>
was introduced in Xcode 10.<optional>
appears to be usable on macOS 10.12 and earlier using an alternative compiler, unlessstd::optional::value
is needed.