Compiling with gcc-15 fails
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/uses_allocator_args.h:71:29: error: static assertion failed: construction with an allocator must be possible if uses_allocator is true
71 | static_assert(is_constructible_v<_Tp, _Args..., const _Alloc&>,
| ^~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/uses_allocator_args.h:71:29: note: 'std::is_constructible_v<std::tuple\<std::__cxx11::basic_string\<char, std::char_traits\<char>, mongo::TrackingAllocator\<char> >, long int>, const std::scoped_allocator_adaptor\<mongo::TrackingAllocator\<std::pair\<const mongo::UUID, std::tuple\<std::__cxx11::basic_string\<char, std::char_traits\<char>, mongo::TrackingAllocator\<char> >, long int> > > >&>' evaluates to false
In file included from src/mongo/util/tracking_allocator.h:38,
from src/mongo/bson/util/builder.h:65,
from src/mongo/util/str.h:55,
from src/mongo/base/data_range.h:45,
from src/mongo/bson/bsonelement.h:44,
from src/mongo/bson/bsonobj.h:59,
from src/mongo/bson/bson_field.h:36,
from src/mongo/bson/bsonobjbuilder.h:48,
from src/mongo/db/namespace_string.h:51,
from src/mongo/db/multi_key_path_tracker.h:38,
from src/mongo/db/multi_key_path_tracker.cpp:46:
Pinned Comments
pricechrispy commented on 2025-10-03 16:59 (UTC)
Before upgrading to 8.2, you must set the feature compatibility version to 8.0. See documentation: https://www.mongodb.com/docs/manual/release-notes/8.2-upgrade-standalone/#feature-compatibility-version
Note that building takes about 84gb of memory as of 8.2.1.