[Buildroot] [PATCH 1/1] package/mongodb: fix build with gcc 11

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Aug 12 21:48:57 UTC 2021


On Mon,  9 Aug 2021 22:11:56 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure with gcc 11:
> 
> In file included from src/mongo/db/query/plan_cache.h:36,
>                  from src/mongo/db/catalog/collection_info_cache.h:33,
>                  from src/mongo/db/catalog/collection.h:42,
>                  from src/mongo/db/exec/requires_collection_stage.h:32,
>                  from src/mongo/db/exec/delete.h:32,
>                  from src/mongo/db/query/internal_plans.h:33,
>                  from src/mongo/db/query/internal_plans.cpp:32:
> src/mongo/db/exec/plan_stats.h:214:10: error: 'optional' in namespace 'std' does not name a template type
>   214 |     std::optional<std::string> replanReason;
>       |          ^~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/8c0875fa413923504515a83d8b679366418c2444
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  ...c-plan_stats.h-fix-build-with-gcc-11.patch | 44 +++++++++++++++++++
>  1 file changed, 44 insertions(+)
>  create mode 100644 package/mongodb/0002-src-mongo-db-exec-plan_stats.h-fix-build-with-gcc-11.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list