Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866153 - dev-cpp/valijson-0.6 fails to compile: picojson.h:249:10: error: <unnamed>.picojson::value::u_ may be used uninitialized [-Werror=maybe-uninitialized]
Summary: dev-cpp/valijson-0.6 fails to compile: picojson.h:249:10: error: <unnamed>.pi...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Holger Hoffstätte
Keywords: PullRequest
Depends on:
Blocks: werror gcc-12
  Show dependency tree
Reported: 2022-08-23 14:47 UTC by Agostino Sarubbo
Modified: 2022-08-28 12:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,82.37 KB, text/plain)
2022-08-23 14:47 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-08-23 14:47:41 UTC

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 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):

commit 3cc6c155957fceb4367db5a76aa9c5ca91334347
Author:     Holger Hoffstätte <>
AuthorDate: 2022-08-23 17:27:02 +0000
Commit:     Sam James <>
CommitDate: 2022-08-23 18:56:54 +0000

    dev-cpp/valijson: bump to 0.7 & fix test compilation with gcc12
    Signed-off-by: Holger Hoffstätte <>
    Signed-off-by: Sam James <>

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