Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835614 - dev-libs/cereal-1.3.2-r1 fails to compile: json.hpp:64:10: fatal error: prettywriter.h: No such file or directory
Summary: dev-libs/cereal-1.3.2-r1 fails to compile: json.hpp:64:10: fatal error: prett...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on: 792444
Blocks:
  Show dependency tree
 
Reported: 2022-03-19 07:50 UTC by Agostino Sarubbo
Modified: 2022-04-03 08:52 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,117.84 KB, text/plain)
2022-03-19 07:50 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-19 07:50:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/cereal-1.3.2-r1 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-19 07:50:27 UTC
Created attachment 767358 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-19 07:50:28 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: unittests/CMakeFiles/test_array_32.dir/array.cpp.o 
FAILED: unittests/CMakeFiles/test_array.dir/array.cpp.o 
FAILED: unittests/CMakeFiles/test_atomic_32.dir/atomic.cpp.o 
FAILED: unittests/CMakeFiles/test_atomic.dir/atomic.cpp.o 
FAILED: unittests/CMakeFiles/test_basic_string_32.dir/basic_string.cpp.o 
FAILED: unittests/CMakeFiles/test_basic_string.dir/basic_string.cpp.o 
FAILED: unittests/CMakeFiles/test_bitset_32.dir/bitset.cpp.o 
FAILED: unittests/CMakeFiles/test_bitset.dir/bitset.cpp.o 
FAILED: unittests/CMakeFiles/test_chrono_32.dir/chrono.cpp.o 
FAILED: unittests/CMakeFiles/test_chrono.dir/chrono.cpp.o 
FAILED: unittests/CMakeFiles/test_complex_32.dir/complex.cpp.o 
FAILED: unittests/CMakeFiles/test_complex.dir/complex.cpp.o 
FAILED: unittests/CMakeFiles/test_defer_32.dir/defer.cpp.o 
FAILED: unittests/CMakeFiles/test_defer.dir/defer.cpp.o 
FAILED: unittests/CMakeFiles/test_deque_32.dir/deque.cpp.o 
FAILED: unittests/CMakeFiles/test_deque.dir/deque.cpp.o 
FAILED: unittests/CMakeFiles/test_forward_list_32.dir/forward_list.cpp.o 
FAILED: unittests/CMakeFiles/test_forward_list.dir/forward_list.cpp.o 
FAILED: unittests/CMakeFiles/test_list_32.dir/list.cpp.o 
FAILED: unittests/CMakeFiles/test_list.dir/list.cpp.o 
FAILED: unittests/CMakeFiles/test_load_construct_32.dir/load_construct.cpp.o 
FAILED: unittests/CMakeFiles/test_load_construct.dir/load_construct.cpp.o 
FAILED: unittests/CMakeFiles/test_map_32.dir/map.cpp.o 
FAILED: unittests/CMakeFiles/test_map.dir/map.cpp.o 
FAILED: unittests/CMakeFiles/test_memory_32.dir/memory.cpp.o 
FAILED: unittests/CMakeFiles/test_memory_cycles_32.dir/memory_cycles.cpp.o 
FAILED: unittests/CMakeFiles/test_memory_cycles.dir/memory_cycles.cpp.o 
FAILED: unittests/CMakeFiles/test_memory.dir/memory.cpp.o 
FAILED: unittests/CMakeFiles/test_multimap_32.dir/multimap.cpp.o 
FAILED: unittests/CMakeFiles/test_multimap.dir/multimap.cpp.o 
FAILED: unittests/CMakeFiles/test_multiset_32.dir/multiset.cpp.o 
FAILED: unittests/CMakeFiles/test_multiset.dir/multiset.cpp.o 
FAILED: unittests/CMakeFiles/test_pair_32.dir/pair.cpp.o 
FAILED: unittests/CMakeFiles/test_pair.dir/pair.cpp.o 
FAILED: unittests/CMakeFiles/test_pod_32.dir/pod.cpp.o 
FAILED: unittests/CMakeFiles/test_pod.dir/pod.cpp.o 
FAILED: unittests/CMakeFiles/test_polymorphic_32.dir/polymorphic.cpp.o 
FAILED: unittests/CMakeFiles/test_polymorphic.dir/polymorphic.cpp.o 
FAILED: unittests/CMakeFiles/test_portable_binary_archive_32.dir/portable_binary_archive.cpp.o 
FAILED: unittests/CMakeFiles/test_portable_binary_archive.dir/portable_binary_archive.cpp.o 
FAILED: unittests/CMakeFiles/test_priority_queue_32.dir/priority_queue.cpp.o 
FAILED: unittests/CMakeFiles/test_priority_queue.dir/priority_queue.cpp.o 
FAILED: unittests/CMakeFiles/test_queue_32.dir/queue.cpp.o 
FAILED: unittests/CMakeFiles/test_queue.dir/queue.cpp.o 
/var/tmp/portage/dev-libs/cereal-1.3.2-r1/work/cereal-1.3.2/include/cereal/archives/json.hpp:64:10: fatal error: cereal/external/rapidjson/prettywriter.h: No such file or directory
/var/tmp/portage/dev-libs/cereal-1.3.2-r1/work/cereal-1.3.2/include/cereal/archives/json.hpp:64:10: fatal error: cereal/external/rapidjson/prettywriter.h: No such file or directory
Comment 3 Agostino Sarubbo gentoo-dev 2022-03-19 07:51:20 UTC
it seems also compile tests in src_compile
Comment 4 Maurizio Contu 2022-03-21 18:03:15 UTC
I found the same problem in my gentoo, everything is fine when i emerge cereal-1.3.2, i think this issue is related with dev-libs/rapidjson that seems there is a new version upstream.
Comment 5 Melker Narikka 2022-03-25 14:08:33 UTC
(In reply to Maurizio Contu from comment #4)
> I found the same problem in my gentoo, everything is fine when i emerge
> cereal-1.3.2, i think this issue is related with dev-libs/rapidjson that
> seems there is a new version upstream.

It's related to the broken unbundling of the rapidjson version used by cereal (#792444). I posted a patch on that there bug and it builds fine.
Comment 6 Larry the Git Cow gentoo-dev 2022-04-03 08:52:32 UTC
The bug has been closed via the following commit(s):

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

commit af5cbae5cf6d46de63c25e7d0fdf03b2fb1fc402
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-04-03 08:51:03 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-04-03 08:52:11 +0000

    dev-libs/cereal: include system rapidjson
    
    Fixes build and tests.  Also fix tests on nomultilib systems by
    disabling one of them.
    
    rapidxml still needs to be unbundled.
    
    Closes: https://bugs.gentoo.org/835614
    Bug: https://bugs.gentoo.org/792444
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 dev-libs/cereal/{cereal-1.3.2-r1.ebuild => cereal-1.3.2-r2.ebuild} | 6 ++++++
 1 file changed, 6 insertions(+)