Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59791 closed defect (fixed)

mame @0.203: error: no member named 'experimental' in namespace 'std'

Reported by: Tatsh (Andrew Udvare) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
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.

Attachments (1)

main.log.gz (196.2 KB) - added by Tatsh (Andrew Udvare) 5 years ago.
build log

Download all attachments as: .zip

Change History (8)

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)

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

In 89684525dc2a403692de13d222bd197cb447c266/macports-ports (master):

mame: Use MacPorts asio and pugixml

See: #59791

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

I couldn't build 0.216, so I made 0.203 use MacPorts asio instead of the bundled version. Did that help?

comment:4 Changed 5 years ago by Tatsh (Andrew Udvare)

Yes, this is fixed now. Thanks

comment:5 Changed 5 years ago by kencu (Ken)

0.216 built fine for me on 10.6.8/libc++/clang-9.0.

$ port -v installed mame
The following ports are currently installed:
  mame @0.216_0 (active) platform='darwin 10' archs='x86_64' date='2019-12-02T19:56:10-0800'

There is just one script that calls to "python" that needs to be set to python27 to get the script to work.

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

Resolution: fixed
Status: newclosed

0.207 and later do not build for me, but it is an unrelated issue so I'll close this ticket now.

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

Cc: ryandesign added
Note: See TracTickets for help on using tickets.