Opened 3 months ago

Last modified 3 months ago

#70436 closed defect

mongodb @6.0.7_1 fails to build — at Version 1

Reported by: mkhon Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: mongodb, mongodb-devel

Description (last modified by mkhon)

The relevant error from the build log:

:info:build src/third_party/boost/boost/type_traits/intrinsics.hpp:205:43: note: expanded from macro 'BOOST_HA
S_NOTHROW_ASSIGN'
:info:build #     define BOOST_HAS_NOTHROW_ASSIGN(T) (__has_nothrow_assign(T) && !is_volatile<T>::value && is_
assignable<T&, const T&>::value)
:info:build                                           ^
:info:build In file included from src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp:41:
:info:build In file included from src/mongo/db/pipeline/document_source_merge.h:33:
:info:build In file included from src/mongo/db/pipeline/document_source_writer.h:36:
:info:build In file included from src/mongo/db/db_raii.h:35:
:info:build In file included from src/mongo/db/stats/top.h:36:
:info:build In file included from src/third_party/boost/boost/date_time/posix_time/posix_time.hpp:24:
:info:build In file included from src/third_party/boost/boost/date_time/posix_time/time_formatters.hpp:12:
:info:build In file included from src/third_party/boost/boost/date_time/gregorian/gregorian.hpp:31:
:info:build In file included from src/third_party/boost/boost/date_time/gregorian/gregorian_io.hpp:16:
:info:build In file included from src/third_party/boost/boost/date_time/date_facet.hpp:25:
:info:build In file included from src/third_party/boost/boost/date_time/date_generator_parser.hpp:20:
:info:build In file included from src/third_party/boost/boost/date_time/format_date_parser.hpp:14:
:info:build In file included from src/third_party/boost/boost/lexical_cast.hpp:32:
:info:build In file included from src/third_party/boost/boost/lexical_cast/try_lexical_convert.hpp:43:
:info:build In file included from src/third_party/boost/boost/lexical_cast/detail/converter_numeric.hpp:36:
:info:build In file included from src/third_party/boost/boost/numeric/conversion/cast.hpp:33:
:info:build In file included from src/third_party/boost/boost/numeric/conversion/converter.hpp:13:
:info:build In file included from src/third_party/boost/boost/numeric/conversion/conversion_traits.hpp:13:
:info:build In file included from src/third_party/boost/boost/numeric/conversion/detail/conversion_traits.hpp:
18:
:info:build In file included from src/third_party/boost/boost/numeric/conversion/detail/int_float_mixture.hpp:
19:
:info:build In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32:
:info:build src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]

The patch to fix this is attached. I believe this is the reason why mongodb packages do not currently exist (is there an access to the package build logs?)

Environment:

fjoe:~$ xcodebuild -version
Xcode 15.4
Build version 15F31d
fjoe:~$ clang --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
fjoe:~$ sw_vers -productVersion
14.5
fjoe:~$       

Change History (2)

Changed 3 months ago by mkhon

Attachment: mongodb.patch added

Fix mongodb build

comment:1 Changed 3 months ago by mkhon

Description: modified (diff)
Keywords: haspatch added
Summary: mongodb fails to buildmongodb @6.0.7_1 fails to build
Note: See TracTickets for help on using tickets.