#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)
Change History (8)
Changed 5 years ago by Tatsh (Andrew Udvare)
Attachment: | main.log.gz added |
---|
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_view → mame @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.
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
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: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: | new → closed |
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 |
---|
build log