Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 948662

Summary: dev-cpp/nlohmann_json-3.11.2 fails to compile: alloc_traits.h:76:31: error: static assertion failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/nlohmann/json/pull/3895
https://github.com/nlohmann/json/issues/3927
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2025-01-24 16:09:17 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-cpp/nlohmann_json-3.11.2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox-stable)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2025-01-24 16:09:18 UTC
Created attachment 917406 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2025-01-24 16:09:19 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: tests/CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o 
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/alloc_traits.h:76:31: error: static assertion failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A
Comment 3 Agostino Sarubbo gentoo-dev 2025-01-24 16:09:19 UTC
If you think this bug has already been resolved in major version(s), then please remove the affected versions from the tree.
Comment 4 Holger Hoffstätte 2025-01-24 18:16:34 UTC
Fixed in 3.11.3 (2023-11-28), see linked issues.