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

Bug 866153

Summary: dev-cpp/valijson-0.6 fails to compile: picojson.h:249:10: error: <unnamed>.picojson::value::u_ may be used uninitialized [-Werror=maybe-uninitialized]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Holger Hoffstätte <holger>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tristanpenman/valijson/issues/164
See Also: https://github.com/gentoo/gentoo/pull/26988
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867, 839906    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-08-23 14:47:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-cpp/valijson-0.6 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-23 14:47:44 UTC
Created attachment 800633 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-23 14:47:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  Could not find a package configuration file provided by "Qt5Core" with any
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR) 
FAILED: CMakeFiles/test_suite.dir/tests/test_adapter_comparison.cpp.o 
FAILED: CMakeFiles/test_suite.dir/tests/test_validator.cpp.o 
/var/tmp/portage/dev-cpp/valijson-0.6/work/valijson-0.6/thirdparty/picojson-1.3.0/picojson.h:249:10: error: ‘<unnamed>.picojson::value::u_’ may be used uninitialized [-Werror=maybe-uninitialized]
Comment 3 Holger Hoffstätte 2022-08-23 15:25:31 UTC
Probably gcc-12 related.
Comment 4 Holger Hoffstätte 2022-08-23 16:18:39 UTC
Works with gcc-11.x and clang-14. :(
Comment 5 Larry the Git Cow gentoo-dev 2022-08-23 18:57:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc6c155957fceb4367db5a76aa9c5ca91334347

commit 3cc6c155957fceb4367db5a76aa9c5ca91334347
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2022-08-23 17:27:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-23 18:56:54 +0000

    dev-cpp/valijson: bump to 0.7 & fix test compilation with gcc12
    
    Bug: https://bugs.gentoo.org/866153
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/26988
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/valijson/Manifest                                     | 2 +-
 dev-cpp/valijson/{valijson-0.6.ebuild => valijson-0.7.ebuild} | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)