Opened 3 months ago

Closed 3 months ago

#70436 closed defect (fixed)

mongodb @6.0.7_1: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]

Reported by: mkhon Owned by: ryandesign (Ryan Carsten Schmidt)
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:~$       

Attachments (1)

mongodb.patch (662 bytes) - added by mkhon 3 months ago.
Fix mongodb build

Download all attachments as: .zip

Change History (6)

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

comment:2 Changed 3 months ago by jmroot (Joshua Root)

Owner: set to ryandesign
Port: mongodb added
Status: newassigned

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

Port: mongodb-devel added
Status: assignedaccepted
Summary: mongodb @6.0.7_1 fails to buildmongodb @6.0.7_1: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]

Thanks for the patch.

This is https://jira.mongodb.org/browse/SERVER-85825.

There are no pre-compiled archives of mongodb because of #64599.

comment:4 in reply to:  description Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to mkhon:

(is there an access to the package build logs?)

Yes, at https://ports.macports.org/port/mongodb/builds/, unless the builds are so old that the logs have already been deleted.

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

Resolution: fixed
Status: acceptedclosed

In 80ebba3b149d415b18ebbc8e99699a1a8d314720/macports-ports (master):

mongodb*: Downgrade enum-constexpr-conversion error to warning

Closes: #70436

Note: See TracTickets for help on using tickets.