Opened 6 years ago

Closed 6 years ago

#58277 closed defect (fixed)

mongodb @4.0.7: build fails with C++ library issues using Xcode 10.2

Reported by: dbevans (David B. Evans) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: majoc-at-astro (majoc-at-astro), hapaguy (Brian Kurt Fujikawa), nicolasmartin3d, ShadSterling (Shad Sterling)
Port: mongodb

Description

Build fails on macOS 10.14.4 using

Xcode 10.2
Build version 10E125
Apple LLVM version 10.0.1 (clang-1001.0.46.3)

as follows (no problem with Xcode 10.1)

:info:build /usr/bin/clang++ -o build/MP/mongo/transport/transport_layer.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -stdlib=libc++ -std=c++14 -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-tautological-constant-compare -Wno-tautological-unsigned-zero-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -Wunguarded-availability -fstack-protector-strong -fno-builtin-memcmp -DPCRE_STATIC -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/pcre-8.41 -Isrc/third_party/boost-1.60.0 -I/opt/local/include -Ibuild/MP -Isrc src/mongo/transport/transport_layer.cpp
:info:build In file included from src/mongo/transport/transport_layer_asio.cpp:37:
:info:build In file included from src/third_party/asio-master/asio/include/asio.hpp:21:
:info:build In file included from src/third_party/asio-master/asio/include/asio/basic_datagram_socket.hpp:20:
:info:build In file included from src/third_party/asio-master/asio/include/asio/basic_socket.hpp:40:
:info:build In file included from src/third_party/asio-master/asio/include/asio/detail/reactive_socket_service.hpp:22:
:info:build In file included from src/third_party/asio-master/asio/include/asio/buffer.hpp:27:
:info:build In file included from src/third_party/asio-master/asio/include/asio/detail/string_view.hpp:23:
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/experimental/string_view:11:2: error: "<experimental/string_view> has been removed. Use <string_view> instead."
:info:build #error "<experimental/string_view> has been removed. Use <string_view> instead."
:info:build  ^
:info:build In file included from src/mongo/transport/transport_layer_asio.cpp:37:
:info:build In file included from src/third_party/asio-master/asio/include/asio.hpp:21:
:info:build In file included from src/third_party/asio-master/asio/include/asio/basic_datagram_socket.hpp:20:
:info:build In file included from src/third_party/asio-master/asio/include/asio/basic_socket.hpp:40:
:info:build In file included from src/third_party/asio-master/asio/include/asio/detail/reactive_socket_service.hpp:22:
:info:build In file included from src/third_party/asio-master/asio/include/asio/buffer.hpp:27:
:info:build src/third_party/asio-master/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 src/third_party/asio-master/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       ~~~~~^

Attachments (1)

main.log (645.8 KB) - added by dbevans (David B. Evans) 6 years ago.
Build log showing failure

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by dbevans (David B. Evans)

Attachment: main.log added

Build log showing failure

comment:1 Changed 6 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc-at-astro added

comment:2 Changed 6 years ago by hapaguy (Brian Kurt Fujikawa)

Cc: hapaguy added

comment:3 Changed 6 years ago by nicolasmartin3d

Cc: nicolasmartin3d added

comment:4 Changed 6 years ago by ShadSterling (Shad Sterling)

Cc: ShadSterling added

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

Has anybody reported this problem to the developers of mongodb? If not, please do, and paste the URL here so we can check on it later. This problem is unlikely to be specific to MacPorts or macOS.

comment:6 Changed 6 years ago by jmroot (Joshua Root)

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

Resolution: fixed
Status: assignedclosed

In 39aa1ce08d628a963202013de560c530747e9b4a/macports-ports (master):

mongodb: Fix build with Xcode 10.2

Closes: #58277

Note: See TracTickets for help on using tickets.