Opened 5 years ago

Last modified 5 years ago

#59791 closed defect

mame @0.203: error: no member named 'experimental' in namespace 'std' — at Version 1

Reported by: Tatsh (Andrew Udvare) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: mame

Description (last modified by ryandesign (Ryan Carsten Schmidt))

It fails when building anything using the included asio library under 3rdparty.

:info:build ../../../../../3rdparty/asio/include/asio/ip/impl/address.ipp:139:22: error: unknown type name 'string_view'; did you mean 'std::string_view'?
:info:build address make_address(string_view str)
:info:build                      ^~~~~~~~~~~
:info:build                      std::string_view
:info:build In file included from ../../../../../src/emu/http.cpp:1:
:info:build In file included from ../../../../../src/emu/emu.h:29:

I'm on Catalina with Xcode 11 which may be causing this.

Change History (2)

Changed 5 years ago by Tatsh (Andrew Udvare)

Attachment: main.log.gz added

build log

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: mame added
Summary: mame @0.203: no type named string_viewmame @0.203: error: no member named 'experimental' in namespace 'std'

Looks like the first error in the log is actually:

:info:build ../../../../../3rdparty/asio/include/asio/detail/string_view.hpp:31:12: error: no member named 'experimental' in namespace 'std'
:info:build using std::experimental::basic_string_view;
:info:build       ~~~~~^
:info:build ../../../../../3rdparty/asio/include/asio/detail/string_view.hpp:32:12: error: no member named 'experimental' in namespace 'std'
:info:build using std::experimental::string_view;
:info:build       ~~~~~^

In any case, this sounds like a problem that is not specific to MacPorts. I will update the port to the latest version, 0.216. If the problem persists with that version, please report the problem to the developers; they may need to update their bundled asio library.

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.