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

Bug 690340

Summary: dev-libs/leatherman-1.6.1 : /.../json_container.cc:4:10: fatal error: rapidjson/document.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=795942
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-libs:leatherman-1.6.1:20190721-091734.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2019-07-21 09:38:47 UTC
cd /var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build/json_container && /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build\" -DPROJECT_NAME=\"leatherman\" -Dleatherman_json_container_EXPORTS -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/nowide/../vendor/nowide/include -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/nowide/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/util/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/locale/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build/src/rapidjson/include -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/rapidjson/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/inc   -DNDEBUG -Wno-maybe-uninitialized -O2 -pipe -march=native -fPIC   -Wextra -std=c++11 -Wall -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-maybe-uninitialized -O2 -pipe -march=native -fPIC -nostdlib -nodefaultlibs -o CMakeFiles/leatherman_json_container.dir/src/json_container.cc.o -c /var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/src/json_container.cc
/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/src/json_container.cc:4:10: fatal error: rapidjson/document.h: No such file or directory
    4 | #include <rapidjson/document.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20190715-231820

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-libs/leatherman
[ebuild  N    ] dev-libs/leatherman-1.6.1  USE="-debug -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2019-07-21 09:38:50 UTC
Created attachment 583870 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-21 09:38:52 UTC
Created attachment 583872 [details]
dev-libs:leatherman-1.6.1:20190721-091734.log
Comment 3 Toralf Förster gentoo-dev 2019-07-21 09:38:55 UTC
Created attachment 583874 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-07-21 09:38:58 UTC
Created attachment 583876 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-07-21 09:39:00 UTC
Created attachment 583878 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-21 09:39:03 UTC
Created attachment 583880 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-07-21 09:39:16 UTC
Created attachment 583882 [details]
temp.tbz2
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-21 17:39:11 UTC
does installing dev-libs/rapidjson without any use flags enabled fix the missing dep issue?
Comment 9 Toralf Förster gentoo-dev 2019-07-25 19:06:34 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #8)
> does installing dev-libs/rapidjson without any use flags enabled fix the
> missing dep issue?

helps a little bit, now it fails in :

-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-maybe-uninitialized -O2 -pipe -march=native -o CMakeFiles/leatherman_test.dir/main.cc.o -c /var/tmp/portage/dev-libs/leatherman-1.6.0/work/leatherman-1.6.0/tests/main.cc
/var/tmp/portage/dev-libs/leatherman-1.6.0/work/leatherman-1.6.0/tests/main.cc:2:10: fatal error: catch.hpp: No such file or directory
    2 | #include <catch.hpp>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [tests/CMakeFiles/leatherman_test.dir/build.make:66: tests/CMakeFiles/leatherman_test.dir/main.cc.o] Error 1
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-25 21:07:48 UTC
dev-cpp/catch then?
Comment 11 Toralf Förster gentoo-dev 2019-07-26 18:49:26 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #10)
> dev-cpp/catch then?

nope, FWIW, that installs into  /usr/include/catch2/catch.hpp maybe the include should be

    #include <catch2/catch.hpp>

?
Comment 12 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-27 23:26:36 UTC
try 'emerge dev-cpp/catch:1' instead
Comment 13 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-28 00:10:56 UTC
I've installed 1.6.1 locally, though I haven't needed to install rapidjson or catch.

https://gist.github.com/91b73522c0bed5094c850149906ddb84
Comment 14 Toralf Förster gentoo-dev 2019-07-28 11:15:11 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #12)
> try 'emerge dev-cpp/catch:1' instead

issues still present, FWIW:

mr-fox ~ # ls -l /usr/include/catch/catch.hpp
-rw-r--r-- 1 root root 426220 May 14  2018 /usr/include/catch/catch.hpp
Comment 15 Toralf Förster gentoo-dev 2019-07-28 11:15:44 UTC
(In reply to Toralf Förster from comment #14)
> (In reply to Matthew Thode ( prometheanfire ) from comment #12)
> > try 'emerge dev-cpp/catch:1' instead
> 
> issues still present, FWIW:
> 
> mr-fox ~ # ls -l /usr/include/catch/catch.hpp
> -rw-r--r-- 1 root root 426220 May 14  2018 /usr/include/catch/catch.hpp

IMHO the include path isn't set right for catch at all, or?
Comment 16 Toralf Förster gentoo-dev 2019-07-28 11:27:18 UTC
from:https://github.com/puppetlabs/leatherman/blob/master/README.md




Using Catch

Since Catch is a testing-only utility, its include directory is excluded from LEATHERMAN_INCLUDE_DIRS. To use Catch, explicitly add

include_directories(${LEATHERMAN_CATCH_INCLUDE})

to the CMakeLists.txt file of your testing directory.
Comment 17 Toralf Förster gentoo-dev 2020-12-22 09:29:22 UTC
still true :

dev-libs/leatherman-1.12.4 : /.../json_container.cc: fatal error: rapidjson/document.h: No such file or directory
Comment 18 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-12-22 16:21:04 UTC
ok, I'll add rapidjson as a dep
Comment 19 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-12-22 16:29:20 UTC
actually, I'm not, 1.12.4 seems to use a bundled rapidjson

181:-- Unpacking /var/tmp/portage/dev-libs/leatherman-1.12.4/work/leatherman-1.12.4/vendor/rapidjson-1.0.2.zip into /var/tmp/portage/dev-libs/leatherman-1.12.4/work/leatherman-1.12.4_build/src/rapidjson

src/rapidjson/include/rapidjson/document.h

bunch of other related lines to that header

src/rapidjson/include/rapidjson/document.h:79:8: note: ‘rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::CrtAllocator>::Member’ {aka ‘struct rapidjson::GenericMember<rapidjson::UTF8<char>, rapidjson::CrtAllocator>’} declared here
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-12 04:49:13 UTC
(same weirdness in bug 795942)